-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF23, 11.1, 2021.0
-
Component/s: Web UI
-
Release Notes Summary:The document type is translated in the toast displayed at creation.
-
Backlog priority:500
-
Team:GANG
-
Sprint:nxGang Sprint 11.1.26
The toast displayed to confirm a document creation uses the document type id to build the message, as defined in nuxeo-app.html:
_handleDocumentCreated: function(e) { if (!e.detail.response.entries || e.detail.response.entries.length === 1) { var doc = e.detail.response.entries ? e.detail.response.entries[0] : e.detail.response; this._toast(this.i18n('app.createdDocument', doc.type.toLowerCase() + ' ' + doc.title)); } else { this._toast(this.i18n('app.createdDocuments', e.detail.response.entries.length)); } },
A better user experience would be translate the document type before building the message, as in this example:
const typeLabel = this.i18n(`label.document.type.${doc.type.toLowerCase()}`); this._toast(this.i18n('app.createdDocument', typeLabel + ' ' + doc.title));
- Is referenced in