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/src/App.vue b/src/App.vue
index a5a768a..30de752 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -13,7 +13,7 @@
name: 'App',
watch: {
$route: function(to) {
- document.title = to.meta.title || 'Page is Missing Title';
+ document.title = this.$t(to.meta.title) || 'Page is missing title';
}
}
};