瀏覽代碼

fix: setup locale crash

Nicolas Giard 6 年之前
父節點
當前提交
abce09210e
共有 2 個文件被更改,包括 1 次插入4 次删除
  1. 0 3
      server/locales/CONTRIBUTE.md
  2. 1 1
      server/setup.js

+ 0 - 3
server/locales/CONTRIBUTE.md

@@ -1,3 +0,0 @@
-# How to contribute new translations
-
-https://github.com/Requarks/wiki#translations

+ 1 - 1
server/setup.js

@@ -202,7 +202,7 @@ module.exports = () => {
       WIKI.logger.info('Installing default locale...')
       await WIKI.models.locales.query().insert({
         code: 'en',
-        strings: JSON.stringify({}),
+        strings: {},
         isRTL: false,
         name: 'English',
         nativeName: 'English'