Skip to content

Commit 2f688f4

Browse files
committed
comments added
1 parent 89b66a5 commit 2f688f4

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class BlocklyEditorFactory extends ABCWidgetFactory<
5454
this._manager,
5555
this._rendermime,
5656
this._language
57-
)
57+
)
5858
});
5959
}
6060
}

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ const plugin: JupyterFrontEndPlugin<IBlocklyManager> = {
9999
// after a code execution.
100100
rendermime: rendermime,
101101

102+
// The translator instance, used for the internalization of the plugin.
102103
translator: translator
103104
});
104105

src/manager.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ export class BlocklyManager implements IBlocklyManager {
7171
}
7272
}
7373

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.
7477
namespace Private {
7578
export async function importLanguageModule(language: string) {
7679
let module: Promise<any>;
@@ -171,6 +174,7 @@ namespace Private {
171174
break;
172175
}
173176

177+
// Setting the current language in Blockly.
174178
module.then(lang => {
175179
// @ts-ignore
176180
Blockly.setLocale(lang);

0 commit comments

Comments
 (0)