Android SDK language issue

5 댓글

  • Eric Nelson
    Zendesk Developer Advocacy

    Hey Ivan,

    You'll need to restart the application for the changes to be picked up in the UI elements. We make mention of it here.

    Hope this helps!

    Have a wonderful day!

    Eric Nelson | Manager - Developer Advocacy

    1
  • Ivan Grechishchev

    Hi Eric! Thank you for the answer. I actually don't change the language so no changes are applied, thus no need to be restarted. It looks like after seeing some content in a WebView the app's locale is been reseted 

    0
  • Eric Nelson
    Zendesk Developer Advocacy

    Hey Ivan,

    Sorry what I was referring to was this piece of that article:

    Note: If you change the locale programmatically during the runtime of the application, the change won't be applied to the UI element. You must restart the application to update the locale.

    As you said some of the content we provide isn't being updated. This is due to you changing the locale programmatically and we aren't picking up the change as the view has already been loaded. Due to that the application will need to restart for the system elements to get picked up.

    Hope this helps,

    Eric

    0
  • Ivan Grechishchev

    Thank you for the information! Now I'm completely restarting the Application process when we switch the locale, however after I go the Support and open any article and then go back to the app and open support center again - some UI elements are being translated back to the device's locale. The content language is ok but it affects some SDK's strings, like "Was this article helpful?" or "See all X articles".

    It happens only on API >= Android N.

    It seems like that is a global WebView component issue but I can't find any solution

    0
  • Eric Nelson
    Zendesk Developer Advocacy

    Hey Ivan, 

    That's odd, can you open up a ticket for this issue so we can take a closer look?

    Thanks!

    Eric

    0

댓글을 남기려면 로그인하세요.

Zendesk 제공