Follow-up updates (#29319)

pull/29320/head
Luke Latham 2023-05-19 12:15:25 -04:00 committed by GitHub
parent ec254a0d21
commit e939ef6bf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 8 deletions

View File

@ -80,32 +80,38 @@ The following field types have specific formatting requirements and aren't curre
For current browser support of the preceding types, see [Can I use](https://caniuse.com).
:::zone pivot="webassembly"
## .NET globalization and International Components for Unicode (ICU) support
:::moniker-end
:::moniker range=">= aspnetcore-8.0"
:::zone pivot="webassembly"
## .NET globalization and International Components for Unicode (ICU) support
Blazor WebAssembly uses a reduced globalization API and set of built-in International Components for Unicode (ICU) locales. For more information, see [.NET globalization and ICU: ICU on WebAssembly](/dotnet/core/extensions/globalization-icu#icu-on-webassembly).
To load a custom ICU data file to control the app's locales, see [WASM Globalization Icu](https://github.com/dotnet/runtime/blob/main/docs/design/features/globalization-icu-wasm.md). Currently, manually building the custom ICU data file is required. .NET tooling to ease the process of creating the file is planned for a future .NET 8.0 preview release.
To load a custom ICU data file to control the app's locales, see [WASM Globalization Icu](https://github.com/dotnet/runtime/blob/main/docs/design/features/globalization-icu-wasm.md). Currently, manually building the custom ICU data file is required. .NET tooling to ease the process of creating the file is planned for a future .NET 8.0 preview release.
:::zone-end
:::moniker-end
:::moniker range=">= aspnetcore-7.0 < aspnetcore-8.0"
:::zone pivot="webassembly"
## .NET globalization and International Components for Unicode (ICU) support
Blazor WebAssembly uses a reduced globalization API and set of built-in International Components for Unicode (ICU) locales. For more information, see [.NET globalization and ICU: ICU on WebAssembly](/dotnet/core/extensions/globalization-icu#icu-on-webassembly).
Loading a custom subset of locales in a Blazor WebAssembly app is supported in .NET 8 or later. For more information, access this section for an 8.0 or later version of this article.
:::zone-end
:::moniker-end
:::moniker range=">= aspnetcore-7.0"
:::zone-end
## Invariant globalization
If the app doesn't require localization, configure the app to support the invariant culture, which is generally based on United States English (`en-US`). Set the `InvariantGlobalization` property to `true` in the app's project file (`.csproj`):

View File

@ -89,7 +89,7 @@ Without specifying additional configuration for `CoolApp`, the sub-app in this s
### Background
An anchor tag's destination ([`href`](https://developer.mozilla.org/docs/Web/HTML/Element/a)) can be composed with two endpoints:
An anchor tag's destination ([`href`](https://developer.mozilla.org/docs/Web/HTML/Element/a)) can be composed with either of two endpoints:
* Absolute locations that include a scheme (defaults to the page's scheme if omitted), host, port, and path or just a forward slash (`/`) followed by the path.