aspnetboilerplate / aspnetboilerplate

ASP.NET Boilerplate - Web Application Framework
https://aspnetboilerplate.com
MIT License
11.82k stars 3.79k forks source link

Change language #4108

Closed miuosh closed 5 years ago

miuosh commented 5 years ago

Hello,

I have problem with language settings. I can pick language in client side, changes are saved to DB in abpsettings.NAME as Abp.Localization.DefaultLanguageName. The problem is that when I select french language the client side is translated but when I pick any other language I get my page translated to english (which is default). In boilerplate there is many more languages to pick and I'd like to add even more. Languages seetings are saved to DB but it has no effect on client side (except one - fr). Cookie .AspNetCore.Culture and Accept-Language header are set properly according to what language I pick in client side.

Already looking related issue https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2531 but no solution works for me.

I'm using Asp.NetCore: 2.1 ABP MVC & jQuery 4.2.0.0

ismcagdas commented 5 years ago

@miuosh is this happening for a new language you have added ? If so, restarting the app might help.

miuosh commented 5 years ago

@ismcagdas I restart app and rebuild solution. It is happening for new language I add and for languages already shipped with boilerplate so that's little bit confusing.

ismcagdas commented 5 years ago

Ok, we will test it and fix if there is a problem.

yekalkan commented 5 years ago

Hi

I've downloaded a new project from aspnetboilerplate.com and run it. Changing language is working smoothly. So i'm closing the issue. If you can provide more steps to reproduce, i'll check it again.