Skip to content

Commit

Permalink
Register the translations
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 16, 2017
1 parent 96294d2 commit 415138e
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions resources/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
// });

0 comments on commit 415138e

Please sign in to comment.