Skip to content

bug(i18n): de-CH readers still get ß in German strings the Swiss overlay never overrides #4166

Closed

Description

@yannickmonney

Summary

Swiss readers (de-CH) still see ß in German strings that the de-CH overlay never overrides. The overlay is sparse: de-CH → de → en. Its doctrine (.agents/skills/write-translations/locales/de-CH/AGENTS.md, and the de-CH column of CONVENTIONS.md) says Swiss text uses ss instead of ß, and that an override is added "when the text needs to differ for Swiss readers". So every de string containing ß needs an override. Many have none:

Catalog de keys holding ß with a de-CH override without
services/web/messages 22 7 15
services/platform/messages 82 40 42
packages/ui/src/i18n/messages 9 7 2
services/docs/messages 1 1 0

There is no runtime ß→ss transform; git grep finds no replacement outside tests. So each missing key renders the base-de ß form. The overlay test that #4148 adds (services/web/lib/i18n/de-ch-overlay.test.ts) checks only the overrides that exist: each must equal de with ß→ss. A missing override is invisible to it, to messages.test.ts (style-ss passes), and to the manual boxes. services/web LOC-F6 and services/docs LOC-F7 only check strings that are present in the overlay.

Source and environment

Impact

Swiss German is a declared regional variant: the doctrine, the overlays and the manual boxes all cover it. Yet a Swiss reader gets mixed spelling, ss in some strings and ß in others:

  • On the marketing home page, "Standardmäßig selbst gehostet" sits next to overrides that say "grosse".
  • In the product, common controls are affected: Schließen (chat.budgetWarningDismiss, conversations.bulk.close), Vergrößern (notifications.expand, common.flow.zoomIn), "Bild ist zu groß …", "… muss größer als null sein".

Severity is low (spelling, not meaning). It is systematic, though, and nothing would catch new cases.

Deterministic reproduction

  1. Run services/web (bun run --filter @tale/web dev) and open /de with the browser language de-CH. navigator.language is de-CH; the URL stays /de and <html lang> is de.

  2. Observed: three visible text nodes on /de still contain ß:

    • "Standardmäßig selbst gehostet" (home.tagline.pillars.selfHosted.title);
    • "Schließe mit dem Link zur Eskalations-Richtlinie, …" (home.demos.arena.replyA3);
    • the on-prem FAQ answer, "… nach außen senden …" (home.faq.onPrem.a).

    The resynced overrides on the same page render with ss.

  3. Control: with de-DE, the same page shows 6 ß strings. That is the 3 above, plus the 3 that de-CH does override (the two FAQ answers and the footer's "Maßnahmen").

  4. Catalog scan: for each de.yml/de-CH.yml pair, list the de keys whose value contains ß and that de-CH.yml doesn't define. The counts are in the table above. The full list of 59 keys is in the retained evidence.

Expected

Every string a de-CH reader sees writes ss for ß, as the de-CH doctrine says. A guard fails when a de value containing ß has no Swiss form.

Acceptance checks

  1. Every catalog with a de-CH overlay is covered: for each de key in services/web, services/platform, packages/ui and services/docs whose value contains ß, the de-CH reader gets the ß→ss text. Either:
  2. A shared guard fails when a ß-bearing de value has no Swiss form. One way is to extend fix(web): name the DPA in the pricing table and resync de-CH #4148's overlay test into a shared one: an override is then required exactly when de has ß or a listed regional variant.
  3. Rendered: /de and /de/pricing under de-CH show no ß. In the platform, the Schließen/Vergrößern controls read Schliessen/Vergrössern.

Evidence and limits

  • Evidence kept locally (TALE-358 r20261003T2015):
    • scripts/v1-de-ch-parity.py and evidence/v1-de-ch-parity-head.json, with the 15 web keys;
    • scripts/r1-pricing-render.ts, evidence/r1-pricing-render-head.B.log and the de-CH/de-DE screenshots;
    • the catalog scan at both revisions, evidence/v3-de-ch-sharp-s-coverage.txt, with all 59 keys.
  • Limits:
    • Rendered only on the marketing site. The platform and packages/ui numbers come from the catalog scan.
    • I didn't check docs Markdown content, only messages. The docs de-CH tree is retired, per services/docs NAV-F20.
    • Whether to override per key or transform at load time is an implementation choice.

Activity

  1. yannickmonney commented on Oct 6, 2026

    @yannickmonney
    ContributorAuthor

    Status after the catalog split (TALE-358 Review A, run 844c1971, main at 890de6258).

    • Still open on main: services/platform/messages/de/auth.yml has 7 values with ß. de-CH/auth.yml overrides 5 of them but not these two:
      • sso.errors.recovery.signInInteractively;
      • sso.actions.completeMfa.
      • twoFactor.yml's one ß value is overridden.
    • Fix PR fix: cover Swiss sharp-s fallback across message catalogs #4412 already covers both keys, at head e126114dd. But it writes them to services/platform/messages/de-CH.yml, which no longer exists: since 68386d304, every locale is a directory of topic files (de-CH/auth.yml, …).
      • So the PR's overrides need moving into the per-topic files when it's rebased.
      • The PR's mandatory coverage guard should then confirm that nothing is left.
  2. yannickmonney commented on Oct 7, 2026

    @yannickmonney
    ContributorAuthor

    Status at main 6eaa56999bb6528abe26666aa23bfcad607ef862 (TALE-358 Review A, run c5f148b5; static, per-topic catalogs).

    The platform catalogs are now one file per topic, with de-CH overrides in services/platform/messages/de-CH/<topic>.yml (16 topic files). Of the 84 German platform strings that contain ß, 38 still have no de-CH override, across 15 topics. On 2026-10-04 it was 42 of 83.

    Topic ß strings Without override
    automations 6 5
    documents 12 5 (record.replace.staleRevision, .staleDialog, .approvedStaleDialog, .stateChanged, .intentExpired)
    governance 19 5
    settings 11 4
    analytics 3 3
    auth, chat, conversations, projects, skills, toast 7, 3, 2, 2, 2, 2 2 each
    notifications, products (edit.imageTooLarge), tasks, websites (pagesDialog.errorKind.responseTooLarge) 1, 1, 3, 1 1 each

    The open fix PR #4412 (head e126114dd, last updated 2026-10-05) still edits the pre-split services/platform/messages/de-CH.yml. Its new guards (swiss-coverage.test.ts, swiss-loading.test.ts) would catch these, but its catalog changes need moving to the per-topic files. Method: topic-parity.py from TALE-358's evidence (de-CH coverage of German values with ß).

  3. yannickmonney commented on Oct 10, 2026

    @yannickmonney
    ContributorAuthor

    Addendum: one more de-CH ß gap, added at main 8f87d90c2 (Review A, TALE-358, 2026-10-10 20:15 Zurich occurrence).

    #4694 (84081dd668) added automations.blank.deployFailed with German "…aber v1 ließ sich nicht live schalten: {error}. Schalte sie im Editor live." services/platform/messages/de-CH/automations.yml has no override, so de-CH users see ß when a newly created automation can't go live.

    Counts at 8f87d90c2 (German values with ß that de-CH lacks):

    Topic Uncovered keys
    automations 7 of 11: blank.deployFailed (new), blank.triggerFailed, runs.effects.description, runs.effects.none, runs.effects.noneForNode, runs.effects.noneYetForNode, settings.loadFailed
    settings 4 of 11: enterpriseSso.metadata.importFailed, enterpriseSso.metadata.errorTooLarge, enterpriseSso.metadata.errorFetchFailed, enterpriseSso.redirectUrlHelp
    ui 1 of 17: common.aria.resizePanel

    The new automationRuns topic (428 keys) and the 60 added automationIssues keys are fully covered: their de-CH files carry overrides for every ß value.

    The fix is still the one this issue asks for: add the overrides, and enforce de-CH ß coverage in the i18n check so new keys can't regress.

  4. yannickmonney commented on Oct 11, 2026

    @yannickmonney
    ContributorAuthor

    Addendum: one more de-CH ß gap at main 8d09856be (Review A, TALE-358, 2026-10-11 08:15 Zurich occurrence).

    #4784 (8d09856be9, the starter gallery) added automations.starters.loadFailed with German "Die Vorlagen ließen sich nicht laden: {error}". de-CH/automations.yml has no override, so automations now lacks 8 of its 12 ß values in de-CH. The other new keys from 06:00Z onwards are fine: parity is complete for 47 of 47 topics.

    The all-topic total of German ß values without a de-CH override is now 44. This issue's fix and an enforced de-CH ß check still cover all of them.

  5. yannickmonney commented on Oct 12, 2026

    @yannickmonney
    ContributorAuthor

    Post-merge recheck at main aec031867 (Review A, TALE-358, 2026-10-12 04:15 Zurich occurrence; static reading plus main's CI logs).

    #4412 (6e1d160e8) fixes it, guard included.

    • Coverage: I recomputed the issue's rule at aec031867: every German leaf containing ß needs a de-CH string without ß, array entries included. Result: 0 uncovered, down from 44 at 8d09856be. That holds for all 46 platform topics, packages/ui, services/web and services/docs. It also covers the two addenda (automations.blank.deployFailed, automations.starters.loadFailed) and the batch's new automation-test strings.
    • Guard: packages/ui/src/i18n/tests/swiss-coverage.ts applies the same rule. defineI18nTests now calls defineSwissCoverageTests(messagesDir) for every workspace, and readCatalog reads both the single-file and the per-topic layouts. A new German ß string without a Swiss form now fails CI instead of falling back silently.
    • Executed on aec031867: main push Checks run 38191169541 ran these suites uncached (turbo MISS), all exit 0:
      • Unit (workspaces), job 114624756968: swiss-coverage.test.ts 4 tests and src/i18n/messages.test.ts (25 tests) in packages/ui;
      • Unit (platform 2/2), job 114624756699: lib/i18n/messages.test.ts (34 tests) and lib/i18n/swiss-loading.test.ts in services/platform.

    Nothing is left from this issue. Review A drops its de-CH LOCALE FAIL entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions