class CrI18n::LabelChecker

Defined in:

cr-i18n/macro_runners/label_checker.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(labels : Labels, visited_labels : Array(String), pluralized_locales : Array(String), formatter_types : Array(String), enforce_parity : Bool, directory : String) #

[View source]

Instance Method Detail

def add_to_verified_root #

[View source]
def check_alias_parity(prefix, root_label, other_label) #

[View source]
def check_formatters #

[View source]
def check_label_existence #

[View source]
def check_param_parity(prefix, root_label, other_label) #

[View source]
def ensure_param_consistency #

[View source]
def ensure_plural_use #

[View source]
def error(msg, missing = false) #

[View source]
def find_params_from_label #

[View source]
def is_interpolated? #

[View source]
def is_plural? #

[View source]
def is_really_plural?(subject) #

[View source]
def label_discrepencies #

[View source]
def location #

[View source]
def params #

[View source]
def parse_aliases_from_label(label) #

[View source]
def parse_params_from_label(label) #

[View source]
def partition_label_keys(keys) #

[View source]
def perform_check #

[View source]
def plural_from_keys(keys) #

[View source]
def regex_for_target(subject : String = target) #

[View source]
def resolve_target_to_existing_label_target(subject = target) #

[View source]
def target : String #

[View source]