-
Notifications
You must be signed in to change notification settings - Fork 379
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
Extract named parameters for some complex identifiers in t-macro #2033
Comments
Thanks for the suggestion! Actually, there is a new feature in the v5 pre-release that aims to provide additional context about placeholders in exactly the same case as you describe. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
Simple identifier works great
When using string interpolation for message arguments like:
the parameter extracted is named:
this is great as it provides context for translators about the available parameters.
All non-simple identifiers; not so great
However, it is only supported with simple identifiers, and anything else is replaced with positional parameters. The result is that identifiers/paths of nested references also get thrown out the window:
Proposed solution
This behavior is defined here, but I would like it to not include nested paths as they are named. For nested paths it would be great if the leaf node or full path could be included so that it works like:
The text was updated successfully, but these errors were encountered: