Mark more texts for localization (#2436)

This commit is contained in:
Noritada Kobayashi 2024-01-10 05:53:34 +09:00 committed by GitHub
parent 592133db58
commit aeeacd10d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 49 additions and 38 deletions

View file

@ -33,6 +33,7 @@ import {cleanError} from '#/lib/strings/errors'
type Props = NativeStackScreenProps<CommonNavigatorParams, 'AppPasswords'>
export function AppPasswords({}: Props) {
const pal = usePalette('default')
const {_} = useLingui()
const setMinimalShellMode = useSetMinimalShellMode()
const {screen} = useAnalytics()
const {isTabletOrDesktop} = useWebMediaQueries()
@ -98,7 +99,7 @@ export function AppPasswords({}: Props) {
<Button
testID="appPasswordBtn"
type="primary"
label="Add App Password"
label={_(msg`Add App Password`)}
style={styles.btn}
labelStyle={styles.btnLabel}
onPress={onAdd}
@ -139,7 +140,7 @@ export function AppPasswords({}: Props) {
<Button
testID="appPasswordBtn"
type="primary"
label="Add App Password"
label={_(msg`Add App Password`)}
style={styles.btn}
labelStyle={styles.btnLabel}
onPress={onAdd}
@ -152,7 +153,7 @@ export function AppPasswords({}: Props) {
<Button
testID="appPasswordBtn"
type="primary"
label="Add App Password"
label={_(msg`Add App Password`)}
style={styles.btn}
labelStyle={styles.btnLabel}
onPress={onAdd}
@ -224,7 +225,7 @@ function AppPassword({
),
async onPressConfirm() {
await deleteMutation.mutateAsync({name})
Toast.show('App password deleted')
Toast.show(_(msg`App password deleted`))
},
})
}, [deleteMutation, openModal, name, _])