Skip to content

Commit

Permalink
Hotfix internationalization on mobile (#1854)
Browse files Browse the repository at this point in the history
* hotfix internationalization on mobile

* remove comment
  • Loading branch information
ansh authored Nov 9, 2023
1 parent 4c7850f commit 1dcf882
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/App.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 1dcf882

Please sign in to comment.