module

I18n

Class methods

available_locales
Source
default_locale
Source
default_locale=(locale : Symbol) : Symbol
Source
l(time : Time, format : Symbol = :default) : String
Source
l(time : ActiveSupport::TimeWithZone, format : Symbol = :default) : String

TimeWithZone: format in the zone's wall clock (zoned fields, and :db renders UTC like Rails' TimeWithZone#to_fs).

Source
load_path
Source
load_path=(paths : Array(String))
Source
locale
Source
locale=(locale : Symbol) : Symbol
Source
localize(time : Time, format : Symbol = :default) : String
Source
localize(time : ActiveSupport::TimeWithZone, format : Symbol = :default) : String
Source
lookup(key : String, locale : Symbol = @@locale) : String | Nil
Source
reload!
Source
t(key : String, default : String | Nil = nil, count : Int32 | Nil = nil, **interpolations) : String

t("a.b.c", default: "...", count: n, **interp)

Source
translate(key : String, **options) : String
Source

Nested types