class

PointClickEngine::Localization::Translation

Inherits Reference < Object

Translation entry with support for pluralization and interpolation

Constructors

new(key : String)
Source

Instance methods

add_plural_forms(locale : Locale, forms : Hash(String, String))
Source
add_translation(locale : Locale, value : String)
Source
get(locale : Locale, count : Int32 | Nil = nil, params : Hash(String, String) | Nil = nil) : String
Source
key=(key : String)
Source
translations
Source
translations=(translations : Hash(Locale, String | Hash(String, String)))
Source