Add translate API (#72)

This commit is contained in:
Niklas Fondberg
2021-10-18 15:29:44 +02:00
committed by GitHub
parent 2a8212ff12
commit 1f11fd7288
11 changed files with 1327 additions and 5 deletions
+14
View File
@@ -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!
}