module

Rosetta::Localizable

Include this module in any class where you need to localize many values.

Instance methods

distance_of_time_in_words(*args, **options)
Source
distance_of_time_in_words(*args, **options, &)
Source
time_ago_in_words(*args, **options)
Source
time_ago_in_words(*args, **options, &)
Source
time_from_now_in_words(*args, **options)
Source
time_from_now_in_words(*args, **options, &)
Source

Macros

r_date(format)

Finds the translations for a given format to localize a date

Source
r_number(format)

Finds the translations for a given format to localize a number

Source
r_time(format)

Finds the translations for a given format to localize a time

Source