Skip to content

Commit 3a64ace

Browse files
committed
Update apply-from title translations to Response Sources and inline footer action labels
1 parent 61b44d7 commit 3a64ace

2 files changed

Lines changed: 19 additions & 25 deletions

File tree

‎apps/editor/src/i18n/translations/views/prompt/handlers/handle-apply-from.ts‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,21 @@ export const translations = {
9191
bg: 'Изберете източник за прилагане на промени'
9292
},
9393
'views.prompt.handlers.handle-apply-from.title': {
94-
en: 'Edits Sources',
95-
pl: 'Źródła zmian',
96-
'zh-cn': '编辑来源',
97-
ja: '編集ソース',
98-
'zh-tw': '編輯來源',
99-
de: 'Bearbeitungsquellen',
100-
es: 'Fuentes de edición',
101-
fr: 'Sources des modifications',
102-
'pt-br': 'Fontes de edição',
103-
ru: 'Источники правок',
104-
ko: '편집 소스',
105-
it: 'Fonti di modifica',
106-
tr: 'Düzenleme Kaynakları',
107-
cs: 'Zdroje úprav',
108-
hu: 'Szerkesztési források',
109-
bg: 'Източници на редакции'
94+
en: 'Response Sources',
95+
pl: 'Źródła odpowiedzi',
96+
'zh-cn': '响应来源',
97+
ja: '応答ソース',
98+
'zh-tw': '回應來源',
99+
de: 'Antwortquellen',
100+
es: 'Fuentes de respuesta',
101+
fr: 'Sources de réponse',
102+
'pt-br': 'Fontes de resposta',
103+
ru: 'Источники ответов',
104+
ko: '응답 소스',
105+
it: 'Fonti di risposta',
106+
tr: 'Yanıt Kaynakları',
107+
cs: 'Zdroje odpovědí',
108+
hu: 'Válaszforrások',
109+
bg: 'Източници на отговори'
110110
}
111111
} as const

‎apps/editor/src/views/prompt/frontend/components/Layout/Footer/Footer.tsx‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ type Props = {
1616

1717
export const Footer: React.FC<Props> = (props) => {
1818
const { can_undo, on_apply_click, on_undo_click } = useContext(LayoutContext)
19-
2019
const { t } = use_translation()
21-
22-
const history_label = t('footer.action.history')
23-
const undo_label = t('footer.action.undo')
24-
const apply_label = t('footer.action.apply')
25-
2620
const { container_ref, compact_step } = use_compacting()
2721
const {
2822
is_alt,
@@ -78,22 +72,22 @@ export const Footer: React.FC<Props> = (props) => {
7872
on_click={props.on_history_click}
7973
title={t('footer.history-title')}
8074
codicon="history"
81-
label={history_label}
75+
label={t('footer.action.history')}
8276
/>
8377
<CompactableActionButton
8478
is_compact={compact_step >= 1}
8579
on_click={on_undo_click}
8680
title={t('footer.undo-title')}
8781
disabled={!can_undo}
8882
codicon="discard"
89-
label={undo_label}
83+
label={t('footer.action.undo')}
9084
/>
9185
<CompactableActionButton
9286
is_compact={compact_step >= 3}
9387
on_click={on_apply_click}
9488
title={t('footer.apply-title')}
9589
codicon="check-all"
96-
label={apply_label}
90+
label={t('footer.action.apply')}
9791
/>
9892
</div>
9993
</div>

0 commit comments

Comments
 (0)