houdini/config/i18n-js.yml

42 lines
1.2 KiB
YAML
Raw Normal View History

2019-11-15 22:28:55 +00: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"
#
# If you're running an old version, you can use something
# like this:
#
# translations:
# - file: "app/assets/javascripts/i18n/translations.js"
# only: "*"
#
2020-11-24 22:20:51 +00:00
sort_translation_keys: true
fallbacks: true
2019-11-15 22:28:55 +00:00
translations:
- file: 'public/javascripts/translations.js'
only: '*'
2020-11-24 22:20:51 +00:00
prefix: "import I18n from 'i18n-js';\n"
- file: 'app/javascript/i18n/locales/%{locale}.ts'
js_extend: false
prefix: "// DO NOT MODIFY THIS FILE. MODIFY config/locales INSTEAD\nconst translations:any = {};"
suffix: "export default translations;"
only: '*'
houdini_ts: true