Skip to content

Commit 74b2952

Browse files
committed
Fix preview button label in web configuration edit page to use dedicated preview translation
- in web configuration editing, heading action should use 'Preview', not 'Code Review' └── apps └── editor └── src └── views └── prompt └── frontend ├── Prompt.tsx ├── hooks │ └── use-web-configuration-editing.ts └── i18n └── translations ├── code-review.ts ├── configurations.ts └── index.ts
1 parent af76ed2 commit 74b2952

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

‎apps/editor/src/views/prompt/frontend/Prompt.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ export const Prompt = () => {
477477
(web_prompt_type === 'edit' && selected_files.length === 0)
478478
}
479479
>
480-
{t('code-review.title')}
480+
{t('configurations.preview')}
481481
</UiTextButton>
482482
}
483483
>

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,5 +196,23 @@ export const configurations = {
196196
cs: 'Přepnout',
197197
hu: 'Váltás',
198198
bg: 'Превключване'
199+
},
200+
'configurations.preview': {
201+
en: 'Preview',
202+
pl: 'Podgląd',
203+
'zh-cn': '预览',
204+
ja: 'プレビュー',
205+
'zh-tw': '預覽',
206+
de: 'Vorschau',
207+
es: 'Vista previa',
208+
fr: 'Aperçu',
209+
'pt-br': 'Pré-visualizar',
210+
ru: 'Предпросмотр',
211+
ko: '미리보기',
212+
it: 'Anteprima',
213+
tr: 'Önizleme',
214+
cs: 'Náhled',
215+
hu: 'Előnézet',
216+
bg: 'Преглед'
199217
}
200218
} as const

0 commit comments

Comments
 (0)