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:
Beka Westberg
2022-09-26 14:02:57 -07:00
committed by GitHub
parent 893787b285
commit 9c81e7591a
128 changed files with 892 additions and 1336 deletions

View File

@@ -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];
});
};

View File

@@ -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.