Skip to content

[Wasm] Satellite assemblies for localization are not used #107742

@jeromelaban

Description

@jeromelaban

Description

When adding .withConfig({ loadAllSatelliteResources: true }), satellite assemblies are all downloaded and loaded by the runtime, but using resources from those satellites resources does not work properly.

Reproduction Steps

The following:

var r = new System.Resources.ResourceManager("FxResources.System.Web.Services.Description.SR", typeof(System.Web.Services.Description.Binding).Assembly);
Console.WriteLine($"Res(en): {r.GetString("WebDescriptionMissing", new CultureInfo("en-US"))}");
Console.WriteLine($"Res(fr): {r.GetString("WebDescriptionMissing", new CultureInfo("fr"))}");

Repro: 107742-testresources01.zip

Expected behavior

The second line should return french.

Actual behavior

Res(en): Cannot find definition for {0}.  Service Description with namespace {1} is missing.
Res(fr): Cannot find definition for {0}.  Service Description with namespace {1} is missing.

Regression?

Feels like it is, net8 got it available.

Known Workarounds

None.

Configuration

.NET 9 RC1

Other information

No response

Metadata

Metadata

Assignees

Labels

arch-wasmWebAssembly architecturearea-System.Resourcesin-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions