Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Xamarin internal localization management #6624


User avatar
0
Ricavir created

Hi,

I'm using some local translations on Xamarin App for some special cases where translations are available on server side. These local translations are linked to the device language... but, when user changes languages from app and gets translation from server, the local translations are kept on device language

Therefore, I can have a mix of server translation (let's say english ones) and local translations in the device language.

Is this a bugg ? How can I sync server and local translations ?

Tks


4 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    How is that a bug?

    Don't use device language.

  • User Avatar
    0
    Ricavir created

    Hi @aaron, device language is being used by zero startup template. I've used it in the same way. As an example, DatetimeConverter is using it to format dates into strings... and that's completely fine to me. You have also some local strings in the startup template like "no internet connection" message that has nothing to do in server side.

    So, for me, it is handy to have such possibility...and will not remove it from my project.

    Therfore, having local translations in sync with selected user language seems to me obvious.

  • User Avatar
    0
    alper created
    Support Team

    Use local translations only when you don't have access to the server translations; Else use the translations come from server. For example, you can show an error message to the user if the device is not connected to internet. Local translations and server translations are not being merged!

  • User Avatar
    0
    Ricavir created

    OK, got it. Tks @alper