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

Normalize translation domain #10728

Merged

Conversation

fcollonval
Copy link
Member

References

Translation files are normalized. But the domain that reference it in the frontend is not. This breaks the ability to load translation if the domain requested is not normalized.

Code changes

Domain is automatically normalized to be tolerant to extension authors not knowing the correct normalization rule.

User-facing changes

N/A

Backwards-incompatible changes

N/A

@jupyterlab-dev-mode
Copy link

Thanks for making a pull request to JupyterLab!

To try out this branch on binder, follow this link: Binder

Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@blink1073 blink1073 merged commit 16be971 into jupyterlab:master Jul 29, 2021
@fcollonval fcollonval deleted the fix/trans-domain-normalization branch July 29, 2021 09:17
@goanpeca
Copy link
Member

Thanks !

Should we backport this @fcollonval ?

@fcollonval
Copy link
Member Author

Should we backport this @fcollonval ?

It may be a good idea to do it. Should it be backported to 3.0.x and 3.1.x?

@goanpeca
Copy link
Member

It may be a good idea to do it. Should it be backported to 3.0.x and 3.1.x?

I would say yes!

@fcollonval
Copy link
Member Author

@meeseeksdev please backport to 3.1.x

@fcollonval
Copy link
Member Author

@meeseeksdev please backport to 3.0.x

meeseeksmachine pushed a commit to meeseeksmachine/jupyterlab that referenced this pull request Jul 29, 2021
fcollonval added a commit that referenced this pull request Aug 4, 2021
Co-authored-by: Frédéric Collonval <fcollonval@gmail.com>
fcollonval added a commit that referenced this pull request Aug 4, 2021
Co-authored-by: Frédéric Collonval <fcollonval@gmail.com>
@github-actions github-actions bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Jan 26, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement pkg:translation status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants