Fix vocabulary export to i18n-js

This commit is contained in:
Andreas Nedbal 2022-07-30 23:47:03 +02:00
parent 481333d9dc
commit be20b64e43
1 changed files with 1 additions and 1 deletions

View File

@ -27,6 +27,6 @@ export_i18n_js: false
translations: translations:
- file: 'app/javascript/retrospring/i18n.ts' - file: 'app/javascript/retrospring/i18n.ts'
only: ['voc.*', '*.frontend.*', '*.views.actions.*'] only: ['*.voc.*', '*.frontend.*', '*.views.actions.*']
prefix: "import I18n from 'i18n-js'\nimport Cookies from 'js-cookie'\n" 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" suffix: "I18n.defaultLocale = 'en';\nI18n.locale = Cookies.get('hl') || 'en';\nexport default I18n"