Search code examples
asp.net-coreaspnetboilerplate

How to add new language to ABP template?


I'm using free boilerplate (ASP.NET Core MVC & jQuery) from this site https://aspnetboilerplate.com/Templates

Is it possible to add new language support?

I already add localized .xml file, update 'abplanguages' table in database but it is not working. I'm changing language but text is still in english. The same situation with predefined languages already shipped with boilerplate like 'espanol-mexico' is not working but when I pick 'french' the page is translated. This is weird because in documentation said it can be done. https://aspnetboilerplate.com/Pages/Documents/Localization#extending-localization-sources

I wonder is it free template restriction?


Solution

  • I figure it out. In my case it was incorrect build action property. In VS right click on localization source file: *.xml file -> Advanced -> Build action: Embedded resource.