diff options
author | 2021-09-18 11:15:25 +0200 | |
---|---|---|
committer | 2021-09-18 11:15:25 +0200 | |
commit | d4101a48b3eee8b1fb177831aa02a4b4fbec2588 (patch) | |
tree | c92f2fbe91197fde8589207463d0d6526b4ff76b /src/i18n/translations.js | |
parent | 5.6.3-nightly.6 [skip ci] (diff) | |
download | ferdium-app-d4101a48b3eee8b1fb177831aa02a4b4fbec2588.tar.gz ferdium-app-d4101a48b3eee8b1fb177831aa02a4b4fbec2588.tar.zst ferdium-app-d4101a48b3eee8b1fb177831aa02a4b4fbec2588.zip |
chore: convert various files from JS to TS (#1959)
Diffstat (limited to 'src/i18n/translations.js')
-rw-r--r-- | src/i18n/translations.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/i18n/translations.js b/src/i18n/translations.js deleted file mode 100644 index 9a7dc7453..000000000 --- a/src/i18n/translations.js +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | /* eslint-disable global-require */ | ||
2 | import { APP_LOCALES } from './languages'; | ||
3 | |||
4 | const translations = []; | ||
5 | for (const key of Object.keys(APP_LOCALES)) { | ||
6 | try { | ||
7 | // eslint-disable-next-line import/no-dynamic-require | ||
8 | const translation = require(`./locales/${key}.json`); | ||
9 | translations[key] = translation; | ||
10 | } catch { | ||
11 | console.warn(`Can't find translations for ${key}`); | ||
12 | } | ||
13 | } | ||
14 | |||
15 | module.exports = translations; | ||