Browse Source

add support chinese

pull/1039/head
chenhe 4 years ago
parent
commit
44709e8878
2 changed files with 3 additions and 3 deletions
  1. 4
      frontend/i18n/index.js
  2. 2
      frontend/nuxt.config.js

4
frontend/i18n/index.js

@ -21,9 +21,9 @@ export default {
],
lazy: true,
langDir: 'i18n/',
defaultLocale: 'zh',
defaultLocale: 'en',
vueI18n: {
fallbackLocale: 'zh'
fallbackLocale: 'en'
},
detectBrowserLanguage: {
useCookie: true,

2
frontend/nuxt.config.js

@ -15,7 +15,7 @@ export default {
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
],
script: [
{ src: '/js/all.js' }
{ src: 'https://use.fontawesome.com/releases/v5.0.6/js/all.js' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },

Loading…
Cancel
Save