feat(github): translation-feedback issue template

The maintainership banner that surfaces on AI-initial locales (FR / ES
/ IT / PL) links to issues/new?template=translation.md, but the
referenced template was never added to the repo. GitHub fell back to
a blank issue body and the funnel produced unstructured reports that
were hard to triage.

The new translation.yml form asks for locale, the route/component
where the wording appeared, current vs. suggested phrasing, and the
kind of issue (grammar, register, terminology, …). The banner URL
moves to template=translation.yml to match the filename.

No test churn — the banner component test does not pin the URL.
This commit is contained in:
Marc-André Bombeck committed 2026-05-14 21:44:29 +02:00
1 parent f4606fb1cf
commit 766b64e44c
2 files changed
+86 -1

No files matched your search

@@ -34,8 +34,12 @@ import { useTranslations } from "@/lib/i18n/context";
*/
const STORAGE_PREFIX = "healthlog-i18n-banner-dismissed:";
// v1.4.26 P6-8 — `.github/ISSUE_TEMPLATE/translation.yml` now exists.
// GitHub matches the `?template=` query against the filename; the old
// `.md` filename never resolved (the form file was missing), so the
// link landed users on a blank issue body.
const GITHUB_ISSUE_URL =
"https://github.com/MBombeck/HealthLog/issues/new?template=translation.md";
"https://github.com/MBombeck/HealthLog/issues/new?template=translation.yml";
function storageKey(locale: Locale): string {
return `${STORAGE_PREFIX}${locale}`;