Hotfix internationalization on mobile (#1854)
* hotfix internationalization on mobile * remove commentzio/stable
parent
4c7850f8c4
commit
1dcf882619
|
@ -26,6 +26,11 @@ import {Provider as ModalStateProvider} from 'state/modals'
|
||||||
import {Provider as MutedThreadsProvider} from 'state/muted-threads'
|
import {Provider as MutedThreadsProvider} from 'state/muted-threads'
|
||||||
import {Provider as InvitesStateProvider} from 'state/invites'
|
import {Provider as InvitesStateProvider} from 'state/invites'
|
||||||
import {Provider as PrefsStateProvider} from 'state/preferences'
|
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()
|
SplashScreen.preventAutoHideAsync()
|
||||||
|
|
||||||
|
@ -57,10 +62,12 @@ const InnerApp = observer(function AppImpl() {
|
||||||
<RootSiblingParent>
|
<RootSiblingParent>
|
||||||
<analytics.Provider>
|
<analytics.Provider>
|
||||||
<RootStoreProvider value={rootStore}>
|
<RootStoreProvider value={rootStore}>
|
||||||
<GestureHandlerRootView style={s.h100pct}>
|
<I18nProvider i18n={i18n}>
|
||||||
<TestCtrls />
|
<GestureHandlerRootView style={s.h100pct}>
|
||||||
<Shell />
|
<TestCtrls />
|
||||||
</GestureHandlerRootView>
|
<Shell />
|
||||||
|
</GestureHandlerRootView>
|
||||||
|
</I18nProvider>
|
||||||
</RootStoreProvider>
|
</RootStoreProvider>
|
||||||
</analytics.Provider>
|
</analytics.Provider>
|
||||||
</RootSiblingParent>
|
</RootSiblingParent>
|
||||||
|
|
Loading…
Reference in New Issue