Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

[Issue #167] Fix search page string translation #169

Merged
merged 6 commits into from
Aug 8, 2024

Conversation

btabaska
Copy link
Collaborator

@btabaska btabaska commented Aug 7, 2024

Summary

Fixes #167

Time to review: 5 mins

Changes proposed

Updated most search strings on Search page to use correct next-intl translation components
Added strings to Messages file

Context for reviewers

Updated the unit tests as well because they were not inheriting context due to improper import path from non-global context source

Additional information

Screenshot 2024-08-07 at 1 36 18 PM

@btabaska btabaska changed the title Btabaska/167 translate strings fix [Issue #167] Fix search page string translation Aug 7, 2024
Copy link

github-actions bot commented Aug 7, 2024

Coverage report for ./frontend

St.
Category Percentage Covered / Total
🟢 Statements
90.06% (+0.15% 🔼)
707/785
🟡 Branches
71.08% (-0.1% 🔻)
204/287
🟢 Functions 86.31% 145/168
🟢 Lines
90.75% (+0.15% 🔼)
667/735
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / SearchResultsHeader.tsx
90.91% (+2.02% 🔼)
50% (-10% 🔻)
100% 100%

Test suite run success

154 tests passing in 47 suites.

Report generated by 🧪jest coverage report action from 840c3bb

Copy link
Member

@andycochran andycochran left a comment

Choose a reason for hiding this comment

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

This is fantastic, Tabaska! Great to see us move away from hardcoded UI strings.

@btabaska btabaska merged commit 779de85 into main Aug 8, 2024
12 checks passed
@btabaska btabaska deleted the btabaska/167-translate-strings-fix branch August 8, 2024 15:51
acouch pushed a commit that referenced this pull request Sep 18, 2024
Fixes HHS#2042

Updated most search strings on Search page to use correct next-intl
translation components
Added strings to Messages file

Updated the unit tests as well because they were not inheriting context
due to improper import path from non-global context source

<img width="1583" alt="Screenshot 2024-08-07 at 1 36 18 PM"
src="https://github.com/user-attachments/assets/1b613d26-cbd0-4d0e-b831-0380c6f72af6">
acouch pushed a commit that referenced this pull request Sep 18, 2024
Fixes HHS#2042

Updated most search strings on Search page to use correct next-intl
translation components
Added strings to Messages file

Updated the unit tests as well because they were not inheriting context
due to improper import path from non-global context source

<img width="1583" alt="Screenshot 2024-08-07 at 1 36 18 PM"
src="https://github.com/user-attachments/assets/1b613d26-cbd0-4d0e-b831-0380c6f72af6">
acouch pushed a commit to HHS/simpler-grants-gov that referenced this pull request Sep 18, 2024
Fixes #2042

Updated most search strings on Search page to use correct next-intl
translation components
Added strings to Messages file

Updated the unit tests as well because they were not inheriting context
due to improper import path from non-global context source

<img width="1583" alt="Screenshot 2024-08-07 at 1 36 18 PM"
src="https://github.com/user-attachments/assets/1b613d26-cbd0-4d0e-b831-0380c6f72af6">
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Ensure all frontend strings are translated
3 participants