Unverified Commit eadefb88 authored by topdev-spetermann's avatar topdev-spetermann Committed by GitHub

fix: sideloading locales should import availabilities (#5973)

parent d6d88ed9
......@@ -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++
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment