diff options
author | 2019-03-07 13:03:37 +0100 | |
---|---|---|
committer | 2019-03-07 13:03:55 +0100 | |
commit | 4e559869defa23eef86e19aba639315ff0065d90 (patch) | |
tree | b0c0ef34fac49d09e9a08656a6bacebf6e8a0a31 /src/i18n/manage-translations.js | |
parent | setup react-intl translations managing script (diff) | |
download | ferdium-app-4e559869defa23eef86e19aba639315ff0065d90.tar.gz ferdium-app-4e559869defa23eef86e19aba639315ff0065d90.tar.zst ferdium-app-4e559869defa23eef86e19aba639315ff0065d90.zip |
move translation scripts into src/i18n folder
Diffstat (limited to 'src/i18n/manage-translations.js')
-rw-r--r-- | src/i18n/manage-translations.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/i18n/manage-translations.js b/src/i18n/manage-translations.js new file mode 100644 index 000000000..74a29107d --- /dev/null +++ b/src/i18n/manage-translations.js | |||
@@ -0,0 +1,10 @@ | |||
1 | require('@babel/register'); | ||
2 | const manageTranslations = require('react-intl-translations-manager').default; | ||
3 | // const { APP_LOCALES } = require('../src/i18n/languages'); | ||
4 | |||
5 | manageTranslations({ | ||
6 | messagesDirectory: 'src/i18n/messages', | ||
7 | translationsDirectory: 'src/i18n/locales', | ||
8 | singleMessagesFile: true, | ||
9 | languages: ['en-US'], // Object.keys(APP_LOCALES), | ||
10 | }); | ||