Skip to content

Commit 9c14fb5

Browse files
authored
Add a note about BlazorWebAssemblyLoadAllGlobalizationData (#20197)
1 parent e2c7e23 commit 9c14fb5

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

aspnetcore/blazor/globalization-localization.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,15 @@ To explicitly configure the culture, set <xref:System.Globalization.CultureInfo.
6060

6161
::: moniker range=">= aspnetcore-5.0"
6262

63-
By default, Blazor WebAssembly carries globalization resources required to display values, such as dates and currency, in the user's culture. If the app doesn't require localization, you may configure the app to support the invariant culture, which is based on the `en-US` culture:
63+
By default, Blazor WebAssembly carries minimal globalization resources required to display values, such as dates and currency, in the user's culture. Applications that must support dynamically changing the culture should configure `BlazorWebAssemblyLoadAllGlobalizationData` in the project file:
64+
65+
```xml
66+
<PropertyGroup>
67+
<BlazorWebAssemblyLoadAllGlobalizationData>true</BlazorWebAssemblyLoadAllGlobalizationData>
68+
</PropertyGroup>
69+
```
70+
71+
If the app doesn't require localization, you may configure the app to support the invariant culture, which is based on the `en-US` culture:
6472

6573
```xml
6674
<PropertyGroup>

0 commit comments

Comments
 (0)