-
-
Couldn't load subscription status.
- Fork 1k
feat: use IcuTrans as the compiled output of ICU trans macro #1872
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
Conversation
|
is this still ok? https://github.com/i18next/react-i18next/blob/master/icu.macro.d.ts can you fix also this double dot here? https://github.com/i18next/react-i18next/blob/master/package.json#L52 regarding docs: https://react.i18next.com/misc/using-with-icu-format#using-babel-macros-trans-plural-select (https://github.com/i18next/react-i18next-gitbook/blob/master/misc/using-with-icu-format.md) |
Yes, this is a drop-in replacement, none of the public API has changed
lol good catch :)
Thanks! I'll work on those next! |
|
Will create a new release as soon as you've prepared the docs etc. |
Working on them now. Thank you for being so flexible and for accepting this work! |
Those examples don't need updating because they work without modification (100% backwards-compatible API, only the under-the-hood implementation has changed) |
|
I just realized that the |
|
oh! No I am wrong, that aspect of the icu macro is fully tested, and working. I just didn't know about it. Please disregard 😂 |
Issue #1869
This is the 2nd of 3 PRs (third will be docs)
This transforms the component under the hood for
Trans,Select,Plural, andSelectOrdinalto use theIcuTranscomponent just committed a few hours ago.I managed to bump test coverage a wee bit higher in this one.
For the next PR: which docs should I update, and should I add new ones?
Checklist
npm run testChecklist (for documentation change)