biesbjerg / ngx-translate-extract

Extract translatable (using ngx-translate) strings and save as a JSON or Gettext pot file
MIT License
525 stars 198 forks source link

Extract to multiple files not working? #207

Open woeterman94 opened 4 years ago

woeterman94 commented 4 years ago

When I use ngx-translate-extract --input ./src --output ./src/assets/i18n/{en,fr,nl}.json --clean --format json

I get one file '{en,fr,nl}.json'

image

Shouldn't this command result in 3 files?

Running: "@biesbjerg/ngx-translate-extract": "^7.0.2", and latest node version.

woeterman94 commented 4 years ago

duplicate of: https://github.com/biesbjerg/ngx-translate-extract/issues/199

Workaround is to group paths on the same line: "i18n": "ngx-translate-extract --input ./src --output ./src/assets/i18n/pl.json ./src/assets/i18n/en.json ./src/assets/i18n/de.json --format json --sort"

alshar commented 4 years ago

Confirmed not working for windows 10 and ngx-translate-extract version 7.0.0

Jace67 commented 3 years ago

It's weirder, it works on "./src/assets/i18n/_{en,jp}.json" but not "./src/assets/i18n/{en,jp}.json". I think your parser is ignoring "{en,jp}" if it comes after a "/".

JesseHelmes commented 1 week ago

Workaround #https://github.com/biesbjerg/ngx-translate-extract/issues/227#issuecomment-1075176737