🎉 Basic i18n support

This commit is contained in:
Liyas Thomas
2019-11-27 14:15:11 +05:30
parent c4c320da83
commit 2697cce6dd
11 changed files with 153 additions and 36 deletions

View File

@@ -228,7 +228,8 @@ export default {
['@nuxtjs/google-tag-manager', {
id: process.env.GTM_ID || 'GTM-MXWD8NQ'
}],
['@nuxtjs/robots']
['@nuxtjs/robots'],
['nuxt-i18n']
],
pwa: {
manifest: {
@@ -277,6 +278,24 @@ export default {
Allow: '/',
Sitemap: 'https://postwoman.io/sitemap.xml'
},
i18n: {
locales: [{
code: 'en',
name: 'English',
iso: 'en-US',
file: 'en-US.js'
},
{
code: 'es',
name: 'Español',
iso: 'es-ES',
file: 'es-ES.js'
}
],
defaultLocale: 'en',
lazy: true,
langDir: 'lang/'
},
/*
** Build configuration
*/