aboutsummaryrefslogtreecommitdiff
path: root/nuxt.config.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-09-06 13:32:32 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-09-06 13:32:32 -0400
commit9113a265ba23892b87815f0dcacf31cef2694c4d (patch)
tree7646289f9c90ca77201ffdfded254f1b15f5a061 /nuxt.config.js
parentbedae60dd91df3c775e1f2486dd26a73450db846 (diff)
downloadpersonal-website-9113a265ba23892b87815f0dcacf31cef2694c4d.tar.gz
personal-website-9113a265ba23892b87815f0dcacf31cef2694c4d.tar.bz2
personal-website-9113a265ba23892b87815f0dcacf31cef2694c4d.zip
i18n Support; French support
Diffstat (limited to 'nuxt.config.js')
-rw-r--r--nuxt.config.js33
1 files changed, 28 insertions, 5 deletions
diff --git a/nuxt.config.js b/nuxt.config.js
index 833c978..2c39420 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -1,4 +1,5 @@
import colors from 'vuetify/es5/util/colors'
+import i18n from './config/i18n'
module.exports = {
mode: 'universal',
@@ -14,7 +15,7 @@ module.exports = {
{
rel: 'icon',
type: 'image/x-icon',
- href: 'favicon.ico'
+ href: '/favicon.ico'
}
]
},
@@ -36,14 +37,36 @@ module.exports = {
buildModules: [
// Doc: https://github.com/nuxt-community/eslint-module
'@nuxtjs/eslint-module',
- '@nuxtjs/vuetify'
+ '@nuxtjs/vuetify',
+
],
/*
** Nuxt.js modules
*/
- modules: ['@nuxtjs/pwa', '@nuxtjs/markdownit'],
+ modules: [
+ '@nuxtjs/markdownit',
+ [
+ 'nuxt-i18n',
+ {
+ defaultLocale: 'en',
+ locales: [
+ {
+ code: 'en',
+ iso: 'en-US',
+ name: 'English'
+ },
+ {
+ code: 'fr',
+ iso: 'fr-FR',
+ name: 'Français'
+ }
+ ],
+ vueI18n: i18n
+ }
+]
+ ],
- markdownit: {
+ markdown: {
injected: true
},
@@ -60,7 +83,7 @@ module.exports = {
primary: colors.blue.darken2,
accent: colors.grey.darken3,
secondary: colors.amber.darken3,
- info: colors.teal.lighten1,
+ info: colors.teal.darken1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3