diff options
author | Stanislas Signoud <signez@stanisoft.net> | 2024-01-09 23:37:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-09 14:37:15 -0800 |
commit | 008893b911c354ea70fbb4ceacefe2dafc7567b9 (patch) | |
tree | 817a76b7a5a3b324db025b0d9c9c2647bde5ce6e /src/App.native.tsx | |
parent | aeeacd10d322a6e599631c500de03172d69984de (diff) | |
download | voidsky-008893b911c354ea70fbb4ceacefe2dafc7567b9.tar.zst |
Internationalize more strings (#2440)
Co-authored-by: Ansh <anshnanda10@gmail.com>
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r-- | src/App.native.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index 6402b4a89..9de901767 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -39,6 +39,8 @@ import { import {Provider as UnreadNotifsProvider} from 'state/queries/notifications/unread' import * as persisted from '#/state/persisted' import {Splash} from '#/Splash' +import {msg} from '@lingui/macro' +import {useLingui} from '@lingui/react' SplashScreen.preventAutoHideAsync() @@ -46,17 +48,18 @@ function InnerApp() { const colorMode = useColorMode() const {isInitialLoad, currentAccount} = useSession() const {resumeSession} = useSessionApi() + const {_} = useLingui() // init useEffect(() => { notifications.init(queryClient) listenSessionDropped(() => { - Toast.show('Sorry! Your session expired. Please log in again.') + Toast.show(_(msg`Sorry! Your session expired. Please log in again.`)) }) const account = persisted.get('session').currentAccount resumeSession(account) - }, [resumeSession]) + }, [resumeSession, _]) return ( <SafeAreaProvider initialMetrics={initialWindowMetrics}> |