Skip to content

Comments

feat: add setting to change and hotreload locale#1817

Open
Silzinc wants to merge 7 commits intoAvengeMedia:masterfrom
Silzinc:locale-switcher
Open

feat: add setting to change and hotreload locale#1817
Silzinc wants to merge 7 commits intoAvengeMedia:masterfrom
Silzinc:locale-switcher

Conversation

@Silzinc
Copy link
Contributor

@Silzinc Silzinc commented Feb 24, 2026

I essentially extended the I18n service to manage the locale, and replaced pretty much every call of Qt.locale by I18n.locale. This should answer #1663.

@Silzinc
Copy link
Contributor Author

Silzinc commented Feb 24, 2026

Just realised that it would be nice to store the locale in settings. Right now, it still loads the system's default on startup. I will have a look at it soon enough.

@Silzinc
Copy link
Contributor Author

Silzinc commented Feb 24, 2026

Locale is now a regular setting. It is "" by default. If it is "" and if the system locale is set, then it will be set to the system's locale. Otherwise, or if the setting leads to an invalid/unsupported locale, it is left unchanged and the interface is in English. If it is a valid language, it is loaded, with a priority over the system's locale.

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

Successfully merging this pull request may close these issues.

1 participant