File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export class BlocklyEditorFactory extends ABCWidgetFactory<
54
54
this . _manager ,
55
55
this . _rendermime ,
56
56
this . _language
57
- )
57
+ )
58
58
} ) ;
59
59
}
60
60
}
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ const plugin: JupyterFrontEndPlugin<IBlocklyManager> = {
99
99
// after a code execution.
100
100
rendermime : rendermime ,
101
101
102
+ // The translator instance, used for the internalization of the plugin.
102
103
translator : translator
103
104
} ) ;
104
105
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ export class BlocklyManager implements IBlocklyManager {
71
71
}
72
72
}
73
73
74
+ // Dynamically importing the language modules needed for each respective
75
+ // user, in order to change the Blockly language in accordance to the
76
+ // JL one.
74
77
namespace Private {
75
78
export async function importLanguageModule ( language : string ) {
76
79
let module : Promise < any > ;
@@ -171,6 +174,7 @@ namespace Private {
171
174
break ;
172
175
}
173
176
177
+ // Setting the current language in Blockly.
174
178
module . then ( lang => {
175
179
// @ts -ignore
176
180
Blockly . setLocale ( lang ) ;
You can’t perform that action at this time.
0 commit comments