diff options
author | Dixsie Wolmers <dixsie@ibm.com> | 2020-01-31 05:58:37 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2020-02-13 17:55:41 +0300 |
commit | cbcd2136cd80395eff898738747c52c4b301fd56 (patch) | |
tree | 2d8af955bb96a5a0e8bec1cbc194debe2a777b0e /vue.config.js | |
parent | db6fd25ff19210261f9b3ae25c6bcd383b5b836f (diff) | |
download | webui-vue-cbcd2136cd80395eff898738747c52c4b301fd56.tar.xz |
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
Diffstat (limited to 'vue.config.js')
-rw-r--r-- | vue.config.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vue.config.js b/vue.config.js index e40b01ef..12a723d6 100644 --- a/vue.config.js +++ b/vue.config.js @@ -16,7 +16,7 @@ module.exports = { '/': { 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 @@ module.exports = { config.plugins.delete('prefetch'); config.plugins.delete('preload'); } + }, + pluginOptions: { + i18n: { + localeDir: 'locales', + enableInSFC: true + } } }; |