Need help with expo device locale for IOS ?

Hello everyone,

I am working on a project using react-redux, thunk, and expo sdk. I am trying to detect device language to display content accordingly. while i managed to get the device language code from :

Expo.Expo.DangerZone.Localization.getCurrentDeviceCountryAsync().then(res => { Reactotron.log(res) })

But when logging this.props.lang after dispatching an action to set language i get en empty variable as initialized in the store.

here is the snack for the project: - Snack

I really need this feature so any help is very much appreciated :slight_smile:

PS: ./app/screen/MainScreen.js is where the component is logged

Hey there, sorry you’re having trouble with that.

It’s going to be pretty hard for someone else to debug an app with this much code. Is it possible for you to just make the smallest possible example which reproduces your problem? I think this might also help you debug it.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.