- Home /
Localized Text Not Found, Only inside Android apk build, works fine when testing inside the editor.
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 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.
Your answer
Follow this Question
Related Questions
Unity Android game works on new Android versions but not in an old version? 1 Answer
Distribute terrain in zones 3 Answers
I am having trouble building the project for android (i can't build) 0 Answers
Cannot build an android game after updating unity. 1 Answer
BuildFailedException: Incremental Player build failed! 2 Answers