localization.graphql 814 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # ===============================================
  2. # LOCALIZATION
  3. # ===============================================
  4. extend type Query {
  5. locales: [LocalizationLocale]
  6. translations(locale: String!, namespace: String!): [Translation]
  7. }
  8. extend type Mutation {
  9. downloadLocale(
  10. locale: String!
  11. ): DefaultResponse
  12. updateLocale(
  13. locale: String!
  14. autoUpdate: Boolean!
  15. namespacing: Boolean!
  16. namespaces: [String]!
  17. ): DefaultResponse
  18. }
  19. # -----------------------------------------------
  20. # TYPES
  21. # -----------------------------------------------
  22. type LocalizationLocale {
  23. availability: Int
  24. code: String
  25. createdAt: Date
  26. installDate: Date
  27. isInstalled: Boolean
  28. isRTL: Boolean
  29. name: String
  30. nativeName: String
  31. updatedAt: Date
  32. }
  33. type Translation {
  34. key: String
  35. value: String
  36. }