-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application language change issue #74
Comments
Hi, Do you change the language in the Apple Settings or do you use another method? Can you describe this in a more detail? |
Hello, Inside our app we have direct access to the Apple settings to change the language. To give you more details:
I hope this explanation has enough detail for you. Thank you, |
Hi @judithgomezlorenzo , sorry for the late response(another task required more time). Do you use english default values in the calls to Example: The order in which we determine the translation is as follows:
That can explain why the translations are always in English after a language change. And why NSLocalizedString works, maybe you have disabled "PhraseSDKMainBundleProxyDisabled" in the Info.plist? In this case, NSLocalizedString always returns the translations from the app bundle. One more question about changing the language. You said you have direct access to the Apple settings to change the language. But you didn't mean the UserDefauls, right? The app is restarted after changing the language? |
Hi @carstenapploft, No worries. We don't use english default values when calling
We call |
hi, there is a case where we fall back to the "Base.lproj" translations if no bundle could be created for the selected language. Can you check whether this code returns a valid URL in the app and whether the url is also a directory?
|
Hello, After running the above piece of code:
|
Hello @judithgomezlorenzo , Can you tell me if the translations are also in English after you change the language between non-English languages? (e.g. from German to French) If I'm right and the problem is in the fallback translation and you say NSLocalizedString works, then you can specify NSLocalizedString as a fallback and it should work(as a workaround).
|
Hi @carstenapploft, Sorry for the late reply, I have been out of town these days. If I switch from German to French, the same thing happens, the LaunchScreen is in French, but then the app is in English. |
Hi @judithgomezlorenzo , We should check the API calls that are sent from SDK. Maybe the server always returns English translations. The first URL should look like this(this will redirect to the second url): And the second url should look like this and contains the translations: Please do not post your URLs here as they contain api secrets. You can also submit a bug report here(This allows us to assign the problem to an organization.): |
Hi @carstenapploft, I've checked the API calls through Charles and the URLs look like: And then: Do you prefer me to submit a bug report? Thanks! |
hi @judithgomezlorenzo , it looks like the API delivers the standard translation(en-US). This can happen if the language was not found or the language is not part of the OTA distribution. You can check in the Phrase Dashboard under ‘Over the Air’ -> {your_distribution_name} -> gearwheel/settings whether all languages are selected for the distribution. If not, select all and create a new release with all languages. If the problem persists after that, please create a bug report so that my colleagues can take a look at it. |
Hi,
We have a problem with Phrase.localizedString or OTA.
Context
Result
Could you help us? Thanks in advance.
The text was updated successfully, but these errors were encountered: