Set up initial language translation
- Add i18n internationalization plugin
- Create json files for group 0 English and Spanish
- Uses $t method to set up initial translations on login page
- Meta title is translated using i18n in App.vue and PageTitle.Vue
Signed-off-by: Dixsie Wolmers <dixsie@ibm.com>
Change-Id: Ifce9f5e54d96f8b2a13239ad6178892f99fc4537
diff --git a/vue.config.js b/vue.config.js
index e40b01e..12a723d 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -16,7 +16,7 @@
'/': {
target: process.env.BASE_URL,
onProxyRes: proxyRes => {
- // This header is igorned in the browser so removing
+ // This header is ignored in the browser so removing
// it so we don't see warnings in the browser console
delete proxyRes.headers['strict-transport-security'];
}
@@ -39,5 +39,11 @@
config.plugins.delete('prefetch');
config.plugins.delete('preload');
}
+ },
+ pluginOptions: {
+ i18n: {
+ localeDir: 'locales',
+ enableInSFC: true
+ }
}
};