File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ export class BlocklyEditorFactory extends ABCWidgetFactory<
53
53
context ,
54
54
this . _manager ,
55
55
this . _rendermime ,
56
- this . _language )
56
+ this . _language
57
+ )
57
58
} ) ;
58
59
}
59
60
}
Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ const plugin: JupyterFrontEndPlugin<IBlocklyManager> = {
44
44
IRenderMimeRegistry ,
45
45
IFileBrowserFactory ,
46
46
ISettingRegistry ,
47
- ITranslator ] ,
47
+ ITranslator
48
+ ] ,
48
49
optional : [ ILauncher , ICommandPalette ] ,
49
50
provides : IBlocklyManager ,
50
51
activate : (
@@ -123,8 +124,7 @@ const plugin: JupyterFrontEndPlugin<IBlocklyManager> = {
123
124
124
125
// Wait for the application to be restored and
125
126
// for the settings for this plugin to be loaded
126
- settings . load ( PLUGIN_ID )
127
- . then ( setting => {
127
+ settings . load ( PLUGIN_ID ) . then ( setting => {
128
128
// Read the settings
129
129
const currentLocale = getSetting ( setting ) ;
130
130
@@ -133,9 +133,9 @@ const plugin: JupyterFrontEndPlugin<IBlocklyManager> = {
133
133
134
134
// Get new language and call the function that modifies the language name accordingly.
135
135
// 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 ( ) ;
139
139
console . log ( `Current Language : '${ language } '` ) ;
140
140
141
141
// Transmitting the current language to the manager.
Original file line number Diff line number Diff line change @@ -66,8 +66,6 @@ export class BlocklyManager implements IBlocklyManager {
66
66
}
67
67
68
68
setlanguage ( language : string ) : void {
69
- this . language = language ;
70
-
71
69
this . language = language ;
72
70
Private . importLanguageModule ( language ) ;
73
71
}
You can’t perform that action at this time.
0 commit comments