Open Closed

Localization files in Angular #484


User avatar
0
alkaabi created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v3.2.0
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

When building Angular for production, there are hundreds of locales related files that get generated. How can we exclude these files from build process while keeping only locales that we need?


2 Answer(s)
  • User Avatar
    0
    armanozak created

    Hi,

    The language management module allows defining a new localization at runtime. So, even if a language is not available before, it may be needed at runtime. This is why all those languages are generated and added to the bundle.

    There is no way to exclude files for now, but we have an open issue (v4.0 milestone) and are planning to introduce a custom localization handler which does that.

    Please let me know if this answers your question.

    Have a nice week.

  • User Avatar
    0
    armanozak created

    Hi,

    The aforementioned issue is closed now. Please check the localization document for implementation details.

    I am closing the issue. Please feel free to reopen it if it is not resolved for you.

    Have a nice day.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07