Skip to content

Support Globalization #162

@faramos

Description

@faramos

First of all, thank you for the great job with this library!

I’m encountering an issue with a library that relies on creating a CultureInfo object, which fails due to the globalization-invariant mode being enabled.

Exception Details:

System.Globalization.CultureNotFoundException: 
Message='Only the invariant culture is supported in globalization-invariant mode.

What I Tried:

I attempted to set System.Globalization.Invariant to false in my configuration, but this did not resolve the issue. Upon further investigation, I found that the Bootsharp.props file contains the following:

<InvariantGlobalization>true</InvariantGlobalization>

Question:

Is there any way to override InvariantGlobalization=true in the current setup? If not, are there alternative approaches to enable support for CultureInfo in the Wasm build?

Thank you for your help!


Notes

An alternative to supporting the default globalization (and including the ICU payload) is to use the currently experimental hybrid globalization:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or enhancementhelp wantedCommunity assistance is most appreciated

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions