CLI: Missing comma in generated JS/TS metadata file

  • NPM @localazy/cli version: 1.6.8
  • Localazy project ID: _a7909888292885091792

Steps to reproduce:

  1. Create a new Localazy project with at least 2 translation files in source language
  2. Install latest @localazy/cli package from npm
  3. Configure “metadataFileTs” in localazy.json (see configuration below)
  4. Run “localazy download”
  5. Inspect the “files” array in the generated “languages.ts” file – there’s a missing comma between the objects in the array which results in an error

Our localazy.json config file:

{
  "upload": {
    "type": "json",
    "files": "public/locales/en/*.json",
    "features": [
      "plural_i18next"
    ]
  },
  "download": {
    "files": "public/locales/${lang}/${file}",
    "metadataFileTs": "src/types/languages.ts",
    "metadataFileJson": "localazy.languages.json"
  }
}

1 Like

Hi @filipj,
Thank you so much for letting us know.
We’ll take a look at it as soon as we can.

1 Like

@filipj, thanks for reporting. It’s fixed:

1 Like

Awesome, thank you! :raised_hands: