Translate Markdown documents to multiple languages, including mapping back to a base file (reverse translation).
This skill allows Antigravity to translate one or more Markdown files from a source language to one or more target languages while managing filenames and creating a language switcher navigation bar.
This skill is triggered when:
/trans-md command./trans-md <source-lang> <target-lang-1> [<target-lang-2> ...] [<path-to-file.md>]
<source-lang>: Source language code (e.g., vi, en).<target-lang>: Target language code (e.g., ja, en) OR the special keyword base.<path-to-file.md>: (Optional) Path to file. Defaults to if omitted.README.mdbaseThe keyword base is used to translate back to the "original" or "default" file (the one without a language suffix).
mydoc.vi.md and the target is base, the output will be mydoc.md.Argument Parsing:
base is requested, resolve the target filename by stripping the language suffix from the source filename (e.g., .vi.md -> .md).Translation:
File Writing:
ja): [Name].[code].md.base keyword: [Name].md.Language Nav (Language Switcher):
[Tiếng Việt](README.md) | [English](README.en.md) | [日本語](README.ja.md)base file and all variants are updated to include links to all currently generated versions.Internal Link Update:
.md files to point to their corresponding language versions if they exist.