-
-
Notifications
You must be signed in to change notification settings - Fork 254
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
feat: Add t.has
to check whether a given message exists
#1399
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Someone is attempting to deploy a commit to the next-intl Team on Vercel. A member of the Team first needs to authorize it. |
- E2E test - Tests for type safety - Bump size - Expose on `getTranslations` - Refactor `craeteBaseTranslator` slightly to reduce bundle size
t.has
for checking whether a message exists for the current locale
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tholander This looks fantastic, thanks a lot for taking the initiative on this! 💯
During the review I've added a commit to add a few more tests, hope that's ok for you.
I'll do another review tomorrow, but I think this is good to go!
…slations # Conflicts: # examples/example-app-router-playground/src/components/AsyncComponent.tsx
t.has
for checking whether a message exists for the current localet.has
to check whether a given message exists
thanks a lot for this. |
Co-authored-by: Théo Holander <theo.holander@reflet-digital.com> Co-authored-by: Jan Amann <jan@amann.work>
Closes #88