mirror of
https://github.com/tooot-app/app
synced 2025-01-31 02:37:13 +01: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:
parent
6f774d8c13
commit
249320a3b5
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user