Skip to content

Swap identity-react-i18n for identity-i18n#8522

Merged
allthesignals merged 1 commit intomainfrom
wmg/9165-switch-i18n
Jun 1, 2023
Merged

Swap identity-react-i18n for identity-i18n#8522
allthesignals merged 1 commit intomainfrom
wmg/9165-switch-i18n

Conversation

@allthesignals
Copy link
Contributor

@allthesignals allthesignals commented Jun 1, 2023

🎫 Ticket

🛠 Summary of changes

Changes the i18n package for the address-search component.

Before, it was using an i18n wrapper package that enables the use of a React Context.

Now, it is using a lower-level i18n package that simply leverages the window object, which will make usage of it more straightforward outside of the context of identity-idp, specifically identity-site.

Note that these two i18n packages appear to be used interchangeably throughout. I am open to pushback on this! Currently, I'm spot-checking the level of effect to simply use the Context pattern inside the identity-site.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Automated tests
  • Spot check locally translations as normally

Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

👍

@allthesignals allthesignals marked this pull request as ready for review June 1, 2023 16:44
@allthesignals allthesignals merged commit 0a8ab97 into main Jun 1, 2023
@allthesignals allthesignals deleted the wmg/9165-switch-i18n branch June 1, 2023 16:47
This was referenced Jun 6, 2023
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