Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

International environment #42

Open
oovm opened this issue May 14, 2024 · 1 comment
Open

International environment #42

oovm opened this issue May 14, 2024 · 1 comment

Comments

@oovm
Copy link

oovm commented May 14, 2024

Is there some interface to determine the user's locale without reading the configuration file?

I hope my error message can automatically adapt according to the user's interface language.

Specifically, I need to read a string, and this string needs to be a legal icu4x locale.

Locale enumerations or structures are also welcome

@pchickey
Copy link
Contributor

There is no defined support for locale this in the wasi-cli proposal, or any Wasi proposal that I am aware of. The wasi-cli environment variables can provide the linux-style LC_* variables, which may be enough to get your use case bootstrapped. Adding better support for locale is definitely worth considering as an addition to this proposal, but I don't have the expertise to champion that change - if you do, and want to take it on, we can talk more about how to get that going.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants