-
Notifications
You must be signed in to change notification settings - Fork 381
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
Allow named components in Trans in @lingui/macro #1188
Comments
Yep, it's a nice addition. Also related to #1185 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm replying to keep this issue from going stale. I would still like to see this implemented. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm replying (again) to keep this issue from going stale. I would still like to see this implemented. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm replying (again again) to keep this issue from going stale. I would still very much like to see this implemented. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
According to the docs this should be already supported look at last line in the list https://lingui.js.org/releases/migration-3.html#lingui-react Did you try it with version 3? |
@thekip The Let's leave this issue for implementing the "named components" in the |
@Martin005 it's unrelated to macro. |
@thekip could you please explain in more detail what you mean? |
it was never asked for the Macro. The topic starter mentioned the doc of the macro because there are examples how macro transpiled to component, but the actual question was about component, not a macro. Macro doesn't pass thru itself Implementing |
The documentation of
Trans
has the following example:Since the number tags don't provide much context to the translator I was hoping I could use named tags instead as such:
Unfortunately, it seems only numbered tags are supported.
The text was updated successfully, but these errors were encountered: