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