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

Implement formal support for translation of messages in plugins #807

Open
moniika opened this issue Jul 7, 2021 · 1 comment
Open

Implement formal support for translation of messages in plugins #807

moniika opened this issue Jul 7, 2021 · 1 comment
Labels
category: plugin Anything in the plugins folder status: discussion type: feature request New feature or request

Comments

@moniika
Copy link
Contributor

moniika commented Jul 7, 2021

Category
Plugins

Component

n/a

Is your feature request related to a problem? Please describe.

Plugins that have translatable text on UI element require translation support, but there is no "official" way to support translation in plugins.

Describe the solution you'd like
google/blockly#1169

Describe alternatives you've considered

Continue using the same approach as in block-plus-minus and workspace-backpack plugins:
https://github.com/google/blockly-samples/blob/fb16a806ce44aeb5296647f77bbc5813c3b5ed93/plugins/workspace-backpack/README.md#blockly-languages
https://github.com/google/blockly-samples/blob/fb16a806ce44aeb5296647f77bbc5813c3b5ed93/plugins/block-plus-minus/README.md#blockly-languages

Additional context
The design for this will probably require core changes and existing plugins with english strings should be updated to use the new system.

@moniika moniika added type: feature request New feature or request category: plugin Anything in the plugins folder status: discussion labels Jul 7, 2021
@alschmiedt
Copy link
Contributor

Additional info:

In typed modal we addressed this by allowing developers to call setLocale with a messages object. See 'Blockly Languages` on the npm page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: plugin Anything in the plugins folder status: discussion type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants