- NPM @localazy/cli version: 1.6.8
- Localazy project ID: _a7909888292885091792
Steps to reproduce:
- Create a new Localazy project with at least 2 translation files in source language
- Install latest @localazy/cli package from npm
- Configure “metadataFileTs” in localazy.json (see configuration below)
- Run “localazy download”
- 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"
}
}