Skip to content

Remove unused string interpolation for personal key text#6196

Merged
aduth merged 3 commits intomainfrom
aduth-rm-unused-pkey-accent
Apr 13, 2022
Merged

Remove unused string interpolation for personal key text#6196
aduth merged 3 commits intomainfrom
aduth-rm-unused-pkey-accent

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Apr 13, 2022

Why: Since there is no accent interpolation key in the instructions.personal_key.info_html string:

info_html: You’ll need this personal key if you forget your password. If you
reset your password and don’t have this key, you’ll have to verify your
identity again.

**Why**: Since there is no "accent" interpolation key in the "instructions.personal_key.info_html" string.

changelog: Internal, Localization, Remove unused locale strings
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM! The _html part of info_html is no longer needed right?

@aduth
Copy link
Contributor Author

aduth commented Apr 13, 2022

LGTM! The _html part of info_html is no longer needed right?

Ah, good call! I'll update to remove it.

@aduth aduth merged commit e583e88 into main Apr 13, 2022
@aduth aduth deleted the aduth-rm-unused-pkey-accent branch April 13, 2022 16:21
aduth added a commit that referenced this pull request Apr 14, 2022
aduth added a commit that referenced this pull request Apr 14, 2022
* Move PageHeading to components package

For reuse in verify-flow

* Add basic FormSteps flow for IdV React implementation

**Why**: So that we can start implementing step screens for the new, React-based identity verification flow.

changelog: Upcoming Features, Identity Verification, Add personal key step screen

* Initialize React I18nContext with global locale data

* Add basic personal key step content

* Fix imports

* Update test default i18n context

* Set default I18nContext value to shared i18n instance

* Import t directly

Moving toward potential future removal of useI18n

* Remove unnecessary string interpolation

https://github.com/18F/identity-idp/pull/6195/files#r849653819

* Update usage for I18nContext.Provider

Previously receives strings object, now receives I18n instance

* Update personal_key info string key

Changed in #6196

* Reorder props

Bit easier to read with className last
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