Skip to content

Resolve #4255: Narrow typed i18n facade examples - #4314

Merged
ayden94 merged 1 commit into
mainfrom
issue-4255
Nov 26, 2026
Merged

ayden94 merged 1 commit into
mainfrom
issue-4255

Conversation

@ayden94

@ayden94 ayden94 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #4255

Use an explicit facade type annotation so a bound translate exposes generated catalog keys instead of retaining key: string.

Changes

  • Correct the typed facade examples in the English and Korean package READMEs and the site guide.
  • Compile a bound facade against the generated declarations and verify that valid calls pass and invalid key arguments are rejected.

Testing

  • pnpm vitest run packages/i18n/src/typegen.test.ts — 10 passed.
  • pnpm vitest run tooling/governance/i18n-nestjs-migration-docs.test.ts — 4 passed.
  • npm pack --dry-run --ignore-scripts --json ./packages/i18n — both package README files are included.
  • Full local CI was not run; the issue does not affect the local pre-review pnpm test:node execution path. The canonical GitHub CI result is a separate gate.
  • Exact-head local review at eb4f205a: contract, code, and verification all passed; no axes were omitted.

Release impact

  • This PR has consumer-visible release impact and includes a changeset.
  • This PR has no consumer-visible release impact.

The patch Changeset covers the shipped README examples. No migration is required.

Public export documentation

No public exports, source TSDoc, runtime signature, or generated declaration format changed.

Behavioral contract

The examples use the existing opt-in facade. The runtime translation API remains unchanged. The compiler regression covers fully qualified and namespace-relative calls.

Platform consistency governance (SSOT)

The English and Korean package examples remain aligned. The documentation governance check passed; no platform contract or enforcement code changed.

This change and the local reviews were AI-assisted. No manual human review is claimed here.

@ayden94
ayden94 merged commit f6612c4 into main Nov 26, 2026
7 checks passed
@ayden94
ayden94 deleted the issue-4255 branch November 26, 2026 07:01
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.

[i18n] Narrow the translate signature in the typed facade examples

1 participant