Base solution for your next web application
Open Closed

Set Default Language while creating the user #4773


User avatar
0
payopt created

Can you Please guide me how to set default language for user while user creation. or guild which api do i need to use for user default language.


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

    Hi,

    The default language of the user can be set via SettingManager

    SettingManager.ChangeSettingForUser(
                            AbpSession.ToUserIdentifier(),
                            LocalizationSettingNames.DefaultLanguage,
                            "en-US"
                        );
    

    you can use the awaitable method as well : ChangeSettingForUserAsync

    And it goes into the database in AbpSettings table like below [attachment=0:1ig448gj]set-user-language.jpg[/attachment:1ig448gj]

    Extra information: Do not insert into this table manually because application caches this table!

  • User Avatar
    0
    faisalalam created

    :D

  • User Avatar
    0
    alper created
    Support Team

    I hope it worked well! ;)