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

Dynamic label for toggle sidebar element in keyboard shortcuts #16218

Merged

Conversation

itsmevichu
Copy link
Contributor

Fix for #16217

Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

Copy link
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

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

Thanks for starting this! Two suggestions:

  • the call to trans.__ needs a slight adjustment as arguments do not get translated
  • the existing label should be kept as a fallback when args are not given because a command label can be also queried without arguments.

packages/application-extension/src/index.tsx Outdated Show resolved Hide resolved
@krassowski krassowski added the bug label Apr 21, 2024
@krassowski krassowski added this to the 4.2.0 milestone Apr 21, 2024
@krassowski krassowski linked an issue Apr 21, 2024 that may be closed by this pull request
Copy link
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

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

Thank you @itsmevichu!

@krassowski krassowski merged commit 8819549 into jupyterlab:main Apr 21, 2024
80 of 81 checks passed
@krassowski krassowski changed the title Dynamic label for toggle sidebar element in ketboard shortcuts Dynamic label for toggle sidebar element in keyboard shortcuts Apr 22, 2024
JasonWeill pushed a commit to JasonWeill/jupyterlab that referenced this pull request Apr 22, 2024
…erlab#16218)

* Dynamic label for toggle sidebar element in ketboard shortcuts

* Adapted review comments.

* Adapting review comments.
gderocher pushed a commit to gderocher/jupyterlab that referenced this pull request Apr 26, 2024
…erlab#16218)

* Dynamic label for toggle sidebar element in ketboard shortcuts

* Adapted review comments.

* Adapting review comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The label of toggle sidebar element command should be dynamic
2 participants