Commit graph

3 commits

Author SHA1 Message Date
bal-spec
d5b65c37a2 feat(i18n): add French locale, fix extraction script template generation
Add complete French (fr-fr) locale with all 420 translatable strings.
Fix extract-strings.js --missing-json to output all keys when no --locale
is specified, instead of only keys missing from zh-tw.json.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 08:51:01 -07:00
bal-spec
44a2bebfde feat(i18n): add translator credit metadata to locale files
Add _translator, _language, _last_updated metadata keys to zh-tw.json
to credit Minijinai75. Document the convention in translating.md and
update extract-strings.js to skip _ prefixed keys in orphan detection.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 08:21:49 -07:00
bal-spec
728a82c35f docs: add translation guide and string extraction script
- docs/translating.md: contributor guide covering locale file format,
  interpolation placeholders, pluralization, the extraction script,
  ST's built-in missing-translation tracker, and priority order
- scripts/extract-strings.js: scans source files for data-i18n attrs
  and t tag usages, compares against a locale file, reports missing
  and orphaned keys. Supports --missing-json for template generation.

Current coverage: 243/420 strings (58%) for zh-tw.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 08:13:40 -07:00