mirror of https://github.com/tooot-app/app
10 lines
322 B
TypeScript
10 lines
322 B
TypeScript
|
import { getGlobalStorage } from '@utils/storage/actions'
|
||
|
import * as Localization from 'expo-localization'
|
||
|
import { Platform } from 'react-native'
|
||
|
|
||
|
const getLanguage = (): string | undefined => {
|
||
|
return Platform.OS === 'ios' ? Localization.locale : getGlobalStorage.string('app.language')
|
||
|
}
|
||
|
|
||
|
export default getLanguage
|