diff --git a/package.json b/package.json index a700cc214..0a6118393 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "ual-wombat": "^0.3.3", "universal-authenticator-library": "^0.3.0", "vue": "3", + "vue-i18n": "^9.0.0", "vue-json-viewer": "3", "vue-router": "4", "vue3-click-away": "^1.2.4", diff --git a/quasar.conf.js b/quasar.conf.js index a1aeb3f17..27d349054 100644 --- a/quasar.conf.js +++ b/quasar.conf.js @@ -23,7 +23,7 @@ module.exports = function(/* ctx */) { // app boot file (/src/boot) // --> boot files are part of "main.js" // https://quasar.dev/quasar-cli/boot-files - boot: ['ual', 'hyperion', 'api', 'telosApi', 'evm', 'q-component-defaults'], + boot: ['ual', 'hyperion', 'i18n', 'api', 'telosApi', 'evm', 'q-component-defaults'], // https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css css: ['fonts/silka/silka.css', 'app.sass'], diff --git a/src/boot/i18n.js b/src/boot/i18n.js new file mode 100644 index 000000000..ab3698772 --- /dev/null +++ b/src/boot/i18n.js @@ -0,0 +1,14 @@ +import { boot } from 'quasar/wrappers'; +import { createI18n } from 'vue-i18n'; +import messages from 'src/i18n'; + +export default boot(({ app }) => { + const i18n = createI18n({ + locale: 'en-us', + globalInjection: true, + messages, + }); + + // Set i18n instance on app + app.use(i18n); +}); \ No newline at end of file diff --git a/src/components/ConfirmationDialog.vue b/src/components/ConfirmationDialog.vue index c9d4cde23..93377f3e2 100644 --- a/src/components/ConfirmationDialog.vue +++ b/src/components/ConfirmationDialog.vue @@ -1,6 +1,4 @@