abstract class I18n::Loader::Base

Overview

Translations loader base class.

Direct Known Subclasses

Defined in:

i18n/loader/base.cr

Instance Method Summary

Macro Summary

Instance Method Detail

abstract def load : TranslationsHash #

Loads the translations targetted by the current loader.


[View source]

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.


[View source]