docs(vi): sync 06-hooks README with English source (#236)

## Description
Bring `vi/06-hooks/README.md` to parity with the English source. The vi
file covered a condensed older version (898 vs 1688 lines).

## Type of Change
- [ ] New example or template
- [x] Documentation improvement
- [ ] Bug fix
- [ ] Feature guide
- [ ] Other (please describe)

## Related Issues
N/A

## Changes Made
- Add missing sections: Narrowing with `if` conditions,
PreModelSwitch/PostModelSwitch, security notes, Complete Configuration
Example, Hook Execution Details, Troubleshooting, Examples 6–8
- Update outdated content (event table order, PreToolUse decisions,
Notification matchers, env vars, output limits) through v2.1.316
- Keep existing faithful translations untouched

## What to Review
New sections and the event/field tables. The file keeps its existing
bilingual heading style ("Tiếng Việt / English").

## Files Changed
- `vi/06-hooks/README.md`
- `vi/TRANSLATION_QUEUE.md` (translation dates for the files above)

## Testing
- [ ] Tested locally with Claude Code
- [ ] Verified examples work
- [x] Checked links and references
- [x] Reviewed for typos and clarity

Every translated file mirrors its English source line for line
(headings, code fences, tables). `check_cross_references.py --lang vi`,
`check_markdown_rendering.py`, `check_mermaid.py --strict` (Pele) and
markdownlint pass on the changed files.

## Checklist
- [x] Follows project structure and conventions
- [x] Includes clear documentation/examples
- [x] Code/examples are copy-paste ready
- [x] All links are verified and working
- [x] No sensitive information included (keys, tokens, credentials)
- [ ] Updated relevant README files
- [x] Commit message follows conventional commit format
- [x] No large files (>1MB) added

## Breaking Changes
- [x] No breaking changes

## Additional Notes
Part of a 5-PR series bringing `vi/` to parity with the English sources
at v2.1.316. The PRs merge cleanly in any order; suggested order is
09-advanced-features → 07/10 → 04/05, because 10-cli links to new 09
anchors and 04-subagents links to the new Agent View section in 10-cli.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
Nguyễn Văn Nam authored and GitHub committed 2026-11-12 11:10:25 +01:00
1 parent d49bd7c931
commit 8de1820f66
2 files changed
+837 -47

No files matched your search

+836 -46
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -136,7 +136,7 @@ Skills có cấu trúc nested directories với subdirectories.
| File | Trạng thái | Dịch bởi | Ngày dịch | Notes |
|------|------------|----------|-----------|-------|
| `06-hooks/README.md` | ✅ Done | Claude | 2026-04-03 | Hooks overview |
| `06-hooks/README.md` | ✅ Done | Claude | 2026-11-03 | Hooks overview |
| `06-hooks/format-code.sh` | ✅ Done | Claude | 2026-04-03 | Auto-format hook |
| `06-hooks/log-bash.sh` | ✅ Done | Claude | 2026-04-03 | Bash logging hook |
| `06-hooks/notify-team.sh` | ✅ Done | Claude | 2026-04-03 | Team notifications |