biesbjerg / ngx-translate-extract

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

Key 'constructor' is not parsed #251

Open coolalex12 opened 2 years ago

coolalex12 commented 2 years ago
<div>
  {{ 'constructor.test1' | translate }}
</div>
<div>
  {{ 'test' | translate }}
</div>

parse results:

{
  "test": ""
}

expected result

{
  "constructor": {
    "test1": ""
  },
  "test": ""
}
SebaRenner commented 2 years ago

@coolalex12 ~~did you use the correct format option? --format namespaced-json~~

Test it as well. Seems like constructor is a keyword that is crawled but ignored