Skip to content

Commit

Permalink
fix(Translations): make files compatible with one hour
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jun 23, 2018
1 parent a609c27 commit bbc6e42
Show file tree
Hide file tree
Showing 26 changed files with 30,620 additions and 30,604 deletions.
3,470 changes: 1,735 additions & 1,735 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/bg.json

Large diffs are not rendered by default.

3,470 changes: 1,735 additions & 1,735 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/da.json

Large diffs are not rendered by default.

580 changes: 290 additions & 290 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/de.json

Large diffs are not rendered by default.

580 changes: 290 additions & 290 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/el.json

Large diffs are not rendered by default.

580 changes: 290 additions & 290 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/es.json

Large diffs are not rendered by default.

580 changes: 290 additions & 290 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/fr.json

Large diffs are not rendered by default.

3,470 changes: 1,735 additions & 1,735 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/hi.json

Large diffs are not rendered by default.

3,474 changes: 1,737 additions & 1,737 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/hu.json

Large diffs are not rendered by default.

2,684 changes: 1,342 additions & 1,342 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/id.json

Large diffs are not rendered by default.

2,684 changes: 1,342 additions & 1,342 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/it.json

Large diffs are not rendered by default.

2,684 changes: 1,342 additions & 1,342 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/ja.json

Large diffs are not rendered by default.

2,402 changes: 1,201 additions & 1,201 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/ko.json

Large diffs are not rendered by default.

2,620 changes: 1,310 additions & 1,310 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/nl.json

Large diffs are not rendered by default.

3,474 changes: 1,737 additions & 1,737 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/nn.json

Large diffs are not rendered by default.

3,470 changes: 1,735 additions & 1,735 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/no.json

Large diffs are not rendered by default.

2,684 changes: 1,342 additions & 1,342 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/pl.json

Large diffs are not rendered by default.

2,688 changes: 1,344 additions & 1,344 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/pt.json

Large diffs are not rendered by default.

3,470 changes: 1,735 additions & 1,735 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/ro.json

Large diffs are not rendered by default.

570 changes: 285 additions & 285 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/ru.json

Large diffs are not rendered by default.

3,470 changes: 1,735 additions & 1,735 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/sl.json

Large diffs are not rendered by default.

3,470 changes: 1,735 additions & 1,735 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/sv.json

Large diffs are not rendered by default.

2,684 changes: 1,342 additions & 1,342 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/th.json

Large diffs are not rendered by default.

2,684 changes: 1,342 additions & 1,342 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/tr.json

Large diffs are not rendered by default.

2,684 changes: 1,342 additions & 1,342 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/vi.json

Large diffs are not rendered by default.

580 changes: 290 additions & 290 deletions packages/blockchain-wallet-v4-frontend/src/assets/locales/zh.json

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion packages/blockchain-wallet-v4-frontend/translationRunner.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
import manageTranslations from 'react-intl-translations-manager'
import bcManageTranslations from 'bc-react-intl-translations-manager'

// TODO: fork and publish version of react-intl-translations-manager

// react-intl-translations-manager sets the defaultMessage as the value
// for translations that are not yet set. one hour needs only the en.json
// and the translation file with the same keys but the values empty or null

manageTranslations({
messagesDirectory: './build/extractedMessages',
translationsDirectory: './src/assets/locales',
whitelistsDirectory: './src/assets/locales/whitelists',
singleMessagesFile: true,
languages: [
'en'
]
})

bcManageTranslations({
messagesDirectory: './build/extractedMessages',
translationsDirectory: './src/assets/locales',
whitelistsDirectory: './src/assets/locales/whitelists',
Expand All @@ -10,7 +27,6 @@ manageTranslations({
'da',
'de',
'el',
'en',
'es',
'fr',
'hi',
Expand Down

0 comments on commit bbc6e42

Please sign in to comment.