Skip to content

Commit 7cea2d1

Browse files
committed
Rename exit voice input translation key to stop recording
- rename 'exit voice input' to 'stop recording' ├── apps │ └── editor │ └── src │ ├── commands │ │ └── select-referencing-files-commands │ │ ├── index.ts │ │ ├── select-referencing-files-commands.ts │ │ └── utils │ │ ├── get-referencing-files-for-position.ts │ │ ├── get-referencing-files-for-uris.ts │ │ └── prompt-for-referencing-files.ts │ └── views │ └── prompt │ └── frontend │ ├── Main │ │ └── MainView │ │ └── MainView.tsx │ └── i18n │ └── translations │ └── prompt-field.ts └── packages └── ui └── src └── components └── editor └── common └── prompts └── PromptField ├── PromptField.stories.tsx └── PromptField.tsx
1 parent 891d482 commit 7cea2d1

4 files changed

Lines changed: 32 additions & 32 deletions

File tree

‎apps/editor/src/views/prompt/frontend/Main/MainView/MainView.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ export const MainView: React.FC<Props> = (props) => {
330330
token_count={props.token_count}
331331
translations={{
332332
voice_input: t('prompt-field.voice-input'),
333-
exit_voice_input: t('prompt-field.exit-voice-input'),
333+
stop_recording: t('prompt-field.stop-recording'),
334334
reference_file: t('prompt-field.reference-file'),
335335
insert_symbol: t('prompt-field.insert-symbol'),
336336
use_template: t('prompt-field.use-template'),

‎apps/editor/src/views/prompt/frontend/i18n/translations/prompt-field.ts‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ export const prompt_field = {
1717
hu: 'Hangbemenet',
1818
bg: 'Гласово въвеждане'
1919
},
20-
'prompt-field.exit-voice-input': {
21-
en: 'Exit voice input',
22-
pl: 'Zakończ wprowadzanie głosowe',
23-
'zh-cn': '退出语音输入',
24-
ja: '音声入力を終了',
25-
'zh-tw': '退出語音輸入',
26-
de: 'Spracheingabe beenden',
27-
es: 'Salir de entrada de voz',
28-
fr: 'Quitter la saisie vocale',
29-
'pt-br': 'Sair da entrada de voz',
30-
ru: 'Завершить голосовой ввод',
31-
ko: '음성 입력 종료',
32-
it: 'Esci da input vocale',
33-
tr: 'Sesli girişi sonlandır',
34-
cs: 'Ukončit hlasový vstup',
35-
hu: 'Hangbemenet befejezése',
36-
bg: 'Изход от гласово въвеждане'
20+
'prompt-field.stop-recording': {
21+
en: 'Stop recording',
22+
pl: 'Zatrzymaj nagrywanie',
23+
'zh-cn': '停止录音',
24+
ja: '録音を停止',
25+
'zh-tw': '停止錄音',
26+
de: 'Aufnahme stoppen',
27+
es: 'Detener grabación',
28+
fr: "Arrêter l'enregistrement",
29+
'pt-br': 'Parar gravação',
30+
ru: 'Остановить запись',
31+
ko: '녹음 중지',
32+
it: 'Interrompi registrazione',
33+
tr: 'Kaydı durdur',
34+
cs: 'Zastavit nahrávání',
35+
hu: 'Felvétel leállítása',
36+
bg: 'Спиране на записа'
3737
},
3838
'prompt-field.reference-file': {
3939
en: 'Reference file',

‎packages/ui/src/components/editor/common/prompts/PromptField/PromptField.stories.tsx‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const Empty = () => (
4747
on_tab_delete={() => {}}
4848
translations={{
4949
voice_input: 'Voice input',
50-
exit_voice_input: 'Exit voice input',
50+
stop_recording: 'Stop recording',
5151
reference_file: 'Reference file',
5252
insert_symbol: 'Insert symbol',
5353
use_template: 'Use template',
@@ -112,7 +112,7 @@ export const WithText = () => (
112112
on_tab_delete={() => {}}
113113
translations={{
114114
voice_input: 'Voice input',
115-
exit_voice_input: 'Exit voice input',
115+
stop_recording: 'Stop recording',
116116
reference_file: 'Reference file',
117117
insert_symbol: 'Insert symbol',
118118
use_template: 'Use template',
@@ -177,7 +177,7 @@ export const LongText = () => (
177177
on_tab_delete={() => {}}
178178
translations={{
179179
voice_input: 'Voice input',
180-
exit_voice_input: 'Exit voice input',
180+
stop_recording: 'Stop recording',
181181
reference_file: 'Reference file',
182182
insert_symbol: 'Insert symbol',
183183
use_template: 'Use template',
@@ -242,7 +242,7 @@ export const WithPlaceholderSavedContext = () => (
242242
on_tab_delete={() => {}}
243243
translations={{
244244
voice_input: 'Voice input',
245-
exit_voice_input: 'Exit voice input',
245+
stop_recording: 'Stop recording',
246246
reference_file: 'Reference file',
247247
insert_symbol: 'Insert symbol',
248248
use_template: 'Use template',
@@ -313,7 +313,7 @@ export const WithPlaceholderSelection = () => (
313313
on_tab_delete={() => {}}
314314
translations={{
315315
voice_input: 'Voice input',
316-
exit_voice_input: 'Exit voice input',
316+
stop_recording: 'Stop recording',
317317
reference_file: 'Reference file',
318318
insert_symbol: 'Insert symbol',
319319
use_template: 'Use template',
@@ -378,7 +378,7 @@ export const WithCommit = () => (
378378
on_tab_delete={() => {}}
379379
translations={{
380380
voice_input: 'Voice input',
381-
exit_voice_input: 'Exit voice input',
381+
stop_recording: 'Stop recording',
382382
reference_file: 'Reference file',
383383
insert_symbol: 'Insert symbol',
384384
use_template: 'Use template',
@@ -443,7 +443,7 @@ export const WithCommitWithQuotes = () => (
443443
on_tab_delete={() => {}}
444444
translations={{
445445
voice_input: 'Voice input',
446-
exit_voice_input: 'Exit voice input',
446+
stop_recording: 'Stop recording',
447447
reference_file: 'Reference file',
448448
insert_symbol: 'Insert symbol',
449449
use_template: 'Use template',
@@ -514,7 +514,7 @@ export const WithEditFormatSelector = () => {
514514
on_tab_delete={() => {}}
515515
translations={{
516516
voice_input: 'Voice input',
517-
exit_voice_input: 'Exit voice input',
517+
stop_recording: 'Stop recording',
518518
reference_file: 'Reference file',
519519
insert_symbol: 'Insert symbol',
520520
use_template: 'Use template',
@@ -580,7 +580,7 @@ export const WithFilePaths = () => (
580580
on_tab_delete={() => {}}
581581
translations={{
582582
voice_input: 'Voice input',
583-
exit_voice_input: 'Exit voice input',
583+
stop_recording: 'Stop recording',
584584
reference_file: 'Reference file',
585585
insert_symbol: 'Insert symbol',
586586
use_template: 'Use template',
@@ -673,7 +673,7 @@ export const WithTabs = () => {
673673
on_tab_delete={handle_tab_delete}
674674
translations={{
675675
voice_input: 'Voice input',
676-
exit_voice_input: 'Exit voice input',
676+
stop_recording: 'Stop recording',
677677
reference_file: 'Reference file',
678678
insert_symbol: 'Insert symbol',
679679
use_template: 'Use template',
@@ -737,7 +737,7 @@ export const WithWarning = () => (
737737
on_tab_delete={() => {}}
738738
translations={{
739739
voice_input: 'Voice input',
740-
exit_voice_input: 'Exit voice input',
740+
stop_recording: 'Stop recording',
741741
reference_file: 'Reference file',
742742
insert_symbol: 'Insert symbol',
743743
use_template: 'Use template',

‎packages/ui/src/components/editor/common/prompts/PromptField/PromptField.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export type PromptFieldProps = {
8484
on_mode_change: (mode: Mode) => void
8585
translations: {
8686
voice_input: string
87-
exit_voice_input: string
87+
stop_recording: string
8888
reference_file: string
8989
insert_symbol: string
9090
use_template: string
@@ -385,7 +385,7 @@ export const PromptField: React.FC<PromptFieldProps> = (props) => {
385385
<Tooltip
386386
message={
387387
props.is_recording
388-
? props.translations.exit_voice_input
388+
? props.translations.stop_recording
389389
: props.translations.voice_input
390390
}
391391
details={is_mac ? '⇧⌘Space' : 'Ctrl+Shift+Space'}
@@ -569,7 +569,7 @@ export const PromptField: React.FC<PromptFieldProps> = (props) => {
569569
align="center"
570570
/>
571571
)}
572-
<KeycapWrapper char={is_alt_pressed ? 'esc' : undefined}>
572+
<KeycapWrapper char={is_alt_pressed ? 'ESC' : undefined}>
573573
<button
574574
className={cn(
575575
styles['footer__right__submit__button'],

0 commit comments

Comments
 (0)