about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMary <git@mary.my.id>2024-02-13 12:09:01 +0700
committerMary <git@mary.my.id>2024-02-13 12:09:01 +0700
commit630b4226182249aab02bd58b136dfa90c4dd7427 (patch)
tree0bf5c19a2caddbc9aa88d1064709065685ed00f9 /src
parent36e1da10069749832831569611df8038c43fb6ed (diff)
downloadvoidsky-630b4226182249aab02bd58b136dfa90c4dd7427.tar.zst
fix: localize the splash screen footer
Diffstat (limited to 'src')
-rw-r--r--src/view/com/auth/SplashScreen.web.tsx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/view/com/auth/SplashScreen.web.tsx b/src/view/com/auth/SplashScreen.web.tsx
index 8ef64099f..5c4d55dd1 100644
--- a/src/view/com/auth/SplashScreen.web.tsx
+++ b/src/view/com/auth/SplashScreen.web.tsx
@@ -9,9 +9,10 @@ import {usePalette} from 'lib/hooks/usePalette'
 import {CenteredView} from '../util/Views'
 import {isWeb} from 'platform/detection'
 import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries'
-import {Trans} from '@lingui/macro'
+import {Trans, msg} from '@lingui/macro'
 import {Logo} from '#/view/icons/Logo'
 import {Logotype} from '#/view/icons/Logotype'
+import {useLingui} from '@lingui/react'
 
 export const SplashScreen = ({
   onDismiss,
@@ -98,22 +99,23 @@ export const SplashScreen = ({
 
 function Footer({styles}: {styles: ReturnType<typeof useStyles>}) {
   const pal = usePalette('default')
+  const {_} = useLingui()
 
   return (
     <View style={[styles.footer, pal.view, pal.border]}>
       <TextLink
         href="https://bsky.social"
-        text="Business"
+        text={_(msg`Business`)}
         style={[styles.footerLink, pal.link]}
       />
       <TextLink
         href="https://bsky.social/about/blog"
-        text="Blog"
+        text={_(msg`Blog`)}
         style={[styles.footerLink, pal.link]}
       />
       <TextLink
         href="https://bsky.social/about/join"
-        text="Jobs"
+        text={_(msg`Jobs`)}
         style={[styles.footerLink, pal.link]}
       />
     </View>