Explorar o código

fix: setup locale crash

Nicolas Giard %!s(int64=6) %!d(string=hai) anos
pai
achega
3c8dcdcc37
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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'