|
@@ -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 = {
|
|
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++
|