abstract struct Rosetta::Translation

Overview

Base struct for translation values.

Defined in:

rosetta/translation.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def initialize #

[View source]
def raw : String #

Return the raw translation value for the current locale.


[View source]
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.


[View source]
abstract def translations #

[View source]