diff options
author | Ansh <anshnanda10@gmail.com> | 2023-11-09 10:49:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 10:49:46 -0800 |
commit | 1dcf882619bc2d6b3eefebf83e76f4b21871b791 (patch) | |
tree | aa1f778c108a615485e5cb57fbd3a2f8fe1010e4 | |
parent | 4c7850f8c48a0cb3f83f33b1701a99066c6b31db (diff) | |
download | voidsky-1dcf882619bc2d6b3eefebf83e76f4b21871b791.tar.zst |
Hotfix internationalization on mobile (#1854)
* hotfix internationalization on mobile * remove comment
-rw-r--r-- | src/App.native.tsx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index 5955504e3..9f38d133d 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -26,6 +26,11 @@ import {Provider as ModalStateProvider} from 'state/modals' import {Provider as MutedThreadsProvider} from 'state/muted-threads' import {Provider as InvitesStateProvider} from 'state/invites' import {Provider as PrefsStateProvider} from 'state/preferences' +import {i18n} from '@lingui/core' +import {I18nProvider} from '@lingui/react' +import {messages} from './locale/locales/en/messages' +i18n.load('en', messages) +i18n.activate('en') SplashScreen.preventAutoHideAsync() @@ -57,10 +62,12 @@ const InnerApp = observer(function AppImpl() { <RootSiblingParent> <analytics.Provider> <RootStoreProvider value={rootStore}> - <GestureHandlerRootView style={s.h100pct}> - <TestCtrls /> - <Shell /> - </GestureHandlerRootView> + <I18nProvider i18n={i18n}> + <GestureHandlerRootView style={s.h100pct}> + <TestCtrls /> + <Shell /> + </GestureHandlerRootView> + </I18nProvider> </RootStoreProvider> </analytics.Provider> </RootSiblingParent> |