[英]How to change default words in Rails?
I am using Rails 5.2.2 .我正在使用 Rails 5.2.2 。 I use the method:
我用的方法:
distance_of_time_in_words(@customer.accounts.last.updated_at,Time.now)
And this gives me the output like " 9 days
".这给了我像“
9 days
”这样的输出。 I want to change that days
to my language.What is the correct way to change it ?我想将那
days
更改为我的语言。更改它的正确方法是什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.