Open Closed

Language Conflict #4580


User avatar
0
chandler.valle created

Hi there, I have a language conflict on ABP. If I add a new language, for example, Canadian English. Then change some words to Canadian English only. The ABP always gets from American English and ignores Canadian English, even if I set Canadian English as a default language.

Check the video below for further information: https://youtu.be/zaQp-jDJK54

Thank you.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    I will check it.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    https://github.com/abpframework/abp/pull/9170#issuecomment-850250509

    This is a known issue, creating RequestLocalizationOptions for each request is unacceptable, It can cause huge performance problems。

    After you add a new language, you need to re-run the application.

    If you really need it, you can change the lifecycle of the service:

    context.Services.RemoveAll(x => x.ServiceType == typeof(IAbpRequestLocalizationOptionsProvider));
        context.Services.AddScoped<IAbpRequestLocalizationOptionsProvider,DefaultAbpRequestLocalizationOptionsProvider>();
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 23, 2026, 09:57
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.