From 2afe7e69e72e3714477757f0bb34653557fb9222 Mon Sep 17 00:00:00 2001 From: developomp Date: Mon, 31 May 2021 12:03:33 +0900 Subject: [PATCH] removed localization support --- source/src/App.tsx | 86 ++++++++----------- source/src/LangaugeContext.ts | 7 -- .../src/components/LanguageToggleButton.tsx | 63 -------------- source/src/components/Navbar.tsx | 2 - source/src/components/SubMenu.tsx | 1 + source/src/react-app-env.d.ts | 1 - 6 files changed, 36 insertions(+), 124 deletions(-) delete mode 100644 source/src/LangaugeContext.ts delete mode 100644 source/src/components/LanguageToggleButton.tsx diff --git a/source/src/App.tsx b/source/src/App.tsx index 49b1150..a77099a 100644 --- a/source/src/App.tsx +++ b/source/src/App.tsx @@ -6,7 +6,6 @@ import storage from "local-storage-fallback" import { isIE } from "react-device-detect" import theming from "./theming" -import { LanguageContext } from "./LangaugeContext" import Spinner from "./components/Spinner" import Navbar from "./components/Navbar" @@ -200,60 +199,45 @@ export default class App extends React.Component { this.setState({ currentTheme: setThemeTo }), // make setTheme function available in other components }} > - { - // cycle through languages - let setLanguageTo = "en" - if (this.state.currentLanguage == "en") - setLanguageTo = "kr" - this.setState({ - currentLanguage: setLanguageTo, - }) - }, - }} - > - - -
- {this.state.isLoading ? ( - - ) : ( - - - - + + +
+ {this.state.isLoading ? ( + + ) : ( + + + + - - - + + + - - - + + + - - - + + + - - {({ match }) => ( - - )} - - - )} -
-
- + + {({ match }) => ( + + )} + + + )} +
+