feat: sync locales strings
This commit is contained in:
@@ -28,6 +28,12 @@ module.exports = {
|
||||
installDate: isInstalled ? _.find(localLocales, ['code', rl.code]).updatedAt : null
|
||||
}
|
||||
})
|
||||
},
|
||||
async config(obj, args, context, info) {
|
||||
return {
|
||||
locale: WIKI.config.site.lang,
|
||||
autoUpdate: WIKI.config.site.langAutoUpdate
|
||||
}
|
||||
}
|
||||
},
|
||||
LocalizationMutation: {
|
||||
|
@@ -16,6 +16,7 @@ extend type Mutation {
|
||||
|
||||
type LocalizationQuery {
|
||||
locales: [LocalizationLocale]
|
||||
config: LocalizationConfig
|
||||
}
|
||||
|
||||
# -----------------------------------------------
|
||||
@@ -43,3 +44,8 @@ type LocalizationLocale {
|
||||
nativeName: String!
|
||||
updatedAt: Date!
|
||||
}
|
||||
|
||||
type LocalizationConfig {
|
||||
locale: String!
|
||||
autoUpdate: Boolean!
|
||||
}
|
||||
|
Reference in New Issue
Block a user