Open Closed

How remove all languages keep only ar and en ? #9432


User avatar
0
devmahmod created

I want to remove all languages expect Arabic and English how


6 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Try to remove the languages from AbpLocalizationOptions

    PostConfigure<AbpLocalizationOptions>(options =>
    {
        options.Languages.Remove..
    });
    
  • User Avatar
    0
    devmahmod created

    thanks for quick replay , which project i will make this note i'm using mvc core multi layer and all languages appear in project web, and please give me full code or i mean full fix

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can also disable the languages fromthe Language Management module

    https://abp.io/docs/latest/modules/language-management#languages

  • User Avatar
    0
    devmahmod created

    thanks but i want from code how

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok, you can clear the data from the AbpLanguages table.

    Then, remove languages from all projects.

    PostConfigure<AbpLocalizationOptions>(options =>
    {
        options.Languages.Remove..
    });
    
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    : )

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.0.0-preview. Updated on September 01, 2025, 08:37