wikijs-fork/server/graph/schemas/localization.graphql
2018-05-06 16:19:37 -04:00

52 lines
1.0 KiB
GraphQL

# ===============================================
# LOCALIZATION
# ===============================================
extend type Query {
localization: LocalizationQuery
}
extend type Mutation {
localization: LocalizationMutation
}
# -----------------------------------------------
# QUERIES
# -----------------------------------------------
type LocalizationQuery {
locales: [LocalizationLocale]
config: LocalizationConfig
}
# -----------------------------------------------
# MUTATIONS
# -----------------------------------------------
type LocalizationMutation {
updateLocale(
localeId: String!
autoUpdate: Boolean!
): DefaultResponse
}
# -----------------------------------------------
# TYPES
# -----------------------------------------------
type LocalizationLocale {
code: String!
createdAt: Date!
installDate: Date
isInstalled: Boolean!
isRTL: Boolean!
name: String!
nativeName: String!
updatedAt: Date!
}
type LocalizationConfig {
locale: String!
autoUpdate: Boolean!
}