diff --git a/assets/js/app.js b/assets/js/app.js index fef225429..6e135c4d4 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -5,6 +5,7 @@ import Vue from "vue"; import axios from "axios"; import App from "./views/App"; import router from "./router"; +import i18n from "./i18n"; import store from "./store"; const loc = window.location; @@ -15,6 +16,7 @@ axios.defaults.headers.post["Content-Type"] = "application/json"; window.app = new Vue({ el: "#app", router, + i18n, data: { store, notifications: [] }, render: function (h) { return h(App, { props: { notifications: this.notifications } }); diff --git a/assets/js/components/Footer.stories.js b/assets/js/components/Footer.stories.js index 9f7d125f1..b7af49992 100644 --- a/assets/js/components/Footer.stories.js +++ b/assets/js/components/Footer.stories.js @@ -1,4 +1,5 @@ import Footer from "./Footer.vue"; +import i18n from "../i18n"; export default { title: "Main/Footer", @@ -7,6 +8,7 @@ export default { }; const Template = (args, { argTypes }) => ({ + i18n, props: Object.keys(argTypes), components: { Footer }, template: '', diff --git a/assets/js/components/Loadpoint.stories.js b/assets/js/components/Loadpoint.stories.js index 7446d9ec6..fdb123b39 100644 --- a/assets/js/components/Loadpoint.stories.js +++ b/assets/js/components/Loadpoint.stories.js @@ -1,4 +1,5 @@ import Loadpoint from "./Loadpoint.vue"; +import i18n from "../i18n"; export default { title: "Main/Loadpoint", @@ -11,6 +12,7 @@ export default { }; const Template = (args, { argTypes }) => ({ + i18n, props: Object.keys(argTypes), components: { Loadpoint }, template: '', diff --git a/assets/js/components/Loadpoint.vue b/assets/js/components/Loadpoint.vue index b95a6b842..81856df64 100644 --- a/assets/js/components/Loadpoint.vue +++ b/assets/js/components/Loadpoint.vue @@ -1,11 +1,13 @@