1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-20 05:39:42 +02:00

i18n doc strings

This commit is contained in:
McMatts 2022-03-09 13:36:48 -05:00
parent 93b6f26365
commit a236cbb01c
6 changed files with 45 additions and 27 deletions

View file

@ -25,6 +25,7 @@ export default Component.extend(ModalMixin, AuthMixin, Notifier, {
pinned: service(),
browserSvc: service('browser'),
documentSvc: service('document'),
i18n: service(),
showRevisions: computed('permissions', 'document.protection', function() {
if (!this.get('session.authenticated')) return false;
if (!this.get('session.viewUsers')) return false;
@ -218,7 +219,7 @@ export default Component.extend(ModalMixin, AuthMixin, Notifier, {
this.get('documentSvc').export(spec).then((htmlExport) => {
this.get('browserSvc').downloadFile(htmlExport, this.get('document.slug') + '.html');
this.notifySuccess('Exported');
this.notifySuccess(this.i18n.localize('exported'));
});
}
}