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.

66 lines
1.4 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. translations(locale: String!, namespace: String!): [Translation]
  17. }
  18. # -----------------------------------------------
  19. # MUTATIONS
  20. # -----------------------------------------------
  21. type LocalizationMutation {
  22. downloadLocale(
  23. locale: String!
  24. ): DefaultResponse @auth(requires: ["manage:system"])
  25. updateLocale(
  26. locale: String!
  27. autoUpdate: Boolean!
  28. namespacing: Boolean!
  29. namespaces: [String]!
  30. ): DefaultResponse @auth(requires: ["manage:system"])
  31. }
  32. # -----------------------------------------------
  33. # TYPES
  34. # -----------------------------------------------
  35. type LocalizationLocale {
  36. availability: Int!
  37. code: String!
  38. createdAt: Date!
  39. installDate: Date
  40. isInstalled: Boolean!
  41. isRTL: Boolean!
  42. name: String!
  43. nativeName: String!
  44. updatedAt: Date!
  45. }
  46. type LocalizationConfig {
  47. locale: String!
  48. autoUpdate: Boolean!
  49. namespacing: Boolean!
  50. namespaces: [String]!
  51. }
  52. type Translation {
  53. key: String!
  54. value: String!
  55. }