mirror of https://github.com/Requarks/wiki.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.2 KiB
59 lines
1.2 KiB
# ===============================================
|
|
# LOCALIZATION
|
|
# ===============================================
|
|
|
|
extend type Query {
|
|
localization: LocalizationQuery
|
|
}
|
|
|
|
extend type Mutation {
|
|
localization: LocalizationMutation
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# QUERIES
|
|
# -----------------------------------------------
|
|
|
|
type LocalizationQuery {
|
|
locales: [LocalizationLocale]
|
|
config: LocalizationConfig
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# MUTATIONS
|
|
# -----------------------------------------------
|
|
|
|
type LocalizationMutation {
|
|
downloadLocale(
|
|
locale: String!
|
|
): DefaultResponse
|
|
|
|
updateLocale(
|
|
locale: String!
|
|
autoUpdate: Boolean!
|
|
namespacing: Boolean!
|
|
namespaces: [String]!
|
|
): 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!
|
|
namespacing: Boolean!
|
|
namespaces: [String]!
|
|
}
|