localization
Audit localization catalogs, add languages, or translate application strings. Use when checking unused or missing translations, package.nls or l10n parity, placeholders, or translation quality.
- License 许可
- AGPL-3.0
- 所属仓库
- sergehas/ganttee
- 最近更新
- 2026-11-08
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- localization
- description
- Audit localization catalogs, add languages, or translate application strings. Use when checking unused or missing translations, package.nls or l10n parity, placeholders, or translation quality.
02 资源文件 3
- 参考文档dynamic-keys.json744 B
- 脚本scripts/check-localization.mjs33.8 KB
- 脚本scripts/check-localization.test.mjs21.5 KB
03 SKILL.md 正文
Localization
Audit
- Read the current source and catalog changes. When another session edits these files, keep findings provisional and coordinate before changing overlapping files.
- Run
npm run check:l10n(the audit; also part ofcompileand CI). - Resolve every error using its source location. Manifest keys belong to
package.nls.json; runtime and webview keys belong tol10n/bundle.l10n.json. Each localized catalog must have exactly its reference's keys. Reference values are English, not replacement translations. - Prove usage at a production consumer. Tests, comments, an unrelated matching literal, and broadcasting an entire catalog do not establish usage. The script traces const registries, function returns, parameter call sites, and object literals typed by a declared property; mutation, spreads, and escaped functions stay unresolved. Unresolved calls are errors: first extend the resolver. Only for values that are truly computed at runtime (library callbacks, file-name derivation), add an entry with the exact argument text, a reason, and every possible key to dynamic-keys.json. Entries that no longer match an unresolved call fail as stale.
- Review unchanged-English warnings in context. Some are correct, including product names, OK, and image format names. A passing audit establishes structural correctness, not language quality.
Completion: no audit errors remain and every warning has been reviewed.
Translate
-
Establish the exact target locale, including regional variants. Create both families:
package.nls.<locale>.jsonandl10n/bundle.l10n.<locale>.json, with the lowercase VS Code locale id (pt-br,pt-pt). VS Code loads the runtime bundle by exact name with no fallback to the base language, so a regional variant needs its own runtime file. -
Read each English entry with its actual host/webview context. Distinguish labels, buttons, tooltips, validation messages, and diagnostic sentence fragments. Preserve the domain meanings of task, group, milestone, dependency, start, end, and duration throughout a locale.
-
Translate from English. Consult French for established terminology and especially as guidance for Italian, Spanish, and Portuguese. Prefer natural target-language phrasing over copying French syntax. Keep European and Brazilian Portuguese distinct.
-
Use familiar application wording rather than inventive synonyms. These are contextual defaults, not automatic substitutions. Prefer established, consistent application terminology when the action has a more specific meaning.
-
Preserve placeholder identifiers and counts, significant spaces in sentence fragments, line breaks, technical identifiers, and product names. Use proper diacritics and native capitalization. Keep the grammatical role of fragments correct when interpolated together.
-
Review every added or changed entry for completeness, idiomatic wording, consistent terminology, and fit for its UI role. Review entries equal to English individually; change them only when their meaning requires translation. Identify uncertain language choices explicitly rather than claiming native-speaker review or substituting untranslated English.
-
Format every touched file using the repository formatter configuration. Run the audit, then the application tests under
src/test/that import each changed runtime module. For new locales, verify the packaging file list includes both catalog families.
Completion: exact key parity and placeholders pass, every translation has received contextual review, and any remaining linguistic limitations are reported.
04 同仓库更多 Skills
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
wait-what
Stop. That last message did not land: re-pitch it.
ux-css-layout
VS Code (and so Ganttee) CSS conventions, file organization, class naming, standard sizes, scrollable content, responsive layout, and text overflow/ellipsis patterns. Use when writing CSS, building layouts, or fixing text truncation issues.
to-questionnaire
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
tdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
spec-router
Detect which spec-lifecycle agent a request needs (drafting, reviewing, implementing, or test planning a feature spec) and suggest the handoff — never acts without confirmation. Use whenever a message mentions a spec/feature-spec file, a roadmap status, or spec review/implementation/ draft/test-plan intent, even without an explicit @agent mention.