mirror of
				https://github.com/tooot-app/app
				synced 2025-06-05 22:19:13 +02:00 
			
		
		
		
	Locale lower case match
This commit is contained in:
		| @@ -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() | ||||
|           ] | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user