Skip to content

Lobbying page titles - #2358

Open
mertbagt wants to merge 14 commits into
codeforboston:mainfrom
mertbagt:lobbying_page_titles
Open

mertbagt wants to merge 14 commits into
codeforboston:mainfrom
mertbagt:lobbying_page_titles

Conversation

@mertbagt

@mertbagt mertbagt commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Issue #2336

Checklist

  • On the frontend, I've made my strings translate-able.

Screenshots

Known issues

I suspect lobbying.json might have a number of redundant entries


the createPage function seems to use translations in a way that:

  • is different from standard trans component / "t" usage
  • makes including dynamic variables difficult if possible at all.

AI tried to give some suggestions for implementation but they didn't seem to pan out.

This means replacing things like: "Lobbying - Firm ${firmName}" with "Lobbying - Firm" which seems to be consistent with the rest of the website with page titles like "Bill", "Hearing", "Legislator" with no dynamic variable.

Extra Deploy Steps

none

Steps to test/reproduce

  1. Go to ./lobbying
  2. Click on a the lobbying navbar: Overview, Bills, Clients, Lobbyists, etc
  3. Make sure the title in the browser tab is accurate

@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
maple-dev Ready Ready Preview Nov 30, 2026 4:53pm UTC

Request Review

@Mephistic

Copy link
Copy Markdown
Collaborator

I think this is a strict step up from existing functionality (and would be a net positive to merge as is), but it would be nice to get the Bill/Client/Firm name in the title for the individual pages. Could we try modifying createPage or applyLayout in components/page.tsx (or Layout in components/Layout.tsx) to support translations in the title that accept variables?

This branch was successfully deployed

1 active deployment
Preview – maple-dev — a17da9c3 Deployed Nov 30, 2026 by vercel[bot]
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