Base solution for your next web application
Open Closed

Missing localization sources when default language is changed (Abp, AbpWeb, AbpZero) #7903


User avatar
0
TPATax created

Hello, I would like to address you with an issue that occurres when we change app default language from en to cs-CZ. If we do that, the server doesn’t return all localization sources (Abp, AbpWeb, AbpZero). Key and values from these sources are empty a it just returns values: { Abp:{}, AbpWeb:{}, AbpZero:{}, App:{…}}. When we set default language back to en everything works fine. We really need to have default language set to cs-CZ.

Nevertheless, if we modify value for key in DB app returns only modified values.

It works properly on my localhost, but on my colleague’s and on our dev and production server it does not.

Thank you.


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Sorry for our late reply. Do you have XML file for cs-CZ culture ?

  • User Avatar
    0
    TPATax created

    Hello, yes we do have XML files with translations for our app (ourapp.cs-CZ.xml and ourapp.xml - the second one for english). We do not have problem with that. We have a problem with Abp, AbpWeb, AbpZero which are returned empty when we set default language on cs-CZ. Is there any possible way how to register XML files for these sources with culture cs-CZ?

    Thank you.

  • User Avatar
    1
    maliming created
    Support Team

    hi @TPATax you can try Extending Localization Sources

    see https://aspnetboilerplate.com/Pages/Documents/Localization#extending-localization-sources

  • User Avatar
    0
    TPATax created

    Hi, @maliming, thank you for the link provided. It looks like it works properly right now.