change usage of t to msg

This commit is contained in:
Samuel Newman 2024-03-18 14:37:30 +00:00
parent 98bca69ae9
commit fbfb78b860
5 changed files with 54 additions and 32 deletions

View file

@ -20,7 +20,7 @@ import {
toPostLanguages,
hasPostLanguage,
} from '#/state/preferences/languages'
import {t, msg} from '@lingui/macro'
import {msg} from '@lingui/macro'
import {useLingui} from '@lingui/react'
export function SelectLangBtn() {
@ -84,15 +84,15 @@ export function SelectLangBtn() {
}
return [
{heading: true, label: t`Post language`},
{heading: true, label: _(msg`Post language`)},
...arr.slice(0, 6),
{sep: true},
{
label: t`Other...`,
label: _(`Other...`),
onPress: onPressMore,
},
]
}, [onPressMore, langPrefs, setLangPrefs, postLanguagesPref])
}, [onPressMore, langPrefs, setLangPrefs, postLanguagesPref, _])
return (
<DropdownButton