Scroll to navigation

Locale::Maketext::Lexicon::CatmanduConfig(3pm) User Contributed Perl Documentation Locale::Maketext::Lexicon::CatmanduConfig(3pm)

NAME

Locale::Maketext::Lexicon::CatmanduConfig - Use Catmandu config files as a Maketext lexicon

SYNOPSIS

    Catmandu->{config}->{locale} = {
        en => {
            hello => "Hello"
        },
        _style => "gettext"
    };
    package MyI18N;
    use parent 'Locale::Maketext';
    use Locale::Maketext::Lexicon {
        en => [ CatmanduConfig => ["locale.en"] ],
        _style => "gettext"
    };

NOTES

* the value for CatmanduConfig is an array because Locale::Maketext::Lexicon interprets regular strings as files (to be ignored)

* config parameter "_style" can be set to "gettext" to make use of placeholders like in Locale::Maketext::Lexicon::Gettext

2023-02-04 perl v5.36.0