How to download only source language with CLI?

If you want to download only source language and nothing else using Localazy CLI, you need to update two things in your configuration.

  1. Make sure to includeSourceLang is set to true in download section
  2. Add a condition to filter all languages except the source language

The final configuration might look like the following. (Other config parts omitted for brevity)

{
...
  "download": {
      "includeSourceLang": true,
      "files":[
        {
          "group": "source",
          "output": "${path}/${lang}.ts",
          "conditions": "equals: ${lang}, en"
        }
      ]
    }
...
}

You can then download your source language localazy download source