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

The parser can't get expression for PipeParser #237

Open DartWelder opened 3 years ago

DartWelder commented 3 years ago

Hi! If I use Translate pipe for component input definition, extractor don't add a string in locale json. image image

Here is output of parseTemplate function: image As you can see, the first expression parsed is "ACCOUNT.TOKEN.IDS_TOKEN_PASSWORD_INPUT_TITLE" string, but in the template "ACCOUNT.TOKEN.IDS_TOKEN_TTL_INPUT_TITLE" string is higher image

It will work if I will use plain interpolation template: image but that isn't thing I want to use, and I'm pretty sure it use to work. Plain "{{" "}}" template works because angular parser, using behind the scene, use a default InterpolationConfig like { start: "{{", end: "}}"} @biesbjerg is there way to use regular input value definition with translate pipe image or I've missed something important? Thanks!