Commit 6c013a0
authored
fix(i18n): drop generic concept words from DEFAULT_PROTECTED_TERMS fallback (#224)
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.1 parent cb1fd0f commit 6c013a0
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
0 commit comments