The Lingu configuration file is the foundation to speed up your workflow with the Lingu CLI.
By default, the easiest way to work with Lingu CLI is to place your configuration in the root directory of your project named .lingu.yml
The following is an example of a Lingu configuration file that shows the basic configuration options.
Sometimes it happens that the locale identifiers in your project files are different from those in Lingu. For example, if you “just want to translate Portuguese” in Lingu and don’t want to differentiate between Portuguese Portuguese (pt-PT) and Brazilian Portuguese (pt-BR).
In this case you can teach Lingu CLI to pull the texts for Portuguese from another file, by adding the locale_aliases section as seen below.
Locale Mapping is the inverted form of Locale Aliases. For Example in Lingu you want to manage your Portuguese texts with the locale “pt” but you want to export these Portuguese texts to multiple files “pt-PT” and “pt-BR”.