Add new translations for Discover userbox

This commit is contained in:
Andreas Nedbal 2022-07-29 20:08:40 +02:00 committed by Andreas Nedbal
parent ac1c09fcd4
commit d1241f46a0
1 changed files with 1 additions and 8 deletions

View File

@ -13,11 +13,4 @@
%a{ href: user_path(u) } %a{ href: user_path(u) }
= u.profile.display_name = u.profile.display_name
%span.text-muted= u.screen_name %span.text-muted= u.screen_name
%p.answerbox__question-text %p.answerbox__question-text= t(".#{type}", value: value, count: value)
- 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')))