Importing the langs is now done in the lingui config

This commit is contained in:
Christian M. Adams 2021-04-20 16:34:23 -04:00
parent b729377a2c
commit 40be9607ee
No known key found for this signature in database
GPG Key ID: F41796178F693C8E
2 changed files with 1 additions and 8 deletions

View File

@ -8,7 +8,7 @@
"compilerBabelOptions": {},
"fallbackLocales": { default: "en"},
"format": "po",
"locales": ["en","es","fr","nl","zh","ja", "zu"],
"locales": ["en","es","fr","nl","zh","ja","zu"],
"orderBy": "messageId",
"pseudoLocale": "zu",
"rootDir": "./src",

View File

@ -17,12 +17,6 @@ import Background from './components/Background';
import NotFound from './screens/NotFound';
import Login from './screens/Login';
import en from './locales/en/messages';
import es from './locales/es/messages';
import fr from './locales/fr/messages';
import ja from './locales/ja/messages';
import nl from './locales/nl/messages';
import zh from './locales/zh/messages';
import { isAuthenticated } from './util/auth';
import { getLanguageWithoutRegionCode } from './util/language';
import { dynamicActivate, locales } from './i18nLoader';
@ -84,7 +78,6 @@ const ProtectedRoute = ({ children, ...rest }) =>
);
function App() {
const catalogs = { en, es, fr, ja, nl, zh };
let language = getLanguageWithoutRegionCode(navigator);
if (!Object.keys(locales).includes(language)) {
// If there isn't a string catalog available for the browser's