-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Use display language when available #114
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Apart from my review comments, could you maybe move those function to another file/class as well? Maybe even with dependency injection, scoped to the Activity. See the Koin docs for more info on that.
ad209a8
to
b487176
Compare
Thanks for the changes! I'll review this later today (after sleeping). EDIT: was busy with other stuff the last days, will still take some time. |
b487176
to
f74abee
Compare
f74abee
to
6ae25ad
Compare
e90a7c9
to
dbeb8be
Compare
@CarlosOlivo did some more tweaks, please take another look at those and lmk if they are ok, then I'll merge. |
Yep, it works fine, you just have to remove all the code that loads the locale from the API [serverSettings], I noticed after the next test that it is not necessary and even counterproductive.
With serverSettings code:
Without serverSettings code:
|
@CarlosOlivo So I should just keep the user settings source for locale? |
Yep, when no language is set in user settings the web UI fallback to system locale, not to uiCulture locale. That is the default behavior. |
11f6fad
to
1cb5346
Compare
Co-authored-by: Maxr1998 <[email protected]>
1cb5346
to
8e5b653
Compare
In the next order:
Server settingsFor now, it's necessary to restart the application manually when the language is changed, as long as no events are handled.
Closes #83