1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

i18n space strings

This commit is contained in:
McMatts 2022-03-08 13:05:30 -05:00
parent 97c4c927ac
commit 5e687f5ef4
7 changed files with 40 additions and 28 deletions

View file

@ -19,6 +19,7 @@ export default Component.extend(AuthMixin, Notifier, {
router: service(),
spaceSvc: service('folder'),
sectionSvc: service('section'),
i18n: service(),
showDeleteDialog: false,
deleteBlockId: '',
@ -54,7 +55,7 @@ export default Component.extend(AuthMixin, Notifier, {
this.get('sectionSvc').deleteBlock(id).then(() => {
this.set('deleteBlockId', '');
this.notifySuccess('Deleted');
this.notifySuccess(this.i18n.localize('deleted'));
this.get('sectionSvc').getSpaceBlocks(this.get('space.id')).then((blocks) => {
this.set('blocks', blocks);

View file

@ -22,6 +22,7 @@ export default Component.extend(ModalMixin, Notifer, {
categorySvc: service('category'),
appMeta: service(),
store: service(),
i18n: service(),
editId: '',
editName: '',
editDefault: false,
@ -120,7 +121,7 @@ export default Component.extend(ModalMixin, Notifer, {
this.get('categorySvc').add(c).then(() => {
this.load();
this.notifySuccess('Category added');
this.notifySuccess(this.i18n.localize('added'));
});
},