annotate client/src/main.js @ 141:0fd572582ab8 vue-gettext

POC
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 29 Jun 2018 13:38:28 +0200
parents 7ba0a77fd679
children 3d9341f6da4e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
1597506a2241 merge with vue-cli
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 import Vue from "vue";
1597506a2241 merge with vue-cli
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
2 import App from "./App.vue";
1597506a2241 merge with vue-cli
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
3 import router from "./router";
1597506a2241 merge with vue-cli
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
4 import store from "./store";
141
Thomas Junk <thomas.junk@intevation.de>
parents: 30
diff changeset
5 import GetTextPlugin from "vue-gettext";
Thomas Junk <thomas.junk@intevation.de>
parents: 30
diff changeset
6 import translations from "./translations.json";
Thomas Junk <thomas.junk@intevation.de>
parents: 30
diff changeset
7
Thomas Junk <thomas.junk@intevation.de>
parents: 30
diff changeset
8 const defaultLanguage = process.env.VUE_APP_DEFAULT_LANGUAGE || "de_DE";
Thomas Junk <thomas.junk@intevation.de>
parents: 30
diff changeset
9
Thomas Junk <thomas.junk@intevation.de>
parents: 30
diff changeset
10 Vue.use(GetTextPlugin, {
Thomas Junk <thomas.junk@intevation.de>
parents: 30
diff changeset
11 translations: translations,
Thomas Junk <thomas.junk@intevation.de>
parents: 30
diff changeset
12 availableLanguages: {
Thomas Junk <thomas.junk@intevation.de>
parents: 30
diff changeset
13 en_GB: "British English",
Thomas Junk <thomas.junk@intevation.de>
parents: 30
diff changeset
14 de_DE: "Deutsch"
Thomas Junk <thomas.junk@intevation.de>
parents: 30
diff changeset
15 },
Thomas Junk <thomas.junk@intevation.de>
parents: 30
diff changeset
16 defaultLanguage: defaultLanguage
Thomas Junk <thomas.junk@intevation.de>
parents: 30
diff changeset
17 });
Thomas Junk <thomas.junk@intevation.de>
parents: 30
diff changeset
18
3
1597506a2241 merge with vue-cli
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
19 import "../node_modules/bootstrap/dist/css/bootstrap.min.css";
11
e0b5dd98665e current frontend with asset server configured
Thomas Junk <thomas.junk@intevation.de>
parents: 3
diff changeset
20 import "../node_modules/font-awesome/css/font-awesome.min.css";
30
7ba0a77fd679 ol component added
Thomas Junk <thomas.junk@intevation.de>
parents: 13
diff changeset
21 import "../node_modules/ol/ol.css";
3
1597506a2241 merge with vue-cli
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
22
1597506a2241 merge with vue-cli
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
23 Vue.config.productionTip = false;
1597506a2241 merge with vue-cli
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
24
1597506a2241 merge with vue-cli
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
25 new Vue({
1597506a2241 merge with vue-cli
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
26 router,
1597506a2241 merge with vue-cli
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
27 store,
1597506a2241 merge with vue-cli
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
28 render: h => h(App)
1597506a2241 merge with vue-cli
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
29 }).$mount("#app");