From 415138e752832ec7a132072f6880f4ebba47d39d Mon Sep 17 00:00:00 2001 From: Nicolas Widart Date: Sat, 16 Sep 2017 16:15:57 +0200 Subject: [PATCH] Register the translations --- resources/assets/js/app.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index f4abd5611..56fb153ab 100755 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -27,9 +27,8 @@ const router = new VueRouter({ }); let messages = { - [currentLocale]: window.translations, + [currentLocale]: window.AsgardCMS.translations, }; -console.log(messages); const i18n = new VueI18n({ locale: currentLocale, @@ -41,12 +40,3 @@ const app = new Vue({ router, i18n, }); - -// window.axios.get(route('api.translation.translations.all')) -// .then(response => { -// messages = { -// [currentLocale]: response.data, -// }; -// console.log(messages); -// app.$i18n.setLocaleMessage('en', messages) -// });