{hit.court && (
-
Court {hit.court}
+
+ {t("bill.court", { court: hit.court })}
+
)}
{hit.city}
@@ -154,16 +158,23 @@ export const BillHit = ({ hit }: { hit: Hit
}) => {
- Sponsor: {hit.primarySponsor}{" "}
- {hit.cosponsorCount > 0
- ? `and ${hit.cosponsorCount} other${
- hit.cosponsorCount > 1 ? "s" : ""
- }`
- : ""}
+ {(() => {
+ const count = hit.cosponsorCount
+ if (!hit.primarySponsor) {
+ return `${t("sponsor")}: ${t("bill.cosponsor_count", {
+ count
+ })}`
+ }
+ let title = `${t("sponsor")}: ${hit.primarySponsor}`
+ if (count) {
+ title += ` ${t("bill.and_others", { count })}`
+ }
+ return title
+ })()}
{hit.currentCommittee &&
- `Committee: ${hit.currentCommittee}`}
+ `${t("bill.committee")}: ${hit.currentCommittee}`}
@@ -171,7 +182,9 @@ export const BillHit = ({ hit }: { hit: Hit }) => {
{hit.nextHearingAt && dateInFuture(hit.nextHearingAt) ? (
- Hearing Scheduled {format(fromUnixTime(hearingDate!), "M/d/y p")}
+ {t("bill.hearing_scheduled_for", {
+ date: fromUnixTime(hearingDate!)
+ })}
) : null}
diff --git a/public/locales/en/common.json b/public/locales/en/common.json
index eab8fbaf4..0c2c6e0de 100644
--- a/public/locales/en/common.json
+++ b/public/locales/en/common.json
@@ -2,6 +2,26 @@
"about": "About",
"back_to_bills": "back to list of bills",
"bill": {
+ "and_others_one": "and {{count}} other",
+ "and_others_other": "and {{count}} others",
+ "bill_tracker": "Bill Tracker",
+ "bill_cosponsors": "{{billId}} Cosponsors",
+ "cosponsor_count_one": "{{count}} Cosponsor",
+ "cosponsor_count_other": "{{count}} Cosponsors",
+ "court": "Court",
+ "history": "History",
+ "status_and_history": "Status & History",
+ "status_history": "Status History",
+ "branch": "Branch",
+ "lobbying_parties": "Lobbying Parties",
+ "client_name": "Client Name",
+ "position": "Position",
+ "disclosure_date": "Disclosure Date",
+ "example_name": "Example Name",
+ "pro": "Pro",
+ "neutral": "Neutral",
+ "committee": "Committee",
+ "hearing_scheduled_for": "Hearing Scheduled for {{date, datetime(year: 'numeric'; month: 'long'; day: 'numeric'; hour: 'numeric'; minute: 'numeric')}}",
"old_session": "this bill is from session {{billCourt}} - not the current session",
"read_more": "Read More",
"download_pdf": "Download PDF",
@@ -29,6 +49,7 @@
"technology_and_communications": "Technology and Communications",
"transportation_and_public_works": "Transportation and Public Works"
},
+ "seeCosponsors": "See {{count}} Cosponsors",
"smart_tag": "AI Smart Tag",
"smart_summary": "Smart Summary & Tags",
"smart_disclaimer": "This content has been generated using artificial intelligence and may not accurately reflect the details of the legislation. Learn more about <0>how MAPLE uses AI0>. To report an inaccuracy or to suggest an improvement, please email admin@mapletestimony.org"
@@ -42,7 +63,9 @@
},
"calendar": "Our Calendar",
"hideAns": "Hide Answer",
+ "date": "{{date, datetime(year: 'numeric'; month: 'long'; day: 'numeric')}}",
"joinTraining": "and join an upcoming training session!",
+ "leadSponsor": "Lead Sponsor",
"learn": "Learn",
"let_your_voice_be_heard": "Let your voice be heard!",
"loading": {
@@ -124,6 +147,8 @@
"bluesky": "BlueSky",
"mastodon": "Mastodon"
},
+ "sponsor": "Sponsor",
+ "sponsors": "Sponsors",
"table": {
"page": "Page {{currentPage}}"
},