diff options
author | Dan <danjm.com@gmail.com> | 2018-03-22 08:41:47 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-03-22 08:41:47 +0800 |
commit | d24a0590d363dbe88d383c8faec8eb28809242f0 (patch) | |
tree | 189e54ca9ea117804c96afa551cfca8158f36974 /ui/index.js | |
parent | 29cc2f8ab9628d21cc32962666879c71be4e69d1 (diff) | |
download | dexon-wallet-d24a0590d363dbe88d383c8faec8eb28809242f0.tar.gz dexon-wallet-d24a0590d363dbe88d383c8faec8eb28809242f0.tar.zst dexon-wallet-d24a0590d363dbe88d383c8faec8eb28809242f0.zip |
i18n redux solution doesn't require importing t() and passing state to each t() call; t is just available on props.
Diffstat (limited to 'ui/index.js')
-rw-r--r-- | ui/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/index.js b/ui/index.js index 598d2876..fe57f791 100644 --- a/ui/index.js +++ b/ui/index.js @@ -31,6 +31,7 @@ async function startApp (metamaskState, accountManager, opts) { if (!metamaskState.featureFlags) metamaskState.featureFlags = {} const currentLocaleMessages = await fetchLocale(metamaskState.currentLocale) + const enLocaleMessages = await fetchLocale('en') const store = configureStore({ @@ -40,7 +41,10 @@ async function startApp (metamaskState, accountManager, opts) { // appState represents the current tab's popup state appState: {}, - localeMessages: currentLocaleMessages, + localeMessages: { + current: currentLocaleMessages, + en: enLocaleMessages, + }, // Which blockchain we are using: networkVersion: opts.networkVersion, |