Base solution for your next web application
Open Closed

Xamarin translations on startup #5274


User avatar
0
Ricavir created

Hello,

I'm using Xamarin App v5.1 with aspcore server (also in v5.1)

When I start Xamarin app and connect a user, app language is always set to English ; even if user has set its default language to French before. Also, when I connect to the angular application, I notice that default user language has also changed to english.

Users are then obliged to set their language after each app startup (Xamarin AND Angular)!

Do you know this issue ? I don't see any existing issue on GitHub about it.


6 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    I tried to reproduce the problem but couldn't.

    I installed the Xamarin app from the below link. <a class="postlink" href="https://play.google.com/store/apps/details?id=com.aspnetzero.mobile">https://play.google.com/store/apps/deta ... ero.mobile</a>

    This app is connected to the <a class="postlink" href="http://demo.aspnetzero.com">http://demo.aspnetzero.com</a> website. So I created a tenant on the demo website.

    And I login to the Xamarin App with that tenant. I change the user's language from the website. Then open the Xamarin App and login with the same user. I see the main screen (after the login screen) is the same language as I set from the website.

    Can you clearly express the reproduce steps?

  • User Avatar
    0
    Ricavir created

    I'm getting some issues with my Xamarin app. I will test again and give you a feedback when I will have more information to provide.

  • User Avatar
    0
    alper created
    Support Team

    Ok. commit your every successful development. because Xamarin sometimes throws silly exceptions.

  • User Avatar
    0
    mikatmlvertti created

    Hi Is there a solution for this? I also have same problem. I have fi language selected in Angular UI, but when I loging with xamarin app, language is english. If I change language from settings, it changes but after restarging xamaring app, language is english again.

    Also in loginview, sometimes language change doesn't take effect. View is changed, but language remains english.

    1. Start Xamaring app (user is not logged in), Login view is english
    2. Change Language to finnish, works.
    3. Login with my user -> language is english
    4. Logout from app -> Login view, english.
    5. Try to change language to fi, page refresh -> english
    6. Close app and forse stop.
    7. Start app -> english loginview
    8. Change Language to finnish, works.
  • User Avatar
    0
    Ricavir created

    Hi,

    I had some issues with my Xamarin App and didn't took time to reproduce and explain this issue. From your message, I can see that we have the same issue.

  • User Avatar
    0
    mikatmlvertti created

    Startup language seems to follow Host's Default language setting. I changed it to Deutsch and started xamarin app again, it was translated to deutch and even after login with my tenant, language did not change. Tenants default language is finnish and users language is finnish.