Skip to content

Commit 4f146fb

Browse files
committed
Update ScratchMsgs export
- Update shims to make sure `msg/scratch_msg.js` is included - Add missing empty `locales` to ScratchMsgs
1 parent f93fa8c commit 4f146fb

5 files changed

+11
-3
lines changed

core/scratch_msgs.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,19 @@
2525
'use strict';
2626

2727
/**
28-
* Name space for the Msg singleton.
28+
* Name space for the ScratchMsgs singleton.
2929
* Msg gets populated in the message files.
3030
*/
3131
goog.provide('Blockly.ScratchMsgs');
3232

3333
goog.require('Blockly.Msg');
3434

35+
36+
/**
37+
* The object containing messages for all locales - loaded from msg/scratch_msgs.
38+
* @type {Object}
39+
*/
40+
Blockly.ScratchMsgs.locales = {};
3541
/**
3642
* Change the Blockly.Msg strings to a new Locale
3743
* Does not exist in Blockly, but needed in scratch-blocks

shim/blocks_compressed_horizontal-blockly_compressed_horizontal-messages.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shim/blocks_compressed_vertical-blockly_compressed_vertical-messages.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shim/horizontal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('imports-loader?Blockly=../shim/blocks_compressed_horizontal,goog=../shim/blockly_compressed_horizontal.goog!exports-loader?Blockly!../msg/messages');
1+
module.exports = require('imports-loader?Blockly=../shim/blocks_compressed_horizontal-blockly_compressed_horizontal-messages,goog=../shim/blockly_compressed_horizontal.goog!exports-loader?Blockly!../msg/scratch_msgs');

shim/vertical.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('imports-loader?Blockly=../shim/blocks_compressed_vertical,goog=../shim/blockly_compressed_vertical.goog!exports-loader?Blockly!../msg/messages');
1+
module.exports = require('imports-loader?Blockly=../shim/blocks_compressed_vertical-blockly_compressed_vertical-messages,goog=../shim/blockly_compressed_vertical.goog!exports-loader?Blockly!../msg/scratch_msgs');

0 commit comments

Comments
 (0)