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

Set language from Postman or c# client #3116


User avatar
0
ivanosw1 created

Hi, I'm testing our service using Postman calls but I can't set the user language neither with cookies nor header. For example, a call to <a class="postlink" href="http://server/AbpUserConfiguration/GetAll">http://server/AbpUserConfiguration/GetAll</a> passing in headers Abp.Localization.CultureName=de reply always on browser culture or default culture if the call is made by c# client. If I use your angular2 app the and I click on some flags, the language is correctly set based on cookies. What I'm missing ?

Thanks


3 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi,

    We are currently working to improve localization. There is already an enhancement issue here: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2103">https://github.com/aspnetboilerplate/as ... ssues/2103</a>

    And here is the forum conversations about this topic. #3108

    Actually we tested localization as your way, you don't miss anything :)

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ivanosw1,

    You need to add "Accept-Language" header to your request instead of "Abp.Localization.CultureName".

    Thanks.

  • User Avatar
    0
    ivanosw1 created

    Just tryed and It works !

    Thank you @ismcagdas..