Skip to content

Commit 3bc6df4

Browse files
committed
Update empty API response error message and translations
- API request returned an empty response -> API returned an empty response
1 parent 2fcf904 commit 3bc6df4

3 files changed

Lines changed: 18 additions & 18 deletions

File tree

‎apps/editor/src/commands/generate-commit-message-commands/actions/run-generate-action.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ export const run_generate_action = async (params: {
702702
show_quick_pick = true
703703
continue
704704
} else {
705-
if (error_msg === 'API request returned an empty response') {
705+
if (error_msg === 'API returned an empty response') {
706706
vscode.window.showInformationMessage(
707707
t(
708708
'command.generate-commit-message-command.info.empty-response'

‎apps/editor/src/commands/generate-commit-message-commands/utils/generate-commit-message-with-api.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const generate_commit_message_with_api = async (params: {
9090
commit_message = commit_message.replace(/[<>`$()]/g, '')
9191

9292
if (!commit_message.trim()) {
93-
throw new Error('API request returned an empty response')
93+
throw new Error('API returned an empty response')
9494
}
9595

9696
return commit_message

‎apps/editor/src/i18n/translations/commands/generate-commit-message-command.ts‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -272,22 +272,22 @@ export const translations = {
272272
bg: 'Генерирането на commit съобщение е деактивирано по време на преглед на код.'
273273
},
274274
'command.generate-commit-message-command.info.empty-response': {
275-
en: 'API request returned an empty response.',
276-
pl: 'Żądanie API zwróciło pustą odpowiedź.',
277-
'zh-cn': 'API 请求返回了空响应。',
278-
ja: 'API リクエストが空のレスポンスを返しました。',
279-
'zh-tw': 'API 請求回傳了空回應。',
280-
de: 'API-Anfrage gab eine leere Antwort zurück.',
281-
es: 'La solicitud API devolvió una respuesta vacía.',
282-
fr: 'La requête API a renvoyé une réponse vide.',
283-
'pt-br': 'A solicitação de API retornou uma resposta vazia.',
284-
ru: 'API-запрос вернул пустой ответ.',
285-
ko: 'API 요청이 빈 응답을 반환했습니다.',
286-
it: 'La richiesta API ha restituito una risposta vuota.',
287-
tr: 'API isteği boş bir yanıt döndürdü.',
288-
cs: 'Požadavek API vrátil prázdnou odpověď.',
289-
hu: 'Az API kérés üres választ adott vissza.',
290-
bg: 'API заявката върна празен отговор.'
275+
en: 'API returned an empty response.',
276+
pl: 'API zwróciło pustą odpowiedź.',
277+
'zh-cn': 'API 返回了空响应。',
278+
ja: 'API が空のレスポンスを返しました。',
279+
'zh-tw': 'API 回傳了空回應。',
280+
de: 'Die API gab eine leere Antwort zurück.',
281+
es: 'La API devolvió una respuesta vacía.',
282+
fr: "L'API a renvoyé une réponse vide.",
283+
'pt-br': 'A API retornou uma resposta vazia.',
284+
ru: 'API вернул пустой ответ.',
285+
ko: 'API가 빈 응답을 반환했습니다.',
286+
it: "L'API ha restituito una risposta vuota.",
287+
tr: 'API boş bir yanıt döndürdü.',
288+
cs: 'API vrátilo prázdnou odpověď.',
289+
hu: 'Az API üres választ adott vissza.',
290+
bg: 'API върна празен отговор.'
291291
},
292292
'command.generate-commit-message-command.attach-context-files.include-files-and-context':
293293
{

0 commit comments

Comments
 (0)