-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Issue #2042] Fix search page string translation (navapbc#169)
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">
- Loading branch information
Showing
22 changed files
with
201 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
import { GridContainer } from "@trussworks/react-uswds"; | ||
import React from "react"; | ||
import { useTranslations } from "next-intl"; | ||
|
||
const SearchCallToAction: React.FC = () => { | ||
const t = useTranslations("Search"); | ||
|
||
return ( | ||
<> | ||
{/* <BetaAlert /> */} | ||
<GridContainer> | ||
<h1 className="margin-0 tablet-lg:font-sans-xl desktop-lg:font-sans-2xl"> | ||
Search funding opportunities | ||
{t("callToAction.title")} | ||
</h1> | ||
<p className="font-serif-md tablet-lg:font-serif-lg usa-intro margin-top-2"> | ||
We’re incrementally improving this experimental search page. How can | ||
we make it easier to discover grants that are right for you? Let us | ||
know at <a href="mailto:[email protected]">[email protected]</a>. | ||
{t.rich("callToAction.description", { | ||
mail: (chunks) => <a href="mailto:simpler@grants.gov">{chunks}</a>, | ||
})} | ||
</p> | ||
</GridContainer> | ||
</> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.