mirror of https://github.com/requarks/wiki
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.
46 lines
926 B
46 lines
926 B
7 years ago
|
# ===============================================
|
||
|
# LOCALIZATION
|
||
|
# ===============================================
|
||
|
|
||
|
extend type Query {
|
||
|
localization: LocalizationQuery
|
||
|
}
|
||
|
|
||
|
extend type Mutation {
|
||
|
localization: LocalizationMutation
|
||
|
}
|
||
|
|
||
|
# -----------------------------------------------
|
||
|
# QUERIES
|
||
|
# -----------------------------------------------
|
||
|
|
||
|
type LocalizationQuery {
|
||
|
locales: [LocalizationLocale]
|
||
|
}
|
||
|
|
||
|
# -----------------------------------------------
|
||
|
# 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!
|
||
|
}
|