How to remove or edit the pluralization for comments and likes in rails
|Added at||2017-01-04 17:01|
I am new to rails, and i am working on a rtl website! I am trying to fix the pluralization in comment.count and get_upvotes.size to be replaced by the other language words. I have heard that I can do it with Rails Internationalization (I18n) but I could not find a clear answer to my question.
Here's my code in the show.html.erb page:
Now all I need is to cancel the pluralization so when 2 comments or more shows up it does not pluralize and change to comments. Instead it stays the same as comment
I would appreciate the help. Let me know if more information is needed! Thanks