UNPKG

blockly

Version:

Blockly is a library for building visual programming editors.

34 lines (29 loc) 823 B
/* eslint-disable */ ;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD define(['./blockly'], factory); } else if (typeof exports === 'object') { // Node.js module.exports = factory(require('./blockly')); } else { // Browser root.Blockly = factory(root.Blockly); } }(this, function(Blockly) { /** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Blockly core module for the browser. It includes blockly.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) { Object.keys(locale).forEach(function (k) { Blockly.Msg[k] = locale[k]; }); }; return Blockly; }));