diff --git a/webapp/components/notifications/Notification/Notification.spec.js b/webapp/components/notifications/Notification/Notification.spec.js index 9ca47e7a0..54e6b4ab3 100644 --- a/webapp/components/notifications/Notification/Notification.spec.js +++ b/webapp/components/notifications/Notification/Notification.spec.js @@ -69,16 +69,16 @@ describe('Notification', () => { it('renders reason', () => { wrapper = Wrapper() expect(wrapper.find('.reason-text-for-test').text()).toEqual( - 'notifications.menu.commented_on_post', + 'notifications.reason.commented_on_post', ) }) it('renders title', () => { wrapper = Wrapper() expect(wrapper.text()).toContain("It's a post title") }) - it('renders the "Comment:"', () => { + it('renders the identifier "notifications.comment"', () => { wrapper = Wrapper() - expect(wrapper.text()).toContain('Comment:') + expect(wrapper.text()).toContain('notifications.comment') }) it('renders the contentExcerpt', () => { wrapper = Wrapper() @@ -119,7 +119,7 @@ describe('Notification', () => { it('renders reason', () => { wrapper = Wrapper() expect(wrapper.find('.reason-text-for-test').text()).toEqual( - 'notifications.menu.mentioned_in_post', + 'notifications.reason.mentioned_in_post', ) }) it('renders title', () => { @@ -169,7 +169,7 @@ describe('Notification', () => { it('renders reason', () => { wrapper = Wrapper() expect(wrapper.find('.reason-text-for-test').text()).toEqual( - 'notifications.menu.mentioned_in_comment', + 'notifications.reason.mentioned_in_comment', ) }) it('renders title', () => { @@ -177,9 +177,9 @@ describe('Notification', () => { expect(wrapper.text()).toContain("It's a post title") }) - it('renders the "Comment:"', () => { + it('renders the identifier "notifications.comment"', () => { wrapper = Wrapper() - expect(wrapper.text()).toContain('Comment:') + expect(wrapper.text()).toContain('notifications.comment') }) it('renders the contentExcerpt', () => { diff --git a/webapp/components/notifications/Notification/Notification.vue b/webapp/components/notifications/Notification/Notification.vue index 93ca42980..dc9383c85 100644 --- a/webapp/components/notifications/Notification/Notification.vue +++ b/webapp/components/notifications/Notification/Notification.vue @@ -5,7 +5,7 @@ - {{ $t(`notifications.menu.${notification.reason}`) }} + {{ $t(`notifications.reason.${notification.reason}`) }} @@ -23,7 +23,9 @@ >
- Comment: + + {{ $t(`notifications.comment`) }}: + {{ from.contentExcerpt | removeHtml }}
diff --git a/webapp/locales/de.json b/webapp/locales/de.json index fa9d66860..7b7bc3ec1 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -135,11 +135,12 @@ } }, "notifications": { - "menu": { + "reason": { "mentioned_in_post": "Hat dich in einem Beitrag erwähnt …", "mentioned_in_comment": "Hat dich in einem Kommentar erwähnt …", "commented_on_post": "Hat deinen Beitrag kommentiert …" - } + }, + "comment": "Kommentar" }, "search": { "placeholder": "Suchen", diff --git a/webapp/locales/en.json b/webapp/locales/en.json index 592fc57e4..8204d4741 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -136,11 +136,12 @@ } }, "notifications": { - "menu": { + "reason": { "mentioned_in_post": "Mentioned you in a post …", "mentioned_in_comment": "Mentioned you in a comment …", "commented_on_post": "Commented on your post …" - } + }, + "comment": "Comment" }, "search": { "placeholder": "Search",