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

  1. # ===============================================
  2. # LOCALIZATION
  3. # ===============================================
  4. extend type Query {
  5. localization: LocalizationQuery
  6. }
  7. extend type Mutation {
  8. localization: LocalizationMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type LocalizationQuery {
  14. locales: [LocalizationLocale]
  15. config: LocalizationConfig
  16. }
  17. # -----------------------------------------------
  18. # MUTATIONS
  19. # -----------------------------------------------
  20. type LocalizationMutation {
  21. downloadLocale(
  22. locale: String!
  23. ): DefaultResponse @auth(requires: ["manage:system"])
  24. updateLocale(
  25. locale: String!
  26. autoUpdate: Boolean!
  27. namespacing: Boolean!
  28. namespaces: [String]!
  29. ): DefaultResponse @auth(requires: ["manage:system"])
  30. }
  31. # -----------------------------------------------
  32. # TYPES
  33. # -----------------------------------------------
  34. type LocalizationLocale {
  35. code: String!
  36. createdAt: Date!
  37. installDate: Date
  38. isInstalled: Boolean!
  39. isRTL: Boolean!
  40. name: String!
  41. nativeName: String!
  42. updatedAt: Date!
  43. }
  44. type LocalizationConfig {
  45. locale: String!
  46. autoUpdate: Boolean!
  47. namespacing: Boolean!
  48. namespaces: [String]!
  49. }