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

Allowing i18n of the labels. #22

Closed
coupej opened this issue Oct 5, 2016 · 1 comment
Closed

Allowing i18n of the labels. #22

coupej opened this issue Oct 5, 2016 · 1 comment

Comments

@coupej
Copy link
Contributor

coupej commented Oct 5, 2016

What would be the recommended way of translating/overwriting the default labels? Maybe it would be interesting to take that into account when implementing an implementation for issue #14?

@sindresorhus
Copy link
Owner

How about an option named labels that accepts an object of labels to override?

require('electron-context-menu')({
    labels: {
        cut: 'Cut',
        copy: 'Copy',
        inspect: 'Inspect'
    }
});

Doesn't have to wait for #14.

coupej added a commit to coupej/electron-context-menu that referenced this issue Oct 7, 2016
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