Browse Source

fix: setup locale crash

Nicolas Giard 6 năm trước cách đây
mục cha
commit
3c8dcdcc37
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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'