-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Blockly.setLocale do not translate all block #4617
Comments
This could be related to #4369. |
@YUN-RU-TSENG I think you're right and that is the issue.
As mentioned here, you should be able to change all of the broken JSON block-definitions to JavaScript block-definitions to fix the issue. If you change them to JavaScript blockly-definitions you can pass the actual Blockly.Msg references, rather than the %{BKY_...} strings that break the dropdowns. For example:
But be warned, this could take a lot of work :/ |
thanks. |
Closing as a duplicate of #1895 . Thanks for reporting! |
Describe the bug
I want to change the language of blockly. Since Blockly needs to set the language before generating the Workspace, I regenerate the workspace every time I change the language using Blockly.setLocale, but not all blocks will be changed, some blocks' dropdown menu language will not be changed and will remain the same.
To Reproduce
here is online demo, i use vue2.
App.vue
Expected behavior
all blocks translate to current language.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: