فهرست منبع

fix: sideloading locales should import availabilities (#5973)

topdev-spetermann 2 سال پیش
والد
کامیت
eadefb8827
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      server/core/sideloader.js

+ 4 - 2
server/core/sideloader.js

@@ -52,7 +52,8 @@ module.exports = {
                   strings: lcObj,
                   isRTL: locale.isRTL,
                   name: locale.name,
-                  nativeName: locale.nativeName
+                  nativeName: locale.nativeName,
+                  availability: locale.availability || 0
                 }).where('code', locale.code)
               } else {
                 await WIKI.models.locales.query().insert({
@@ -60,7 +61,8 @@ module.exports = {
                   strings: lcObj,
                   isRTL: locale.isRTL,
                   name: locale.name,
-                  nativeName: locale.nativeName
+                  nativeName: locale.nativeName,
+                  availability: locale.availability || 0
                 })
               }
               importedLocales++