···168168 // Get new language and call the function that modifies the language name accordingly.
169169 // Also, make the transformation to have the name of the language package as in Blockly.
170170 const language =
171171- currentLocale[currentLocale.length - 2].toUpperCase() +
172172- currentLocale[currentLocale.length - 1].toLowerCase();
171171+ currentLocale === 'default'
172172+ ? 'En'
173173+ : currentLocale[currentLocale.length - 2].toUpperCase() +
174174+ currentLocale[currentLocale.length - 1].toLowerCase();
173175 console.log(`Current Language : '${language}'`);
174176175177 // Transmitting the current language to the manager.