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 |   if (!status || !status.card) return null | ||||||
|  |  | ||||||
|   const { i18n } = useTranslation() |   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} /> |     return <CardNeodb card={status.card} /> | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -59,7 +59,7 @@ const SettingsApp: React.FC = () => { | |||||||
|           // @ts-ignore |           // @ts-ignore | ||||||
|           LOCALES[ |           LOCALES[ | ||||||
|             Platform.OS === 'ios' |             Platform.OS === 'ios' | ||||||
|               ? Localization.locale.replace(new RegExp(/.*-.*(-.*)/, 'i'), '') |               ? Localization.locale.replace(new RegExp(/.*-.*(-.*)/, 'i'), '').toLowerCase() | ||||||
|               : i18n.language.toLowerCase() |               : i18n.language.toLowerCase() | ||||||
|           ] |           ] | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user