1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 06:39:43 +02:00

i18n notify strings

This commit is contained in:
McMatts 2022-03-14 14:49:10 -04:00
parent 33a9cbb5b0
commit 7f66977ac1
8 changed files with 21 additions and 15 deletions

View file

@ -19,6 +19,7 @@ export default Controller.extend(Notifier, {
folderService: service('folder'),
documentService: service('document'),
localStorage: service('localStorage'),
i18n: service(),
queryParams: ['tab'],
tab: 'general',
@ -33,7 +34,7 @@ export default Controller.extend(Notifier, {
onSaveDocument(doc) {
this.get('documentService').save(doc).then(() => {
this.notifySuccess('Saved');
this.notifySuccess(this.i18n.localize('saved'));
});
this.get('browser').setTitle(doc.get('name'));