浏览代码

fix: setup locale crash

Nicolas Giard 6 年之前
父节点
当前提交
3c8dcdcc37
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/setup.js

+ 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: require('./locales/default.json'),
+        strings: JSON.stringify({}),
         isRTL: false,
         name: 'English',
         nativeName: 'English'