Mark more texts for localization (#2436)
This commit is contained in:
parent
592133db58
commit
aeeacd10d3
5 changed files with 49 additions and 38 deletions
|
@ -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, _])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue