Swiss German, German, and Greek Language Update
Section titled “Swiss German, German, and Greek Language Update”This update adds three NutsNews languages across the web UI and article translation pipeline:
de-CH— Swiss German / Swiss High Germande— Germanel— Greek
What changed
Section titled “What changed”- Adds the three languages to the site language selector.
- Localizes the home feed copy, search UI, footer, hero tagline, settings menu, contact page, about page, and privacy page.
- Lets the web API load translated article titles and summaries from
public.article_summariesfor the new language codes. - Updates the Cloudflare Worker translation defaults to generate
fr,ja,de-CH,de, andelsummaries. - Updates the local AI
/translateendpoint so it accepts and translates the new language codes. - Updates translation audit, diagnosis, backfill, offline regression, wrangler, and GitHub translation coverage defaults.
Recommended Worker setting
Section titled “Recommended Worker setting”export ENABLED_SUMMARY_LANGUAGES="fr,ja,de-CH,de,el"Backfill only the new languages
Section titled “Backfill only the new languages”Dry run first:
LANGUAGE_CODES="de-CH,de,el" \BACKFILL_SOURCE=public_feed_snapshot \CANDIDATE_LIMIT=250 \BACKFILL_LIMIT=30 \DRY_RUN=1 \node scripts/backfill_article_summaries.mjsRun the backfill:
LANGUAGE_CODES="de-CH,de,el" \BACKFILL_SOURCE=public_feed_snapshot \CANDIDATE_LIMIT=250 \BACKFILL_LIMIT=30 \node scripts/backfill_article_summaries.mjsAudit translations
Section titled “Audit translations”LANGUAGE_CODES="fr,ja,de-CH,de,el" \AUDIT_SOURCE=public_feed_snapshot \AUDIT_LIMIT=100 \node scripts/audit_article_translations.mjs