Skip to content

Commit

Permalink
feat: translate field which is used as title
Browse files Browse the repository at this point in the history
  • Loading branch information
veith committed Jun 2, 2022
1 parent e49cd4e commit 4415b98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/furo-ui5-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ class FuroUi5Markdown extends LitElement {
max-width: 100%;
}
p:first-of-type {
margin-top: 0;
}
h1,
h2,
h3,
Expand Down
3 changes: 2 additions & 1 deletion src/furo-ui5-notification-list-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import '@ui5/webcomponents-fiori/dist/NotificationListGroupItem.js';
import '@ui5/webcomponents-fiori/dist/NotificationListItem.js';
import '@ui5/webcomponents-fiori/dist/NotificationAction.js';
import '@ui5/webcomponents/dist/List.js';
import { i18n } from '@furo/framework';

/**
* Notification display component that works together with furo-ui5-notification.
Expand Down Expand Up @@ -419,7 +420,7 @@ export class FuroUi5NotificationListDisplay extends FBP(LitElement) {
notification.setAttribute('show-close', '');
notification.setAttribute('priority', this.priority);
notification.read = true;
notification.titleText = item.field;
notification.titleText = i18n.t(item.field);
notification.target = this.target;
// save the initial message for the later usage
notification.message = this.message;
Expand Down

0 comments on commit 4415b98

Please sign in to comment.