Open Closed

Language do not match between Angular and MVC #1455


User avatar
0
christophe.baille created

ABP Framework version: v4.3.2 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): no

NOTE: One of my colleague created a similar issue here which have been successfully resolved on the release 4.3.2.

We open our application and change the language from english to Finnish. Then we click on login, this page is still in Finnish now since the version 4.3.2 (read the Not before), then login. I reach my Angualr Homepage and it is still in Finnish.

Now, I try reach a MVC view, in my case it is a page from the Blogging module, I then see my MVC page is is English, it should be in Finnish as we changed it previously.

With version before 4.3.2, we had this issue for all views that we can reach from the user menu as they were in MVC.Since 4.3.2, they are in Angular, so I can not test if that part have been fixed or not.

One more point which might help to solve the issue. When we logout, we "transit" through the page /Account/LoggedOut and this one remain in english too:


8 Answer(s)
  • User Avatar
    0
    Mehmet created

    Hi,

    We've created an internal issue. Thanks for the reporting.

  • User Avatar
    0
    christophe.baille created

    Hi,

    We've created an internal issue. Thanks for the reporting.

    Is there any way to follow the issue? Like Github link or anything?

  • User Avatar
    0
    muhammedaltug created

    Hello,

    We fixed different language problem between angular application and logout screen in 4.3.3 version.

    You can use /Abp/Languages/Switch endpoint for pass language info from angular app to mvc. You can get current language info from SessionStateService's getLanguage method.

    Example Usage of /Abp/Languages/Switch baseUrl/Abp/Languages/Switch?culture={language}&uiCulture={language}&returnUrl=/bloggingModuleLink

  • User Avatar
    0
    christophe.baille created

    It still doesn't work:

    I login in english, then go to MVC blogging view --> I reach blogging view in english: OK, it works now, it was not before

    I login in Finnish, then go to MVC blogging view --> I reach blogging view in Finnish: OK, it works now, it was not before

    I login in english, I then change language to finnish after login from my Angular UI, then go to MVC blogging view --> I reach blogging view in english: KO, shoud be in Finnish

    I login in Finnish, I then change language to english after login from Angular UI, then go to MVC blogging view --> I reach blogging view in english: KO, shoud be in english

  • User Avatar
    0
    creosource created

    It still doesn't work:

    I login in english, then go to MVC blogging view --> I reach blogging view in english: OK, it works now, it was not before

    I login in Finnish, then go to MVC blogging view --> I reach blogging view in Finnish: OK, it works now, it was not before

    I login in english, I then change language to finnish after login from my Angular UI, then go to MVC blogging view --> I reach blogging view in english: KO, shoud be in Finnish

    I login in Finnish, I then change language to english after login from Angular UI, then go to MVC blogging view --> I reach blogging view in english: KO, shoud be in english

    Don't know if this has anything to do but in my case, when I switch the language to French and click on Logout, it does not automatically redirect to login screen. Also the text in the button is empty.

  • User Avatar
    0
    christophe.baille created

    It still doesn't work:

    I login in english, then go to MVC blogging view --> I reach blogging view in english: OK, it works now, it was not before

    I login in Finnish, then go to MVC blogging view --> I reach blogging view in Finnish: OK, it works now, it was not before

    I login in english, I then change language to finnish after login from my Angular UI, then go to MVC blogging view --> I reach blogging view in english: KO, shoud be in Finnish

    I login in Finnish, I then change language to english after login from Angular UI, then go to MVC blogging view --> I reach blogging view in english: KO, shoud be in english

    Don't know if this has anything to do but in my case, when I switch the language to French and click on Logout, it does not automatically redirect to login screen. Also the text in the button is empty.

    It's a different problem that will be fixed very soon apparently:

    https://support.abp.io/QA/Questions/1718/Bugs-when-switch-between-Angular-and-Account-MVC-view

    You can fix it already by editing the translation text of the language you are using in languge management, just need to remove {0} from ReturnToText target value, replace by "l'application" in that case.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks @christophe

  • User Avatar
    0
    creosource created

    It still doesn't work:

    I login in english, then go to MVC blogging view --> I reach blogging view in english: OK, it works now, it was not before

    I login in Finnish, then go to MVC blogging view --> I reach blogging view in Finnish: OK, it works now, it was not before

    I login in english, I then change language to finnish after login from my Angular UI, then go to MVC blogging view --> I reach blogging view in english: KO, shoud be in Finnish

    I login in Finnish, I then change language to english after login from Angular UI, then go to MVC blogging view --> I reach blogging view in english: KO, shoud be in english

    Don't know if this has anything to do but in my case, when I switch the language to French and click on Logout, it does not automatically redirect to login screen. Also the text in the button is empty.

    It's a different problem that will be fixed very soon apparently:

    https://support.abp.io/QA/Questions/1718/Bugs-when-switch-between-Angular-and-Account-MVC-view

    You can fix it already by editing the translation text of the language you are using in languge management, just need to remove {0} from ReturnToText target value, replace by "l'application" in that case.

    Thanks christophe this worked great ! :)

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07