1
votes

I was wondering if anyone knew of a built in way to translate certain date/time words based on the users locale?

Specifically works like Day, hour? I know that Android will translate months of the year, and the am/pm strings using a specified locale via SimpleDateFormat but I was wondering if any of these other strings were available?

Specially we are looking to show recent dates and times using the format: "x hours ago" and it would be nice if that string could be translated based on locale.

Thanks

1

1 Answers