mirror of
				https://github.com/tooot-app/app
				synced 2025-06-05 22:19:13 +02:00 
			
		
		
		
	Target translation language rule
App language may be in en while the spoken language is others, due to limited translation options
This commit is contained in:
		| @@ -57,7 +57,9 @@ const TimelineTranslate = React.memo( | ||||
|     }, []) | ||||
|  | ||||
|     const settingsLanguage = useSelector(getSettingsLanguage) | ||||
|     const targetLanguage = Localization.locale || settingsLanguage || 'en' | ||||
|     const targetLanguage = settingsLanguage?.startsWith('en') | ||||
|       ? Localization.locale || settingsLanguage || 'en' | ||||
|       : settingsLanguage || Localization.locale || 'en' | ||||
|  | ||||
|     const [enabled, setEnabled] = useState(false) | ||||
|     const { refetch, data, isLoading, isSuccess, isError } = useTranslateQuery({ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user