Skip to content

Commit eadefb8

Browse files
fix: sideloading locales should import availabilities (requarks#5973)
1 parent d6d88ed commit eadefb8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

server/core/sideloader.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,17 @@ module.exports = {
5252
strings: lcObj,
5353
isRTL: locale.isRTL,
5454
name: locale.name,
55-
nativeName: locale.nativeName
55+
nativeName: locale.nativeName,
56+
availability: locale.availability || 0
5657
}).where('code', locale.code)
5758
} else {
5859
await WIKI.models.locales.query().insert({
5960
code: locale.code,
6061
strings: lcObj,
6162
isRTL: locale.isRTL,
6263
name: locale.name,
63-
nativeName: locale.nativeName
64+
nativeName: locale.nativeName,
65+
availability: locale.availability || 0
6466
})
6567
}
6668
importedLocales++

0 commit comments

Comments
 (0)