abstract class I18n::Loader::Base

Overview

Translations loader base class.

Direct Known Subclasses

Defined in:

i18n/loader/base.cr

Macro Summary

Instance Method Summary

Macro Detail

macro embed(path) #

Allows to embed raw translations inside compiled binaries.

This macro is not implemented by default and is optional. Depending on the considered loader, and how / where translations are stored, this feature could implemented or not.


Instance Method Detail

abstract def load : TranslationsHash #

Loads the translations targetted by the current loader.