module Jennifer::Model::Translation::ClassMethods

Defined in:

jennifer/model/translation.cr

Instance Method Summary

Instance Method Detail

def human(count = nil) #

Returns localized model name.


[View source]
def human_attribute_name(attribute : String | Symbol) #

Search translation for given attribute.


[View source]
def i18n_key #

Presents key which be used to search any related to current class localization information.


[View source]
def i18n_scope #

Returns the i18n scope for the class.


[View source]
def lookup_ancestors(&) #

Yields all ancestors until Base.


[View source]