abstract struct Rosetta::Translation
- Rosetta::Translation
- Struct
- Value
- Object
Overview
Base struct for translation values.
Defined in:
rosetta/translation.crConstructors
Instance Method Summary
- #initialize
-
#raw : String
Return the raw translation value for the current locale.
-
#t_hash(values : Hash(String | Symbol, String))
Using a hash for interpolation is considered unsafe since the content of hashes can't be checked at compile-time.
- #translations
Constructor Detail
Instance Method Detail
def t_hash(values : Hash(String | Symbol, String))
#
Using a hash for interpolation is considered unsafe since the content of hashes can't be checked at compile-time. Try to avoid using this method if you can.