Add all translations

This commit is contained in:
Matej Bačo committed 2024-01-09 15:39:38 +00:00
1 parent e59bdbbb8f
commit beeb643c66
72 files changed
+1753 -1053

No files matched your search

@@ -90,12 +90,12 @@ class DevGenerateTranslations extends Action
'content' => $enTranslation
]
]
]);
], [], 60);
$body = \json_decode($response->getBody(), true);
if($response->getStatusCode() >= 400) {
throw new Exception($response->getBody());
throw new Exception($response->getBody() . ' with status code ' . $response->getStatusCode() . ' for language ' . $targetLanguage . ' and message ' . $enTranslation);
}
return $body['choices'][0]['message']['content'];