Add translate API (#72)
This commit is contained in:
@@ -38,6 +38,16 @@ type Query {
|
||||
interiors(filter: InteriorsFilterInput): [Interior]
|
||||
signedFileUploadURL(config: SignedUploadURLInput): SignedUploadURL
|
||||
@cacheControl(maxAge: 0)
|
||||
translate(input: TranslateInput!): StringResult!
|
||||
}
|
||||
|
||||
input TranslateInput {
|
||||
text: String!
|
||||
"""
|
||||
defaults to auto
|
||||
"""
|
||||
sourceLanguageCode: String
|
||||
targetLanguageCode: String!
|
||||
}
|
||||
|
||||
input SignedUploadURLInput {
|
||||
@@ -449,6 +459,10 @@ input ProductProportionsInput {
|
||||
marginHeightMin: Int!
|
||||
}
|
||||
|
||||
type StringResult {
|
||||
value: String!
|
||||
}
|
||||
|
||||
type IdNumberResult {
|
||||
id: Int!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user