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

Fix internationalization test to fail when there are unused allowed interpolation mismatches #10783

Merged
merged 4 commits into from
Jun 10, 2024

Conversation

mitchellhenke
Copy link
Contributor

@mitchellhenke mitchellhenke commented Jun 7, 2024

🛠 Summary of changes

Addresses the comment here #10758 (comment) where we were not failing as expected when we have unused exceptions to mismatched interpolation arguments. I'm not super happy with the logic at this point, but it does seem to work correctly.

The initial run in cc0fb02 is expected to fail.

@mitchellhenke mitchellhenke requested a review from aduth June 7, 2024 20:59
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/fail-if-unused-mismatch-locale-keys branch from cc0fb02 to 80efab0 Compare June 10, 2024 13:27
…nterpolation mismatches

changelog: Internal, Internationalization, Fix internationalization test to fail when there are unused allowed interpolation mismatches
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/fail-if-unused-mismatch-locale-keys branch from 80efab0 to e357793 Compare June 10, 2024 13:31
spec/i18n_spec.rb Outdated Show resolved Hide resolved
spec/i18n_spec.rb Outdated Show resolved Hide resolved
mitchellhenke and others added 2 commits June 10, 2024 10:55
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@mitchellhenke mitchellhenke merged commit 70cb6d5 into main Jun 10, 2024
2 checks passed
@mitchellhenke mitchellhenke deleted the mitchellhenke/fail-if-unused-mismatch-locale-keys branch June 10, 2024 17:33
brandemix pushed a commit to brandemix/18F-identity-idp that referenced this pull request Jun 17, 2024
…nterpolation mismatches (18F#10783)

* Fix internationalization test to fail when there are unused allowed interpolation mismatches

changelog: Internal, Internationalization, Fix internationalization test to fail when there are unused allowed interpolation mismatches

* Update spec/i18n_spec.rb

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>

* Update spec/i18n_spec.rb

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>

* shorten line

---------

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
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