Skip to content

Commit 0144a70

Browse files
DenisaCGhbcarlos
authored andcommitted
fixed remaining build errors
1 parent c70ce6d commit 0144a70

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/factory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export class BlocklyEditorFactory extends ABCWidgetFactory<
5353
context,
5454
this._manager,
5555
this._rendermime,
56-
this._language)
56+
this._language
57+
)
5758
});
5859
}
5960
}

src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ const plugin: JupyterFrontEndPlugin<IBlocklyManager> = {
4444
IRenderMimeRegistry,
4545
IFileBrowserFactory,
4646
ISettingRegistry,
47-
ITranslator],
47+
ITranslator
48+
],
4849
optional: [ILauncher, ICommandPalette],
4950
provides: IBlocklyManager,
5051
activate: (
@@ -123,8 +124,7 @@ const plugin: JupyterFrontEndPlugin<IBlocklyManager> = {
123124

124125
// Wait for the application to be restored and
125126
// for the settings for this plugin to be loaded
126-
settings.load(PLUGIN_ID)
127-
.then(setting => {
127+
settings.load(PLUGIN_ID).then(setting => {
128128
// Read the settings
129129
const currentLocale = getSetting(setting);
130130

@@ -133,9 +133,9 @@ const plugin: JupyterFrontEndPlugin<IBlocklyManager> = {
133133

134134
// Get new language and call the function that modifies the language name accordingly.
135135
// Also, make the transformation to have the name of the language package as in Blockly.
136-
const language =
137-
currentLocale[currentLocale.length - 2].toUpperCase() +
138-
currentLocale[currentLocale.length - 1].toLowerCase();
136+
const language =
137+
currentLocale[currentLocale.length - 2].toUpperCase() +
138+
currentLocale[currentLocale.length - 1].toLowerCase();
139139
console.log(`Current Language : '${language}'`);
140140

141141
// Transmitting the current language to the manager.

src/manager.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ export class BlocklyManager implements IBlocklyManager {
6666
}
6767

6868
setlanguage(language: string): void {
69-
this.language = language;
70-
7169
this.language = language;
7270
Private.importLanguageModule(language);
7371
}

0 commit comments

Comments
 (0)