Skip to content

Commit

Permalink
Extract translations from viz and tidelines
Browse files Browse the repository at this point in the history
Translations are now extracted from blip's two submodules. That
way they don't need the extra-tooling, only i18next as a dependency.

Furthermore, they can prefix their translatable strings with
'viz|' or 'tideline|' to use a different namespace and separate
their translations from blip's translation.
  • Loading branch information
coyotte508 committed Mar 23, 2018
1 parent 6d1046f commit e0a5128
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/core/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ i18n
// To allow . in keys
keySeparator: false,
// To allow : in keys
nsSeparator: false,
nsSeparator: '|',

debug: true,

Expand Down
2 changes: 1 addition & 1 deletion i18next-parser.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"keySeparator": "__NO_KEY_SEPARATOR__",
"namespaceSeparator": "__NO_NAMESPACE_SEPARATOR__",
"namespaceSeparator": "|",
"lexers": {
"js": ["JavascriptLexer", "JsxLexer"]
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"install-selenium": "./node_modules/selenium-standalone/bin/selenium-standalone install --version=2.53.0",
"build-docs": "./update-gh-pages.sh",
"serve-docs": "./node_modules/.bin/gitbook serve",
"update-translations": "i18next 'app/**/*.js' -c i18next-parser.config.json -o ."
"update-translations": "i18next 'app/**/*.js' 'node_modules/tideline/js/**/*.js' 'node_modules/@tidepool/viz/{stories,storybook}Datatypes/**/*.js' -c i18next-parser.config.json -o ."
},
"dependencies": {
"@tidepool/viz": "0.10.0",
Expand Down

0 comments on commit e0a5128

Please sign in to comment.