Skip to content

Commit 4e98c65

Browse files
committed
Rename make-api-call action translation key and label to send-request
- rename 'make api call' to 'send request' └── apps └── editor └── src ├── commands │ ├── code-at-cursor-command │ │ └── utils │ │ └── perform-code-at-cursor.ts │ └── generate-commit-message-commands │ └── actions │ └── run-generate-action.ts ├── features │ └── search-files │ └── search-modes │ └── perform-intelligent-search-mode.ts ├── i18n │ └── translations │ ├── common.ts │ └── views │ └── prompt │ └── handlers │ ├── index.ts │ └── make-api-call.ts └── views └── prompt ├── backend │ ├── message-handlers │ │ ├── handle-make-api-call.ts │ │ ├── handle-patch-repair.ts │ │ └── index.ts │ └── prompt-view-provider.ts ├── frontend │ └── Main │ ├── Main.tsx │ └── MainView │ └── MainView.tsx └── types └── messages.ts
1 parent 7d3fd23 commit 4e98c65

5 files changed

Lines changed: 21 additions & 21 deletions

File tree

‎apps/editor/src/commands/code-at-cursor-command/utils/perform-code-at-cursor.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const perform_code_at_cursor = async (params: {
131131
...(has_api_configurations
132132
? [
133133
{
134-
label: t('common.action.make-api-call'),
134+
label: t('common.action.send-request'),
135135
id: 'make-api'
136136
}
137137
]

‎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
@@ -105,7 +105,7 @@ export const run_generate_action = async (params: {
105105
const show_back_button =
106106
was_empty_stage && !is_single_change_flow && !params.source_control
107107

108-
const action_make_api = t('common.action.make-api-call')
108+
const action_make_api = t('common.action.send-request')
109109
const action_autofill_chatbot = t('common.action.autofill-chatbot')
110110
const action_enter_manually = t('common.action.enter-manually')
111111
const action_copy_prompt = t('common.action.copy-prompt')

‎apps/editor/src/features/search-files/search-modes/perform-intelligent-search-mode.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export const perform_intelligent_search_mode = async (params: {
136136
...(has_api_configurations
137137
? [
138138
{
139-
label: t('common.action.make-api-call'),
139+
label: t('common.action.send-request'),
140140
id: 'make-api'
141141
}
142142
]

‎apps/editor/src/i18n/translations/common.ts‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -612,23 +612,23 @@ export const translations = {
612612
hu: 'Chatbot automatikus kitöltése',
613613
bg: 'Автоматично попълване на чатбот'
614614
},
615-
'common.action.make-api-call': {
616-
en: 'Make API call',
617-
pl: 'Wywołaj API',
618-
'zh-cn': '调用 API',
619-
ja: 'API を呼び出す',
620-
'zh-tw': '呼叫 API',
621-
de: 'API-Aufruf durchführen',
622-
es: 'Hacer llamada API',
623-
fr: 'Faire un appel API',
624-
'pt-br': 'Fazer chamada de API',
625-
ru: 'Выполнить API-запрос',
626-
ko: 'API 호출',
627-
it: 'Effettua chiamata API',
628-
tr: 'API çağrısı yap',
629-
cs: 'Provést API volání',
630-
hu: 'API hívás',
631-
bg: 'Извикване на API'
615+
'common.action.send-request': {
616+
en: 'Send request',
617+
pl: 'Wyślij zapytanie',
618+
'zh-cn': '发送请求',
619+
ja: 'リクエストを送信',
620+
'zh-tw': '發送請求',
621+
de: 'Anfrage senden',
622+
es: 'Enviar solicitud',
623+
fr: 'Envoyer la demande',
624+
'pt-br': 'Enviar solicitação',
625+
ru: 'Отправить запрос',
626+
ko: '요청 보내기',
627+
it: 'Invia richiesta',
628+
tr: 'İstek gönder',
629+
cs: 'Odeslat požadavek',
630+
hu: 'Kérés küldése',
631+
bg: 'Изпращане на заявка'
632632
},
633633
'common.action.enter-manually': {
634634
en: 'Enter manually',

‎apps/editor/src/views/prompt/backend/message-handlers/handle-patch-repair.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export const handle_patch_repair = async (params: {
153153
...(has_api_configurations
154154
? [
155155
{
156-
label: t('common.action.make-api-call'),
156+
label: t('common.action.send-request'),
157157
id: 'make-api'
158158
}
159159
]

0 commit comments

Comments
 (0)