diff options
author | rahighi <rahighi> | 2021-08-29 09:14:35 +0430 |
---|---|---|
committer | rahighi <rahighi> | 2021-08-29 09:14:35 +0430 |
commit | 363198118bba28ad3a37e200a7db2ca02bf2eae7 (patch) | |
tree | 1e67a921caa5cd35d324148c4396e316019be39f | |
parent | 3676fb0033aaabe91a672d9661298559a22d02ca (diff) | |
download | etbsa-traccar-web-363198118bba28ad3a37e200a7db2ca02bf2eae7.tar.gz etbsa-traccar-web-363198118bba28ad3a37e200a7db2ca02bf2eae7.tar.bz2 etbsa-traccar-web-363198118bba28ad3a37e200a7db2ca02bf2eae7.zip |
removed additional export
-rw-r--r-- | modern/src/common/localization.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/common/localization.js b/modern/src/common/localization.js index 7383788..90a5739 100644 --- a/modern/src/common/localization.js +++ b/modern/src/common/localization.js @@ -112,7 +112,7 @@ const supportedLanguages = { zh_TW: { data: zh_TW, name: '中文 (Taiwan)' }, }; -export const languageList = Object.entries(supportedLanguages).map((values) => ({ code: values[0], name: values[1].name })); +const languageList = Object.entries(supportedLanguages).map((values) => ({ code: values[0], name: values[1].name })); const languages = localStorage.getItem('language') ? [localStorage.getItem('language')] : (window.navigator.languages !== undefined ? window.navigator.languages.slice() : []); let language = localStorage.getItem('language') || window.navigator.userLanguage || window.navigator.language; languages.push(language); |