ngx-translate-extract icon indicating copy to clipboard operation
ngx-translate-extract copied to clipboard

The parser can't get expression for PipeParser

Open DartWelder opened this issue 3 years ago • 0 comments

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!

DartWelder avatar Jun 29 '21 15:06 DartWelder