Add comments count component

Remove all the translations that are left over after having unified them
in the component.
This commit is contained in:
taitus
2022-08-16 12:46:08 +02:00
parent aec317e5e6
commit 2865ee286f
29 changed files with 115 additions and 174 deletions

View File

@@ -0,0 +1,12 @@
class Shared::CommentsCountComponent < ApplicationComponent
attr_reader :comments_count, :url
def initialize(comments_count, url: nil)
@comments_count = comments_count
@url = url
end
def text
t("shared.comments", count: comments_count)
end
end