module Rosetta::Translatable

Overview

Include this module in any class where you need to translate many keys.

Defined in:

rosetta/translatable.cr

Macro Summary

Macro Detail

macro r(key) #

Finds the translation for the given key. If the given key starts with a ".", a prefix based on the current class name will be used. Unless the constant ROSETTA_PREFIX is defined, which will then be used instead.


[View source]