1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
这应该能修复问题1
This commit is contained in:
xmflsct
2022-11-04 23:38:29 +01:00
parent 4b1d628c5e
commit 0d9992107c
3 changed files with 21 additions and 24 deletions

View File

@ -0,0 +1,12 @@
import { store } from '@root/store'
import { getSettingsLanguage } from '@utils/slices/settingsSlice'
import * as Localization from 'expo-localization'
import { Platform } from "react-native"
const getLanguage = (): string => {
return Platform.OS === 'ios'
? Localization.locale
: getSettingsLanguage(store.getState())
}
export default getLanguage