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/locales/en.json b/src/locales/en.json
new file mode 100644
index 0000000..8464ff4
--- /dev/null
+++ b/src/locales/en.json
@@ -0,0 +1,38 @@
+{
+ "global": {
+ "formField": {
+ "validator": "Field required"
+ }
+ },
+ "login": {
+ "language": {
+ "label": "Language"
+ },
+ "languages": {
+ "select": "Select an option",
+ "english": "English",
+ "spanish": "Spanish"
+ },
+ "logIn": {
+ "label": "Log in"
+ },
+ "errorMsg": {
+ "title": "Invalid username or password.",
+ "action": "Please try again."
+ },
+ "password": {
+ "label": "Password",
+ "validator": "@:global.formField.validator"
+ },
+ "username": {
+ "label": "Username",
+ "validator": "@:global.formField.validator"
+ }
+ },
+ "pageTitle": {
+ "localUserMgmt": "Local user management",
+ "login": "Login",
+ "overview": "Overview",
+ "unauthorized": "Unauthorized"
+ }
+}
\ No newline at end of file