aboutsummaryrefslogtreecommitdiff
path: root/modern/src/LocalizationProvider.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-03 00:21:33 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-03 00:21:33 -0700
commit105e4ec887e249ec47db83095504012bad22df80 (patch)
tree0ca61c0015b1941362de8d2a82a005a88659dca4 /modern/src/LocalizationProvider.js
parente6f906dbb565abdb29297ec67db3c922135c628c (diff)
downloadtrackermap-web-105e4ec887e249ec47db83095504012bad22df80.tar.gz
trackermap-web-105e4ec887e249ec47db83095504012bad22df80.tar.bz2
trackermap-web-105e4ec887e249ec47db83095504012bad22df80.zip
More translation migrations
Diffstat (limited to 'modern/src/LocalizationProvider.js')
-rw-r--r--modern/src/LocalizationProvider.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/modern/src/LocalizationProvider.js b/modern/src/LocalizationProvider.js
index bf454e71..129f1d9c 100644
--- a/modern/src/LocalizationProvider.js
+++ b/modern/src/LocalizationProvider.js
@@ -1,5 +1,5 @@
import React, { createContext, useContext } from 'react';
-import usePersistedState from './common/usePersistedState';
+import { usePersistedState } from './common/usePersistedState';
import af from '../../web/l10n/af.json';
import ar from '../../web/l10n/ar.json';
@@ -113,8 +113,6 @@ const languages = {
zh_TW: { data: zh_TW, name: '中文 (Taiwan)' },
};
-//const languageList = Object.entries(supportedLanguages).map((values) => ({ code: values[0], name: values[1].name }));
-
const getDefaultLanguage = () => {
const browserLanguages = window.navigator.languages ? window.navigator.languages.slice() : [];
const browserLanguage = window.navigator.userLanguage || window.navigator.language;