Browse Source
refactor: Remove unnecessary Blazor web app configuration from localization examples
pull/25174/head
maliming
6 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
2 changed files with
0 additions and
15 deletions
-
docs/en/Community-Articles/2026-03-29-Url-Based-Localization/POST.md
-
docs/en/framework/fundamentals/url-based-localization.md
|
|
@ -143,11 +143,6 @@ Normal page-to-page navigation (within the same language) remains client-side an |
|
|
### Example module configuration |
|
|
### Example module configuration |
|
|
|
|
|
|
|
|
```csharp |
|
|
```csharp |
|
|
PreConfigure<AbpAspNetCoreComponentsWebOptions>(options => |
|
|
|
|
|
{ |
|
|
|
|
|
options.IsBlazorWebApp = true; |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
Configure<AbpRequestLocalizationOptions>(options => |
|
|
Configure<AbpRequestLocalizationOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.UseRouteBasedCulture = true; |
|
|
options.UseRouteBasedCulture = true; |
|
|
|
|
|
@ -143,11 +143,6 @@ Blazor Server uses SignalR (WebSocket) for the interactive circuit. The HTTP mid |
|
|
### Example module configuration |
|
|
### Example module configuration |
|
|
|
|
|
|
|
|
````csharp |
|
|
````csharp |
|
|
PreConfigure<AbpAspNetCoreComponentsWebOptions>(options => |
|
|
|
|
|
{ |
|
|
|
|
|
options.IsBlazorWebApp = true; |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
Configure<AbpRequestLocalizationOptions>(options => |
|
|
Configure<AbpRequestLocalizationOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.UseRouteBasedCulture = true; |
|
|
options.UseRouteBasedCulture = true; |
|
|
@ -188,11 +183,6 @@ Same as Blazor Server — you must manually add `@page "/{culture}/..."` routes |
|
|
|
|
|
|
|
|
````csharp |
|
|
````csharp |
|
|
// Server project |
|
|
// Server project |
|
|
PreConfigure<AbpAspNetCoreComponentsWebOptions>(options => |
|
|
|
|
|
{ |
|
|
|
|
|
options.IsBlazorWebApp = true; |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
Configure<AbpRequestLocalizationOptions>(options => |
|
|
Configure<AbpRequestLocalizationOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.UseRouteBasedCulture = true; |
|
|
options.UseRouteBasedCulture = true; |
|
|
|