Skip to content

Commit

Permalink
Merge branch 'main' into candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
xmflsct committed Mar 14, 2023
2 parents 6e316f0 + f78693e commit 232705b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Timeline/Shared/Card/index.tsx
Expand Up @@ -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} />
}

Expand Down
2 changes: 1 addition & 1 deletion src/screens/Tabs/Me/Settings/App.tsx
Expand Up @@ -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()
]
}
Expand Down

0 comments on commit 232705b

Please sign in to comment.