POST https://api.jsondeepl.com/v1/translate/jsonen *case insensitive["de", "fr", "es"] *case insensitivetype JsonFileObject = {
[key: string]: string | JsonFileObject
}
prefer_lessprefer_less: Translations will be casual tone where applicable. prefer_more: Translations will be more formal where applicable. null on error.type TranslateApiJsonResponse = {
[key in TargetLanguageCode]: JsonFileObject
}
type JsonFileObject = {
[key: string]: string | JsonFileObject
}
null on success.type ErrorObject = {
code: "USER_NOT_FOUND" | "INSUFFICIENT_CREDIT" | "INTERNAL_SERVER_ERROR"
message: string
}
USER_NOT_FOUND: The provided API key is invalid or user's subscription has expired.INSUFFICIENT_CREDIT: The user does not have enough credit to perform the translation.INTERNAL_SERVER_ERROR: An unexpected error occurred on the server.POST https://api.jsondeepl.com/v1/translate/texten *case insensitive["de", "fr", "es"] *case insensitiveprefer_lessprefer_less: Translations will be casual tone where applicable. prefer_more: Translations will be more formal where applicable. null on error.type TranslateApiTextResponse = {
[key in TargetLanguageCode]: string
}
null on success.type ErrorObject = {
code: "USER_NOT_FOUND" | "INSUFFICIENT_CREDIT" | "INTERNAL_SERVER_ERROR"
message: string
}
USER_NOT_FOUND: The provided API key is invalid or user's subscription has expired.INSUFFICIENT_CREDIT: The user does not have enough credit to perform the translation.INTERNAL_SERVER_ERROR: An unexpected error occurred on the server.