From 40be9607ee2ecd9aa729daed419c52565f99b6c0 Mon Sep 17 00:00:00 2001 From: "Christian M. Adams" Date: Tue, 20 Apr 2021 16:34:23 -0400 Subject: [PATCH] Importing the langs is now done in the lingui config --- awx/ui_next/.linguirc | 2 +- awx/ui_next/src/App.jsx | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/awx/ui_next/.linguirc b/awx/ui_next/.linguirc index 8f051abab2..72bdbf29b5 100644 --- a/awx/ui_next/.linguirc +++ b/awx/ui_next/.linguirc @@ -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", diff --git a/awx/ui_next/src/App.jsx b/awx/ui_next/src/App.jsx index af03b8e712..a6f1718a0e 100644 --- a/awx/ui_next/src/App.jsx +++ b/awx/ui_next/src/App.jsx @@ -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