Base solution for your next web application
Open Closed

What is the use case of set as default language on host and tenant. #8004


User avatar
0
MellowoodMedical created

Hi,

When I select a language from languages on tenant website and set it as default language, I am expecting the language for that user on tenant website to be that language. Is it the correct usecase of set default language on tenant website?

If yes, Could you please explain why the following step is not working as expected?

  1. In the portal go to Admin > Languages
  2. Select any language and click on actions drop down. Example, Espanol (Spanish)
  3. Click on Actions > Set as default language
  4. Successfully saved message is displayed on the bottom right corner of the screen
  5. Logout

Expected result:

  1. Login page and screen after login should be displayed in the selected default language

Actual result 2) Translation to the default language does not occur

Any help here is appreciated.


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

    Please refer to the documentation: How the Current Language is Determined. : ) https://aspnetboilerplate.com/Pages/Documents/Localization#how-the-current-language-is-determined

  • User Avatar
    0
    MellowoodMedical created

    I have gone through the implementation details. thanks for this.

    But all I wanted to know is in the above case how the applicaation is expected to behave? When i select the default language on tenant website, is it expected to display the tenant website in the selected language?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @MellowoodMedical

    Yes, exactly. It should work like that.

  • User Avatar
    0
    MellowoodMedical created

    Hi @ismcagdas ,

    Thanks for the clarification. Now its narrowed down to how 'set as default' should work in conjunction with the language button on the top right corner near the user profile.

    Back to the original question , the below use case shouls work as per your reply but not,

    In the portal go to Admin > Languages Select any language and click on actions drop down. Example, Espanol (Spanish) Click on Actions > Set as default language Successfully saved message is displayed on the bottom right corner of the screen Logout Expected result:

    Login page and screen after login should be displayed in the selected default language Actual result 2) Translation to the default language does not occur

    I have downloaded a fresh copy of AspZero and tried this and its behaaving the same way. The language selection is overriding the 'set as default'. Is this expected?

    Thanks

  • User Avatar
    0
    MellowoodMedical created

    Hi ,

    Any updates here?

  • User Avatar
    0
    maliming created
    Support Team

    The language selection is overriding the 'set as default'. Is this expected?

    Yes, please refer to the documentation I shared. The default language has a low priority.

    https://support.aspnetzero.com/QA/Questions/8004#answer-b8f939e6-a5af-debb-f2ca-39f174caad68