mirror of
https://github.com/tooot-app/app
synced 2025-02-02 03:26:53 +01:00
Locale lower case match
This commit is contained in:
parent
4e620f8987
commit
f78693eee8
@ -22,7 +22,7 @@ const TimelineCard: React.FC = () => {
|
||||
if (!status || !status.card) return null
|
||||
|
||||
const { i18n } = useTranslation()
|
||||
if (status.card.url.includes('://neodb.social/') && i18n.language === 'zh-hans') {
|
||||
if (status.card.url.includes('://neodb.social/') && i18n.language.toLowerCase() === 'zh-hans') {
|
||||
return <CardNeodb card={status.card} />
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ const SettingsApp: React.FC = () => {
|
||||
// @ts-ignore
|
||||
LOCALES[
|
||||
Platform.OS === 'ios'
|
||||
? Localization.locale.replace(new RegExp(/.*-.*(-.*)/, 'i'), '')
|
||||
? Localization.locale.replace(new RegExp(/.*-.*(-.*)/, 'i'), '').toLowerCase()
|
||||
: i18n.language.toLowerCase()
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user