Open Closed

ABP Commercial hide language dropdown #5352


User avatar
0
mithun created

We have using ABP commercial version and have a requirement to hide language dropdown. Please let me know how to hide language dropdown,

ABP Framework version: v7.2.2 UI type: Blazor Server Side DB provider: EF Core Tiered (MVC): yes Exception message: None


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

    hi

    Are you using LeptonX as the theme?

    You can try to override the ThemeLanguageInfoProvider service and return an empty language list.

  • User Avatar
    0
    mithun created

    We are using standard/basic theme not LeptonX

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can remove the LanguageSwitch(blazor) and LanguageSwitchViewComponent(mvc).

    Add a custom IToolbarContributor and remove them from context

    https://github.com/abpframework/abp/blob/dev/modules/basic-theme/src/Volo.Abp.AspNetCore.Components.Server.BasicTheme/BasicThemeToolbarContributor.cs#L14 https://github.com/abpframework/abp/blob/dev/modules/basic-theme/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Toolbars/BasicThemeMainTopToolbarContributor.cs#L31

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