File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ const coderbot_locales = {
270
270
en: bot_en,
271
271
fr: bot_fr
272
272
};
273
- Blockly .Msg = { ... Blockly .Msg , ... coderbot_locales[locale] };
273
+ Blockly .Msg = { ... Blockly .Msg , ... coderbot_locales[locale]. default };
274
274
275
275
const blockly_locales = {
276
276
it: blockly_it,
@@ -504,7 +504,7 @@ export default {
504
504
// Options
505
505
{
506
506
toolbox: serializedToolbox,
507
- // path : 'static/js/blockly /',
507
+ media : ' media /' ,
508
508
// TODO: Use values from fetched configuration!
509
509
scrollbars: true ,
510
510
// MaxBlocks : -1, // -1 as infinite not working FIXME
Original file line number Diff line number Diff line change @@ -81,11 +81,10 @@ export default {
81
81
} = this .$data ;
82
82
// let programList = this.$data.programList
83
83
axios .post (` ${ CB } /deleteActivity` , {
84
- name,
85
- })
86
- .then (() => {
87
- this .getActivities ();
88
- });
84
+ name,
85
+ }).then (() => {
86
+ this .getActivities ();
87
+ });
89
88
},
90
89
toggleSidebar () {
91
90
const currentStatus = this .$store .getters .drawerStatus ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const locales = {
19
19
20
20
Vue . use ( VueI18n ) ;
21
21
22
- const language = window . navigator . userLanguage || window . navigator . language ;
22
+ const language = ( window . navigator . userLanguage || window . navigator . language ) . substring ( 0 , 2 ) ;
23
23
24
24
export default new VueI18n ( {
25
25
locale : language ,
You can’t perform that action at this time.
0 commit comments