logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Name

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

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

perl v5.36.0                                       2023-02-04              Locale::Makete...:CatmanduConfig(3pm)

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"
           };

return

See Also