From d1241f46a006c38e0db32fbbdc06755f7bc9d458 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Fri, 29 Jul 2022 20:08:40 +0200 Subject: [PATCH] Add new translations for Discover userbox --- app/views/discover/_userbox.haml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/views/discover/_userbox.haml b/app/views/discover/_userbox.haml index 15f94ba1..82d6a54f 100644 --- a/app/views/discover/_userbox.haml +++ b/app/views/discover/_userbox.haml @@ -13,11 +13,4 @@ %a{ href: user_path(u) } = u.profile.display_name %span.text-muted= u.screen_name - %p.answerbox__question-text - - case type - - when 'new' - = t('views.discover.userbox.new', time: time_ago_in_words(u.created_at)) - - when 'most' - = t('views.discover.userbox.answers', questions: pluralize(a, t('views.general.question'))) - - else - = t('views.discover.userbox.questions', questions: pluralize(q, t('views.general.question'))) + %p.answerbox__question-text= t(".#{type}", value: value, count: value)