From c2d7002795ebda20dfef87a367d1325d6d1d8104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Thu, 14 Mar 2019 01:51:14 +0100 Subject: [PATCH] Translations --- components/Comment.spec.js | 2 +- components/Comment.vue | 2 +- locales/de.json | 5 ++++- locales/en.json | 5 ++++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/components/Comment.spec.js b/components/Comment.spec.js index 71076a696..2efdc800b 100644 --- a/components/Comment.spec.js +++ b/components/Comment.spec.js @@ -64,7 +64,7 @@ describe('Comment.vue', () => { it('translates a placeholder', () => { const wrapper = Wrapper() const calls = mocks.$t.mock.calls - const expected = [['comment.content.disabled-placeholder']] + const expected = [['comment.content.deleted-placeholder']] expect(calls).toEqual(expect.arrayContaining(expected)) }) diff --git a/components/Comment.vue b/components/Comment.vue index 42a8cf64f..799c32e64 100644 --- a/components/Comment.vue +++ b/components/Comment.vue @@ -30,7 +30,7 @@ style="padding-left: 40px; font-weight: bold;" color="soft" > - {{ this.$t('comment.content.disabled-placeholder') }} + {{ this.$t('comment.content.deleted-placeholder') }} diff --git a/locales/de.json b/locales/de.json index f6cb037bd..8e943314c 100644 --- a/locales/de.json +++ b/locales/de.json @@ -181,7 +181,10 @@ }, "comment": { "edit": "Kommentar bearbeiten", - "delete": "Kommentar löschen" + "delete": "Kommentar löschen", + "content": { + "deleted-placeholder": "...gelöschter Kommentar" + } }, "followButton": { "follow": "Folgen", diff --git a/locales/en.json b/locales/en.json index 2c4571ae4..6580443ac 100644 --- a/locales/en.json +++ b/locales/en.json @@ -181,7 +181,10 @@ }, "comment": { "edit": "Edit Comment", - "delete": "Delete Comment" + "delete": "Delete Comment", + "content": { + "deleted-placeholder": "...deleted comment" + } }, "followButton": { "follow": "Follow",