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

Allow dynamic language selection #2515

Open
Pickysaurus opened this issue Jan 21, 2025 · 1 comment
Open

Allow dynamic language selection #2515

Pickysaurus opened this issue Jan 21, 2025 · 1 comment
Labels
Epic: Settings meta-improvement An issue that improves an existing feature

Comments

@Pickysaurus
Copy link
Contributor

Improvement

Currently

The available locales in the app are hard coded.

We want

A dynamic list of locales based on available resource files

Supporting Information

// TODO: dynamically get allowed values
CultureInfo[] supportedLanguages =
[
new CultureInfo("en"),
new CultureInfo("pl"),
new CultureInfo("de"),
new CultureInfo("it"),
];

Design

(Any designs to required for this feature)

@Pickysaurus Pickysaurus added Epic: Settings meta-improvement An issue that improves an existing feature labels Jan 21, 2025
@erri120
Copy link
Member

erri120 commented Jan 22, 2025

So far the only solution I found is to literally try every language and see which one return a value. Not sure that's what we want, as it'll likely increase startup times by a lot. Maybe there's a cool source generator somewhat that just gives us a list of available languages at compile time....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic: Settings meta-improvement An issue that improves an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants