aboutsummaryrefslogtreecommitdiffstats
path: root/ui/i18n-helper.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/i18n-helper.js')
-rw-r--r--ui/i18n-helper.js3
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 {}