---
name: "Locale::Maketext::Lexicon::CatmanduConfig"
section: "3pm"
platform: "linux"
package: "libcatmandu-i18n-perl"
version: "0.01-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Locale::Maketext::Lexicon::CatmanduConfig"
---

# Locale::Maketext::Lexicon::CatmanduConfig(3pm)

Use Catmandu config files as a Maketext lexicon

## 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
