Skip to content

Commit f569d7f

Browse files
authored
Debug bill detail page translations (#1953)
1 parent 19d92ec commit f569d7f

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

components/search/NoResults.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ const Container = styled.div`
1919
export const NoResults: React.FC<React.PropsWithChildren<unknown>> = ({
2020
children
2121
}) => {
22-
const { t } = useTranslation("search")
22+
const { t } = useTranslation("common")
2323
return (
2424
<Container>
25-
<Image src="/no-results.svg" alt={t("no_results")} />
26-
<div className="fs-3">{t("looks_pretty_empty_here")}</div>
25+
<Image src="/no-results.svg" alt={t("noResults")} />
26+
<div className="fs-3">{t("looksPrettyEmptyHere")}</div>
2727
<div className="text-center">{children}</div>
2828
</Container>
2929
)

public/locales/en/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
},
124124
"notInCommittee": "Bill not currently in committee",
125125
"noResults": "No Results",
126+
"looksPrettyEmptyHere": "Looks Pretty Empty Here",
126127
"noNewsUpdates": "There are no news updates for your current followed topics",
127128
"orgs": "Organizations",
128129
"pending_upgrade_warning": {

public/locales/en/search.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
"cosponsor_count": "Sort by Cosponsor Count",
3030
"next_hearing_date": "Sort by Next Hearing Date"
3131
},
32-
"no_results": "No Results",
33-
"looks_pretty_empty_here": "Looks Pretty Empty Here",
3432
"result_count": "Showing {{pageStart}}-{{pageEnd}} of {{nbHits}} Results",
3533
"search_error": "Something went wrong. Please try again. Original message: {{error}}"
3634
}

0 commit comments

Comments
 (0)