diff --git a/src/components/Activity.vue b/src/components/Activity.vue
index 7e8ae13..83d11fa 100644
--- a/src/components/Activity.vue
+++ b/src/components/Activity.vue
@@ -270,7 +270,7 @@ const coderbot_locales = {
en: bot_en,
fr: bot_fr
};
-Blockly.Msg = { ...Blockly.Msg, ...coderbot_locales[locale] };
+Blockly.Msg = { ...Blockly.Msg, ...coderbot_locales[locale].default };
const blockly_locales = {
it: blockly_it,
@@ -504,7 +504,7 @@ export default {
// Options
{
toolbox: serializedToolbox,
- // path: 'static/js/blockly/',
+ media: 'media/',
// TODO: Use values from fetched configuration!
scrollbars: true,
// MaxBlocks : -1, // -1 as infinite not working FIXME
diff --git a/src/i18n/index.js b/src/i18n/index.js
index 574a7c5..695bb29 100644
--- a/src/i18n/index.js
+++ b/src/i18n/index.js
@@ -19,7 +19,7 @@ const locales = {
Vue.use(VueI18n);
-const language = window.navigator.userLanguage || window.navigator.language;
+const language = (window.navigator.userLanguage || window.navigator.language).substring(0, 2);
export default new VueI18n({
locale: language,
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy