-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: fails with nested translations #329
Comments
Could you check if this is related to #78? |
Also you are welcome to create a PR for this |
ok, probably we will wait for new TS version then :) for now I am using |
Not to confuse you, I'm not talking about this project, but faker-js/faker#72 |
Did you found a workaround? Otherwise I would suggest to open a PR so I can review it. |
sorry didint have time, using |
@fisker It fails in this line(s) Line 1081 in f9e4b86
Line 718 in f9e4b86
Line 707 in f9e4b86
Is there a bug in the angular parser? Or do I need to call another parser? |
I don't know anything about this syntax.. but seems valid in core plugin. Prettier 2.5.1 --parser angular Input: <some-component
title="{{ '{type}-text' | translate: { type: someType | translate } }}"
></some-component> Output: <some-component
title="{{ '{type}-text' | translate: { type: someType | translate } }}"
></some-component> I'm not near my laptop, maybe you used the wrong parser? I'd suggest to check how it works in the core parser. |
😬 I assume you (prettier) are doing the thing I thought you would do 🙁 |
Because you didn't do this in the right way. |
Does adding all those options fix the issue ? |
Yeah, that's also okay, no problem with that. I just don't depend on the whole prettier doc builder stuff, cause I find it much easier to write pug from left to right, top to bottom. I may just need to wrap Line 707 in f9e4b86
with a try catch and use a fallback strategy like don't format for now. |
I mean did you try add those options starts with |
No, not really 😄 At least the rest of the file would now format correctly |
Info
Prettier config
Input
Output or Error
Expected Output
should be no error, pug is correct
The text was updated successfully, but these errors were encountered: