Adding a distance_of_time_in_words_to_now that works with an appended "ago" in multiple languages #373

Closed
DaniG2k opened this Issue Sep 12, 2013 · 1 comment

Projects

None yet

3 participants

@DaniG2k
DaniG2k commented Sep 12, 2013

Using distance_of_time_in_words_to_now with an appended "ago" translation at the end doesn't work for every language. In english "About a minute ago" is fine but in Japanese, "1分以内 前" is incorrect. I've solved this with the following code, but I think it would be really nice if this were included by default in the rails i18n project.

https://gist.github.com/DaniG2k/6535624

Cheers!

@digitalfrost
Collaborator

Gist referenced above is no longer available.

@kuroda kuroda closed this Sep 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment