mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
fix: message types being incorrect (#6414)
* chore: regen msg dts files * fix: package tasks not packaging msg.d.ts files * fix: add setLocale to blockly.ts * chore: format * chore: move setLocale * chore: add comment about setLocale not being useful when used with script tags * chore: format
This commit is contained in:
@@ -12,9 +12,3 @@
|
||||
/* eslint-disable */
|
||||
'use strict';
|
||||
|
||||
// Add a helper method to set the Blockly locale.
|
||||
Blockly.setLocale = function (locale) {
|
||||
Object.keys(locale).forEach(function (k) {
|
||||
Blockly.Msg[k] = locale[k];
|
||||
});
|
||||
};
|
||||
|
||||
@@ -12,12 +12,6 @@
|
||||
/* eslint-disable */
|
||||
'use strict';
|
||||
|
||||
// Add a helper method to set the Blockly locale.
|
||||
Blockly.setLocale = function (locale) {
|
||||
Object.keys(locale).forEach(function (k) {
|
||||
Blockly.Msg[k] = locale[k];
|
||||
});
|
||||
};
|
||||
|
||||
// Override textToDomDocument and provide Node.js alternatives to DOMParser and
|
||||
// XMLSerializer.
|
||||
|
||||
Reference in New Issue
Block a user