module CrI18n

Defined in:

cr-i18n/enforce_labels_check.cr
cr-i18n/formatter.cr
cr-i18n/label_loader.cr
cr-i18n/localization.cr
cr-i18n/macro_runners/label_checker.cr
cr-i18n/macros.cr
cr-i18n/pluralization.cr

Constant Summary

LABEL_DIRECTORY = [] of Nil
VISITED_LABELS = [] of Nil

Class Method Summary

Macro Summary

Class Method Detail

def self.current_locale #

[View source]
def self.enforce_labels #

[View source]
def self.get_label(target : String, lang_locale : String = "", *, count : Float | Int | Nil = nil, **splat) #

[View source]
def self.load_labels(root : String) #

[View source]
def self.missed #

[View source]
def self.resolve_to_root #

[View source]
def self.resolve_to_root=(value : Bool) #

[View source]
def self.root_locale #

[View source]
def self.root_locale=(value : String) #

[View source]
def self.running_tests #

[View source]
def self.running_tests=(value : Bool) #

[View source]
def self.supported_locales #

[View source]
def self.with_locale(lang_locale : String, &) #

[View source]

Macro Detail

macro compiler_load_labels(directory) #

[View source]