A monorepo containing jupyter-blocks and jupyter-tidyblocks. Blockly extension for JupyterLab.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #91 from QuantStack/fixBlocklyLanguage

Fix `Blockly` language for default locale

authored by

Denisa Checiu and committed by
GitHub
567d75e8 f7b9c4da

+4 -2
+4 -2
packages/blockly-extension/src/index.ts
··· 168 168 // Get new language and call the function that modifies the language name accordingly. 169 169 // Also, make the transformation to have the name of the language package as in Blockly. 170 170 const language = 171 - currentLocale[currentLocale.length - 2].toUpperCase() + 172 - currentLocale[currentLocale.length - 1].toLowerCase(); 171 + currentLocale === 'default' 172 + ? 'En' 173 + : currentLocale[currentLocale.length - 2].toUpperCase() + 174 + currentLocale[currentLocale.length - 1].toLowerCase(); 173 175 console.log(`Current Language : '${language}'`); 174 176 175 177 // Transmitting the current language to the manager.