Answer the question
In order to leave comments, you need to log in
How to decline the model name in Russian in ru.yml?
Good afternoon. I use the rails_admin gem.
I make the locale in Russian. pointed out
#ru.yml
activerecord:
models:
contract:
one: "договор"
other: "договоры"
Answer the question
In order to leave comments, you need to log in
Put the gem russian , and then using the pluralize or p method in the right place in the admin panel write:
Russian::p(<кол-во_договоров>, "договор", "договора", "договоров")
Most likely many, but in general you won’t achieve particularly good results
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question