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

React-i18n Migration from ## **v22.x.x to v23.0.0** codemods #1295

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dfordp
Copy link

@dfordp dfordp commented Aug 29, 2024

Reacti18next

v22.x.x to v23.0.0

  • Link to Official Upgrade Guide: [https://www.i18next.com/misc/migration-guide#v22.x.x-to-v23.0.0]

add-namespace type anotation

  • Modification of the InterpolationOptions type. In version 23.0.0, the ns property within InterpolationOptions is now constrained to be of type Namespace instead of being a string or a readonly string[]. This change requires you to adjust your code accordingly.

Additional Details


i18next_replace-keyswithseparator-with-joinkeys

  • Renaming types or functions can be part of an effort to clarify the library's API, deprecate old functionality, or introduce new features. In this case, KeysWithSeparator has been renamed to JoinKeys. This means wherever KeysWithSeparator was used in the codebase, it needs to be replaced with JoinKeys.

Additional Details

i18n_remove-options

  • This migration simplifies the configuration but requires reviewing your existing normalization logic to ensure it still meets your needs without the explicit type-based customization previously available through NormalizeByTypeOptions.

Additional Details

Copy link

vercel bot commented Aug 29, 2024

@dfordp is attempting to deploy a commit to the Codemod Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant
Copy link

CLAassistant commented Aug 29, 2024

CLA assistant check
All committers have signed the CLA.

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