File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/blockly-extension/src Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -168,8 +168,10 @@ const plugin: JupyterFrontEndPlugin<IBlocklyRegistry> = {
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.
You can’t perform that action at this time.
0 commit comments