feat(i18n): Add Japanese (ja/) translation (#105)
- Translate all 101 markdown files: P1 core, all 10 modules, examples, auxiliary docs (CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, CLAUDE.md, etc.), peripheral docs (.github/, docs/, resources/, scripts/) - Translate comments and user-facing messages in 06-hooks/*.sh examples - Copy 05-mcp/*.json examples (standard JSON, no comments) - Update root README.md language switcher to include 日本語 - Add ja/TRANSLATION_NOTES.md (glossary + style guide) All translations pass pre-commit quality gates (markdown-lint, cross-references, mermaid-syntax, link-check, build-epub).
This commit is contained in:
@@ -142,3 +142,44 @@ repos:
|
||||
entry: uv run scripts/build_epub.py --lang vi
|
||||
pass_filenames: false
|
||||
files: ^(vi/.*\.md|scripts/build_epub\.py)$
|
||||
|
||||
# Japanese documentation checks
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: japanese-markdown-lint
|
||||
name: japanese-markdown-lint
|
||||
language: node
|
||||
entry: markdownlint
|
||||
args: ['--ignore', 'node_modules', '--ignore', '.venv', '--config', '.markdownlint.json']
|
||||
files: ^ja/.*\.md$
|
||||
additional_dependencies: ['markdownlint-cli']
|
||||
|
||||
- id: japanese-cross-references
|
||||
name: japanese-cross-references
|
||||
language: system
|
||||
entry: python scripts/check_cross_references.py
|
||||
pass_filenames: false
|
||||
files: ^ja/.*\.md$
|
||||
|
||||
- id: japanese-mermaid
|
||||
name: japanese-mermaid-syntax
|
||||
language: system
|
||||
entry: python scripts/check_mermaid.py
|
||||
pass_filenames: false
|
||||
files: ^ja/.*\.md$
|
||||
verbose: true
|
||||
|
||||
- id: japanese-link-check
|
||||
name: japanese-link-check
|
||||
language: system
|
||||
entry: python scripts/check_links.py
|
||||
pass_filenames: false
|
||||
files: ^ja/.*\.md$
|
||||
verbose: true
|
||||
|
||||
- id: japanese-build-epub
|
||||
name: japanese-build-epub
|
||||
language: system
|
||||
entry: uv run scripts/build_epub.py --lang ja
|
||||
pass_filenames: false
|
||||
files: ^(ja/.*\.md|scripts/build_epub\.py)$
|
||||
|
||||
Reference in New Issue
Block a user