localization.graphql 744 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # ===============================================
  2. # LOCALIZATION
  3. # ===============================================
  4. extend type Query {
  5. locales: [LocalizationLocale]
  6. localeStrings(locale: String!): JSON
  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. completeness: Int
  24. code: String
  25. createdAt: Date
  26. isRTL: Boolean
  27. language: String
  28. name: String
  29. nativeName: String
  30. region: String
  31. script: String
  32. updatedAt: Date
  33. }