Browse Source

fix: Fixed i18n incorrect paths

pull/89/head
NGPixel 7 years ago
parent
commit
5c9fe14723
3 changed files with 5 additions and 5 deletions
  1. 4
      config.docker.yml
  2. 4
      config.sample.yml
  3. 2
      server/index.js

4
config.docker.yml

@ -2,7 +2,7 @@
# Wiki.js - CONFIGURATION #
#######################################################################
# Full explanation + examples in the documentation:
# https://wiki.requarks.io/install
# https://docs.requarks.io/wiki/install
# ---------------------------------------------------------------------
# Title of this site
@ -43,7 +43,7 @@ uploads:
# ---------------------------------------------------------------------
# Site Language
# ---------------------------------------------------------------------
# Possible values: en, fr
# Possible values: en, de, es, fr, ko, pt or ru
lang: en

4
config.sample.yml

@ -2,7 +2,7 @@
# Wiki.js - CONFIGURATION #
#######################################################################
# Full explanation + examples in the documentation:
# https://wiki.requarks.io/install
# https://docs.requarks.io/wiki/install
# ---------------------------------------------------------------------
# Title of this site
@ -43,7 +43,7 @@ uploads:
# ---------------------------------------------------------------------
# Site Language
# ---------------------------------------------------------------------
# Possible values: en, fr
# Possible values: en, de, es, fr, ko, pt or ru
lang: en

2
server/index.js

@ -131,7 +131,7 @@ lang
preload: ['en', 'fr'],
fallbackLng: 'en',
backend: {
loadPath: './locales/{{lng}}/{{ns}}.json'
loadPath: path.join(SERVERPATH, 'locales/{{lng}}/{{ns}}.json')
}
})

Loading…
Cancel
Save