Retrospring/config/i18n-js.yml

33 lines
1.0 KiB
YAML
Raw Normal View History

2015-06-08 07:49:47 -07:00
# Split context in several files.
#
# By default only one file with all translations is exported and
# no configuration is required. Your settings for asset pipeline
# are automatically recognized.
#
# If you want to split translations into several files or specify
# locale contexts that will be exported, just use this file to do
# so.
#
# For more informations about the export options with this file, please
# refer to the README
#
#
# If you're going to use the Rails 3.1 asset pipeline, change
# the following configuration to something like this:
#
# translations:
# - file: "app/assets/javascripts/i18n/translations.js"
2015-06-08 07:49:47 -07:00
#
# If you're running an old version, you can use something
# like this:
#
fallbacks: :default_locale
export_i18n_js: false
translations:
- file: 'app/javascript/retrospring/i18n.ts'
2022-07-30 14:47:03 -07:00
only: ['*.voc.*', '*.frontend.*', '*.views.actions.*']
prefix: "import I18n from 'i18n-js'\nimport Cookies from 'js-cookie'\n"
suffix: "I18n.defaultLocale = 'en';\nI18n.locale = Cookies.get('hl') || 'en';\nexport default I18n"