- To translate a index.md file from English to Japanese with hugo header.
mdt --path index.md
- To translate a index.md file from English to Japanese without hugo header (pure markdown file)
mdt --path index.md --no-hugo
- To translate a index.md file from English to Chinese
mdt --path index.md --from en --to zh
- To translate a index.md file from English to Japanese using DeepL API Free
export DEEPL_API_KEY=<YourDeepLAPIKey>
mdt --path index.md --deepl-free
You can generate a DeepL API key from this page.
The language specification method is the same when using Amazon Translate.
- To translate a index.md file from English to Japanese using DeepL API Pro
export DEEPL_API_KEY=<YourDeepLAPIKey>
mdt --path index.md --deepl-pro
- To translate a index.md file from English to Japanese using Claude v2
mdt --path index.md --claude
- To translate all .md files in folder samples recursively from English to Japanese
mdt -r --path samples
- To translate a file and output to a designated folder (name: translated) from English to Chinese
mkdir translated
mdt --path index.md --from en --to zh --output translated