diff --git a/src/App.tsx b/src/App.tsx index 8780ccb22..76d378389 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -12,6 +12,7 @@ import { ConfigContext, LocaleContext, StringsContext } from './context'; import { PRELOADED_STRINGS, Strings, tt } from './util/localization'; import { langDirection, toAlpha2Code } from './util/languages'; import { Mode } from './types'; +import { TextProvider } from './util/initialTextValues'; import Analyzer from './components/Analyzer'; import { Path as DocTranslationPath } from './components/translator/DocTranslationForm'; @@ -23,6 +24,7 @@ import Sandbox from './components/Sandbox'; import Translator from './components/translator/Translator'; import { Mode as TranslatorMode } from './components/translator'; import { Path as WebpageTranslationPath } from './components/translator/WebpageTranslationForm'; + import WithInstallationAlert from './components/WithInstallationAlert'; import WithLocale from './components/WithLocale'; @@ -96,44 +98,46 @@ const App = ({ setLocale }: { setLocale: React.Dispatch -
- - - {Object.values(Mode).map( - (mode) => - enabledModes.has(mode) && ( - - ), - )} - {enabledModes.has(Mode.Translation) && ( - <> - - - - - - - - )} -
- -
-
-
-
-