diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-07-10 03:54:12 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-07-12 03:20:37 +0800 |
commit | 2526f8a1d8f59758b7bc04bb088fab6ad74b16a1 (patch) | |
tree | dfe0f73b15aa3bcff32d0a8e5486590164540c2e /ui/i18n-helper.js | |
parent | 4521de19e641e4cda27b906c47b46929ddb831ec (diff) | |
download | tangerine-wallet-browser-2526f8a1d8f59758b7bc04bb088fab6ad74b16a1.tar tangerine-wallet-browser-2526f8a1d8f59758b7bc04bb088fab6ad74b16a1.tar.gz tangerine-wallet-browser-2526f8a1d8f59758b7bc04bb088fab6ad74b16a1.tar.bz2 tangerine-wallet-browser-2526f8a1d8f59758b7bc04bb088fab6ad74b16a1.tar.lz tangerine-wallet-browser-2526f8a1d8f59758b7bc04bb088fab6ad74b16a1.tar.xz tangerine-wallet-browser-2526f8a1d8f59758b7bc04bb088fab6ad74b16a1.tar.zst tangerine-wallet-browser-2526f8a1d8f59758b7bc04bb088fab6ad74b16a1.zip |
Inline locale variable in fetchLocale fn
Diffstat (limited to 'ui/i18n-helper.js')
-rw-r--r-- | ui/i18n-helper.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/i18n-helper.js b/ui/i18n-helper.js index 79aa93116..269f6e1a4 100644 --- a/ui/i18n-helper.js +++ b/ui/i18n-helper.js @@ -29,8 +29,7 @@ const getMessage = (locale, key, substitutions) => { async function fetchLocale (localeName) { try { const response = await fetch(`./_locales/${localeName}/messages.json`) - const locale = await response.json() - return locale + return await response.json() } catch (error) { log.error(`failed to fetch ${localeName} locale because of ${error}`) return {} |