Open Closed

Share localization file between "de", "de-de", "de-at" #5190


User avatar
0
BassaSolutions created
  • ABP Framework version: v6.0.3
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

How is it possible to have multiple languages link to 1 localization file? e.g. "de", "de-de", "de-at" should all show the translations of 1 translation file.

This is required when the client sends the language (e.g. as cookie or query param). Currently with only 1 language "de-de", when the client sends "de-at", it will show the default language english.

As a workaround we duplicate the jsons, which is a overhead on every text change.

Thank you in advance!


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    https://github.com/maliming/Owl.Abp.CultureMap You can try this to map "de" and "de-at" to "de-de".

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35