mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add all translations
This commit is contained in:
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'];
|
||||
|
||||
Reference in new issue
Block a user