-
Couldn't load subscription status.
- Fork 5.2k
Closed
Labels
Milestone
Description
var culture = new CultureInfo("fr-FR");
while (true)
{
Console.WriteLine($"{culture.Name}: {culture.DisplayName}");
if (culture == CultureInfo.InvariantCulture)
{
break;
}
culture = culture.Parent;
}Output in .NET Core:
fr-FR: French (France)
fr: French
: Invariant Language (Invariant Country)
Output in WASM:
fr-FR: Invariant Language (Invariant Country)
: Invariant Language (Invariant Country)
The important bit here is that the parent culture (fr) is missing. This affects resx file lookups.