localize-video
Skill8 starsChanged 4 months agoMITView on GitHub
Make an English (or Japanese, Korean, Thai, Chinese, Indonesian, French, Spanish, German…) version of a video the kit already scripted — extracts every spoken and on-screen string with the character limit of its slot, translates them, refuses anything untranslated or too long for its frame, switches the voice to that language (Google Cloud TTS, Azure Speech or ElevenLabs), and renders the new version into its own folder. Use when the user says "làm bản tiếng Anh", "dịch video sang tiếng Anh", "video cho khách nước ngoài", "lồng tiếng Anh", "bản quốc tế", "translate this video", "English version", "localize".
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- clueso-ai/skillstheir own version, first seen Jul 9, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- clueso-ai/skills★ 26same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ads-comment-triageSkill
- ads-creative-labSkill
- ads-fatigue-watchSkill
- ads-policy-checkSkill
- ads-reportSkill
- audience-planSkill
- audit-and-fixSkill
- bootstrap-content-agentSkill
- brand-lessonsSkill
- catalog-feed-auditSkill
- competitor-analysisSkill
- crawl-and-queueSkill
- create-videoSkill
- creator-startSkill
- daily-runSkill
- daily-topic-videoSkill
- design-campaignSkill
- freshness-checkSkill
- geo-optimizeSkill
- motion-craftSkill
- new-templateSkill
- performance-reviewSkill
- promo-calendarSkill
- repurposeSkill
- research-and-captureSkill
- review-gateSkill
- story-videoSkill
- talking-head-editSkill
- topic-radarSkill
- ugc-koc-briefSkill
- video-and-postSkill
The file
Files
Bản ngôn ngữ khác của một video
Dịch là việc của agent. Phần dễ hỏng là mọi thứ xung quanh: tiêu đề dịch ra dài hơn khung và bị
cắt, một dòng quên dịch, giọng tiếng Việt đọc chữ tiếng Anh. localize.mjs lo phần đó.
Hướng dẫn từng bước cho người dùng
Chạy lệnh
node scripts/…ở thư mục gốc của kit — thư mục cóAGENTS.md, hai cấp trên file này (nếu skill được cài bằnginstall-skills.mjs --kit, đường dẫn nằm trong file.kit-rootcạnh file này).
Dẫn người dùng theo đúng các bước dưới, bằng lời đơn giản. Trước khi bắt đầu: một câu nói skill sẽ làm gì, mất khoảng 10–15 phút (phần lớn là render), cần gì (khoá giọng đọc của ngôn ngữ đích). Đầu mỗi bước báo "Bước n/N — <tên bước>" kèm một câu đang làm gì. Khi cần người dùng làm gì, chỉ hỏi đúng một việc. Kết thúc: kết quả nằm ở đâu và việc nên làm tiếp.
| Bước | Agent làm gì | Người dùng cần làm |
| 1. Chọn ngôn ngữ và giọng | Hỏi ngôn ngữ; kiểm khoá giọng bằng providers-check.mjs | Chọn ngôn ngữ; thêm GOOGLE_TTS_API_KEY hoặc AZURE_SPEECH_* nếu thiếu |
| 2. Lấy chuỗi cần dịch | localize.mjs <script.json> --to en | — |
| 3. Dịch | Điền mọi translation, giữ đúng giới hạn max | Đọc lại các câu quan trọng (tiêu đề, kêu gọi) nếu muốn |
| 4. Kiểm và ghi | --apply — báo câu quá dài, câu chưa dịch | — |
| 5. Kiểm kịch bản | validate-script.mjs <lang>/script.json --strict | — |
| 6. Render | render.mjs <lang>/script.json — vào thư mục riêng, bản gốc giữ nguyên | Xem video |
Hay vướng:
- Câu dịch dài hơn khung →
--applytừ chối; viết lại ngắn hơn, đừng xoá bớt ý quan trọng. - Tên riêng, giá, số liệu → giữ nguyên, chỉ đổi đơn vị khi người dùng yêu cầu (VND → USD là việc của họ, không tự quy đổi).
- Chưa có khoá giọng đọc của ngôn ngữ đích → OmniVoice (miễn phí) chỉ đọc tiếng Việt; nói rõ cần khoá nào.
Quy trình chi tiết (cho agent)
node scripts/video/localize.mjs brain/video-x/script.json --to en # → script.en.strings.json
# fill every "translation" (respect "max" = characters on screen; no emoji in voiceText)
node scripts/video/localize.mjs brain/video-x/script.json --to en --apply # → brain/video-x/en/script.json
node scripts/video/validate-script.mjs brain/video-x/en/script.json --strict
node scripts/video/render.mjs brain/video-x/en/script.json- Translate for the screen, not word for word. On-screen slots carry a
max; English often runs longer than Vietnamese — shorten, keep the meaning.voiceTexthas no limit but should stay about the same length so scene timing holds. - Rows inside one string (
"Lượt xem:10000|Xem hết:1200") keep theirlabel:number|…shape — translate the labels only. - Voice.
--provider google(default) orazurepicks a default voice per language (lib/localize.mjsVOICES);--voice-idpicks another;elevenlabskeeps the script's multilingual voice. Check the key withnode scripts/providers-check.mjs --live(free). - Re-running
--to enkeeps translations already written, so a script edit does not wipe work. - Fonts: templates load Latin + Vietnamese glyphs (
font-check.mjsguards the Vietnamese subset). Japanese, Korean, Chinese or Thai text may fall back to another face or render as boxes — render, then LOOK atnode scripts/video/contact-sheet.mjs <lang>/video.mp4before posting. Western languages are safe. - The published post goes through
review-gatelike any other; captions for the new audience come fromvideo-and-post.
Output
<video folder>/<lang>/script.json and, after rendering, <lang>/video.mp4 beside it. The
strings file script.<lang>.strings.json is kept so the next edit only needs the changed lines.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

