From eadefb88278608cfe4c65923e3213cb5306b8b6d Mon Sep 17 00:00:00 2001 From: topdev-spetermann <121106551+topdev-spetermann@users.noreply.github.com> Date: Thu, 22 Dec 2022 00:37:41 +0100 Subject: [PATCH] fix: sideloading locales should import availabilities (#5973) --- server/core/sideloader.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/core/sideloader.js b/server/core/sideloader.js index 40d80966..cbdb58c7 100644 --- a/server/core/sideloader.js +++ b/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++