ReactNativeLocalization icon indicating copy to clipboard operation
ReactNativeLocalization copied to clipboard

Non update of strings values on locale change

Open BrianJVarley opened this issue 6 years ago • 2 comments

Hi @stefalda , I installed this package and just did a quick test by updating my phone language on Android to "Spanish" as this is a language key within the strings object:

But no change is reflected on the app where these string values are used. It seems the app uses the default en-US strings regardless of device locale.

Can you advise if this was fixed in later versions of the package? Or maybe it's not picking up the correct locale code. I also tried with Russian, ru to no effect.

https://github.com/BrianJVarley/react-native-prototyping/blob/dev/src/localization/appStrings.js Android version: 8.0 Oreo My package version is "react-native-localization": "^1.0.11"

BrianJVarley avatar Jan 03 '19 23:01 BrianJVarley

Hi @BrianJVarley, have you tried restarting the app, because you need to listen to specific notifications to make the language chante automatic...

stefalda avatar Jan 05 '19 09:01 stefalda

Hi @BrianJVarley, have you tried restarting the app, because you need to listen to specific notifications to make the language chante automatic...

Can you elaborate this further? What kind of notifications do we need to listen to make the change automatic?

rubek-joshi avatar Jul 23 '20 10:07 rubek-joshi