Browse Source

fix: sideloading locales should import availabilities (#5973)

pull/6011/head
topdev-spetermann 1 year ago
committed by GitHub
parent
commit
eadefb8827
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions
  1. 6
      server/core/sideloader.js

6
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++

Loading…
Cancel
Save