Skip to content

Commit 2baee1c

Browse files
committed
localize
1 parent eca8d41 commit 2baee1c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/assets/lang/en-us.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,7 @@ export default {
447447
stay: 'Stay',
448448
discardChanges: 'Discard changes',
449449
unsavedChanges: 'You have unsaved changes',
450-
unsavedChangesWarning:
451-
'Are you sure you want to navigate away from this page? - you have unsaved\n changes\n ',
450+
unsavedChangesWarning: 'Are you sure you want to navigate away from this page? You have unsaved changes',
452451
confirmListViewPublish: 'Publishing will make the selected items visible on the site.',
453452
confirmListViewUnpublish:
454453
'Unpublishing will remove the selected items and all their descendants from the\n site.\n ',

src/packages/core/modal/common/discard-changes/discard-changes-modal.element.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@ import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
66
export class UmbDiscardChangesModalElement extends UmbModalBaseElement {
77
override render() {
88
return html`
9-
<uui-dialog-layout class="uui-text" headline="Discard changes?">
10-
<uui-button slot="actions" id="cancel" label="Stay" @click=${this._rejectModal}></uui-button>
9+
<uui-dialog-layout class="uui-text" headline=${this.localize.term('prompt_unsavedChanges')}>
10+
<umb-localize key="prompt_unsavedChangesWarning"></umb-localize>
11+
<uui-button
12+
slot="actions"
13+
id="cancel"
14+
label=${this.localize.term('prompt_stay')}
15+
@click=${this._rejectModal}></uui-button>
1116
<uui-button
1217
slot="actions"
1318
id="confirm"
1419
color="positive"
1520
look="primary"
16-
label="Discard Changes"
21+
label=${this.localize.term('prompt_discardChanges')}
1722
@click=${this._submitModal}></uui-button>
1823
</uui-dialog-layout>
1924
`;

0 commit comments

Comments
 (0)