Skip to content

Commit f33c5a6

Browse files
committed
fix media, messages
1 parent b4c2877 commit f33c5a6

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/components/Activity.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ const coderbot_locales = {
270270
en: bot_en,
271271
fr: bot_fr
272272
};
273-
Blockly.Msg = { ...Blockly.Msg, ...coderbot_locales[locale] };
273+
Blockly.Msg = { ...Blockly.Msg, ...coderbot_locales[locale].default };
274274
275275
const blockly_locales = {
276276
it: blockly_it,
@@ -504,7 +504,7 @@ export default {
504504
// Options
505505
{
506506
toolbox: serializedToolbox,
507-
// path: 'static/js/blockly/',
507+
media: 'media/',
508508
// TODO: Use values from fetched configuration!
509509
scrollbars: true,
510510
// MaxBlocks : -1, // -1 as infinite not working FIXME

src/components/ActivityList.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,10 @@ export default {
8181
} = this.$data;
8282
// let programList = this.$data.programList
8383
axios.post(`${CB}/deleteActivity`, {
84-
name,
85-
})
86-
.then(() => {
87-
this.getActivities();
88-
});
84+
name,
85+
}).then(() => {
86+
this.getActivities();
87+
});
8988
},
9089
toggleSidebar() {
9190
const currentStatus = this.$store.getters.drawerStatus;

src/i18n/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const locales = {
1919

2020
Vue.use(VueI18n);
2121

22-
const language = window.navigator.userLanguage || window.navigator.language;
22+
const language = (window.navigator.userLanguage || window.navigator.language).substring(0, 2);
2323

2424
export default new VueI18n({
2525
locale: language,

0 commit comments

Comments
 (0)