Skip to content
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

Support values property in MessageDescriptor. #16

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

vpalos
Copy link

@vpalos vpalos commented Dec 30, 2024

The underlying Lingui functions accept the important additional property MessageDescriptor.values which makes the use of the $t({ ... }) macro call (the one which takes an object as argument) a lot more useful.

This small change simply enhances the generated *.d.ts definition file to contain this property. Note that you can already use this property even without this change; this only makes the IDE (e.g. VS Code) aware of it and adds a documentation paragraph about it.

Copy link
Owner

@HenryLie HenryLie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vpalos

Thank you for contributing to the repo!

The changes LGTM, but could you undo the changes to the version number on the package.json file before merging? I'll do it in another commit separate from this PR and make sure it's properly tagged for the release.

@vpalos
Copy link
Author

vpalos commented Jan 20, 2025

@vpalos

Thank you for contributing to the repo!

The changes LGTM, but could you undo the changes to the version number on the package.json file before merging? I'll do it in another commit separate from this PR and make sure it's properly tagged for the release.

No problem, done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants