-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
default
locale will use OS default locale
#13721
default
locale will use OS default locale
#13721
Conversation
Thanks for making a pull request to jupyterlab! |
@krassowski would you mind testing this one? I tested locally on a laptop with French as default Windows language. But I would appreciate if some non-english user can test it too. |
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.
Tested locally, works well - thanks!
I left a minor suggestion to add a comment in one place.
packages/translation/src/manager.ts
Outdated
try { | ||
for (const lang of Object.values(this._languageData.data ?? {})) { | ||
this._currentLocale = ( | ||
(lang as any)['']['language'] as string |
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.
The use of empty string looks odd. Might benefit from a commit explaining it.
Thanks for the review and test @krassowski |
Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
bdb5e08
to
44cb76c
Compare
I wonder if we should use
Feel free to move the discussion to a new issue if you want to go ahead merging it as-is. |
I'm gonna backport it as jupyterlab_server has been released (and it does not break API). |
@meeseeksdev please backport to 3.6.x |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
References
Fix #9672
Code changes
New
default
value for language settings to use the default locale (if the associated language pack is installed).Requires jupyterlab/jupyterlab_server#366
User-facing changes
JupyterLab loads with the OS language by default (if the associated language pack is installed)
Backwards-incompatible changes
None