This sample demonstrates ABP's URL-based localization feature, where the current culture is embedded directly in the URL path (e.g., /tr/about or /en/about).
See the documentation: https://abp.io/docs/latest/framework/fundamentals/url-based-localization
# MVC
dotnet run --project src/BookStore.Mvc
# Blazor Server
dotnet run --project src/BookStore.Blazor.Server
# Blazor WebApp (InteractiveAuto)
dotnet run --project src/BookStore.Blazor.WebAppNavigate to the corresponding URL (e.g., https://localhost:44337/en/) and use the language switcher in the top bar.
Configure<AbpRequestLocalizationOptions>(options =>
{
options.UseRouteBasedCulture = true;
});
UseAbpRequestLocalization()must be called afterUseRouting()in the middleware pipeline.
- English (
/en/) - Türkçe (
/tr/) - Français (
/fr/) - 简体中文 (
/zh-Hans/)
