mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
22 lines
486 B
JavaScript
22 lines
486 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Blockly core module for Node. It includes blockly-node.js
|
|
* and adds a helper method for setting the locale.
|
|
*/
|
|
|
|
/* eslint-disable */
|
|
'use strict';
|
|
|
|
// Add a helper method to set the Blockly locale.
|
|
Blockly.setLocale = function (locale) {
|
|
Blockly.Msg = Blockly.Msg || {};
|
|
Object.keys(locale).forEach(function (k) {
|
|
Blockly.Msg[k] = locale[k];
|
|
});
|
|
};
|