Skip to content

fix(i18n): drop generic concept words from DEFAULT_PROTECTED_TERMS fallback#224

Merged
heznpc merged 1 commit into
mainfrom
fix/default-protected-terms-generics
Jun 17, 2026
Merged

fix(i18n): drop generic concept words from DEFAULT_PROTECTED_TERMS fallback#224
heznpc merged 1 commit into
mainfrom
fix/default-protected-terms-generics

Conversation

@heznpc

@heznpc heznpc commented Jun 17, 2026

Copy link
Copy Markdown
Owner

A small policy-consistency cleanup surfaced by the #223 doc fact-check.

DEFAULT_PROTECTED_TERMS (constants.js) is the Gemini keep-English fallback — used by getKeepEnglishTerms() only when a locale has no _protected keys. It still listed skill, Subagent, Enterprise, Personal, Plugin, Dispatch — generic concept words that #218 deliberately removed from the per-locale _protected blocks because they are translated natively (concept-vs-product-name policy, docs/TRANSLATION_RULES.md §1). Keeping them in the fallback told Gemini to keep ordinary words English — the opposite of the shipped policy.

Reduced to brand/product/file-format proper nouns only:
API, SDK, Claude, Anthropic, Claude Code, Cowork, Computer Use, SKILL.md, frontmatter.

Low-impact (the fallback only fires for a locale with an empty _protected), but it removes an inconsistency a future contributor or automated pass could be misled by.

555 unit (the constants assertions — contains Claude/Anthropic/API — still hold) · gates green · e2e 20/20.

🤖 Generated with Claude Code

…llback

DEFAULT_PROTECTED_TERMS is the Gemini "keep-English" fallback used by
getKeepEnglishTerms() only when a locale has no _protected keys. It still listed
skill, Subagent, Enterprise, Personal, Plugin, and Dispatch — generic concept
words that PR #218 deliberately REMOVED from the per-locale _protected blocks
because they are translated natively per locale (concept-vs-product-name policy,
docs/TRANSLATION_RULES.md §1). Keeping them in the fallback told Gemini to keep
ordinary words in English — the opposite of the shipped policy.

Reduced to brand/product/file-format proper nouns only:
API, SDK, Claude, Anthropic, Claude Code, Cowork, Computer Use, SKILL.md, frontmatter.

Low-impact (the fallback only fires for a locale with an empty _protected), but it
removes a policy inconsistency a future contributor/LLM pass could be misled by.
Surfaced by the doc fact-check in #223. 555 unit (constants assertions unchanged) ·
gates green · e2e 20/20.
@heznpc heznpc enabled auto-merge (squash) June 17, 2026 09:10
@heznpc heznpc merged commit 6c013a0 into main Jun 17, 2026
9 checks passed
@heznpc heznpc deleted the fix/default-protected-terms-generics branch June 17, 2026 09:11
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.

1 participant