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

Allow dynamic supported keys through custom handler options #255

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

praveen-quizizz
Copy link

Checklist

  • only relevant code is changed (make a diff before you submit the PR)
  • [ x] run tests npm run test
  • tests are included
  • commit message and code follows the Developer's Certification of Origin

Checklist (for documentation change)

  • only relevant documentation part is changed (make a diff before you submit the PR)
  • motivation/reason is provided
  • commit message and code follows the Developer's Certification of Origin

@cheton
Copy link
Member

cheton commented Jan 26, 2024

You can provide the metadata prop in a component, it will be accessible in the customer handler options.

https://github.com/i18next/i18next-scanner/blob/v4.4.0/src/parser.js#L511-L520
image

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.

None yet

2 participants