From aedc0dd2b743cc0d1bc7e375d1315a0f211252f2 Mon Sep 17 00:00:00 2001 From: oskar Date: Fri, 31 Jul 2026 17:01:30 +0200 Subject: [PATCH] fix(i18n): dopisek roboczy na /platforma EN + known issues w README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit workingName: "before launch" -> "before publication", zgodnie z ustaleniem. README dostaje sekcję Known issues z odłożoną świadomie sprawą: og:* w surowym HTML zostaje po polsku na trasach /en, bo index.html jest jednym statycznym dokumentem dla każdej ścieżki. Scrapery Open Graph nie wykonują JS, więc runtime'owa podmiana title/description ich nie dotyczy. Ten sam rdzeń problemu dotyczy hreflang, który jest identyczny na każdej podstronie. Fix dla obu to prerendering index.html per język. Co-Authored-By: Claude Opus 5 (1M context) --- README.md | 16 ++++++++++++++++ src/i18n/en.ts | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b0d18d3..7114187 100644 --- a/README.md +++ b/README.md @@ -43,3 +43,19 @@ SMTP_PASS=your-app-password | scheme | `http` | | forward hostname | `humanai-mailer` | | port | `3000` | + +## Known issues + +**Open Graph metadata is Polish on `/en` routes.** `index.html` is a single static +document served for every path (`try_files … /index.html`), so `og:title`, +`og:description` and `og:url` are baked in Polish. `App.tsx` rewrites +`document.title` and `meta[name="description"]` at runtime, which browsers and +JS-executing crawlers honour — but Open Graph scrapers (Facebook, LinkedIn, +Slack) read the raw HTML and will show Polish copy when an `/en` link is shared. + +**`hreflang` alternates are the same on every page.** All routes advertise the +same `pl` / `en` / `x-default` triple pointing at the two homepages, so +`/privacy` claims the homepage as its alternate. + +Both have one root cause and one fix: prerender a per-language `index.html` +instead of serving one document for every route. diff --git a/src/i18n/en.ts b/src/i18n/en.ts index d92cb35..97bb611 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -168,7 +168,7 @@ export const en: typeof pl = { }, platform: { title: 'Overseeing agentic systems', - workingName: '(working name — to be confirmed before launch)', + workingName: '(working name — to be confirmed before publication)', watchers: { title: 'Who watches the agents that watch everything else?', paragraphs: [