HAXM
HAXM

Reputation: 3918

My language translation are not working in debug build

My language translation are not working in debug build, However It works fine in release build, I checked and got a workaround to set the language dynamically inside activity class, but I don't want to do this since it work fine in the release build, there should be a good remedy instead of applying a hack or unwanted code, In my app there is an network api call at beginning that returns language needed to be set to the app, this works good in release build, but in debug build the translation are working for only main module, but no translation works for the activity that are present in other module. any help will be appreciated.

Upvotes: 1

Views: 638

Answers (1)

Sam
Sam

Reputation: 5392

I believe there is an app on the market called moreLocales 2. I use for this purpose.

If you install it, you can switch the localization of your device and it should work for you as it works for me, and I hit the same issue. If you are just relying on changing your settings in the phone and not rebooting or going through the startup flow, it may be caching. That's my best assumption as to why it doesn't obey the phone settings without this extra app installed.

But this is just for development and testing as the release version should work fine. You can also test it in the preview on Android Studio by picking your language.

Upvotes: 0

Related Questions