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

Allow to translate default items text #267

Open
totpero opened this issue Jun 20, 2023 · 1 comment
Open

Allow to translate default items text #267

totpero opened this issue Jun 20, 2023 · 1 comment

Comments

@totpero
Copy link

totpero commented Jun 20, 2023

Hi,
Please add the Zoom In and Zoom Out texts to the settings like this:

const contextmenu = new ContextMenu({
    width: 170,
    defaultItems: true, // defaultItems are (for now) Zoom In/Zoom Out
    zoomInText: "Zoom In",
    zoomOutText: "Zoom Out"
......

I want to translate this.
I know I can disable defaultItems and add this items manually but then no make sense the defaultItems integrated into the ContextMenu.
👍

@jonataswalker
Copy link
Owner

Fair enough, would you like to provide a PR?

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

No branches or pull requests

2 participants