I am implementing localization for my application, I have followed the approach presented in this example https://learn.unity.com/tutorial/recorded-video-session-localization-tools which defines a LocalizationManager.cs script which I could call to load localized text from a LocalizedText.json file into a dictionary and then assign values to my UI labels using specific key for each label. I have 3 LocalizedText.json file one for English, Arabic, and Spanish. There is Settings scene where user can set the specified language which is saved inside PlayerPrefs and inside the Splash scene there is a check for the saved value for Language then load the localized text from the corresponding json file.
This works pretty fine for me when I test it inside the Editor.
This is a screenshots from my run sessions inside Unity editor
![alt text][1] I wanted to show Arabic to state that I can switch languages as English is the default for the application.
Meanwhile, when I build an Android apk and run it on my device, all the labels that's supposed to be localized display "Localized Text Not Found!" which is the value that gets passed when LocalizationManager cannot find the appropriate key specific to the corresponding label.
I get this warnings when I build my apk, and I highly suggest that these may be the cause of the issue I am getting and not a scripting issue as I have implemented this approach in another application and it was working perfectly fine and also, it is working correctly inside the Editor in play mode. ![alt text][2]
[1]: /storage/temp/188532-screenshot-65.png
[2]: /storage/temp/188531-screenshot-60.png
↧
Localized Text Not Found, Only inside Android apk build, works fine when testing inside the editor.
↧