0.1.1 • Published 4 years ago

magic-markdown-translator v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Markdow Translator

Quickstart

npx magic-markdown-translator -g 'any_mardown_file.md' -t browser

# To open translated file after translation pass -a 
npx magic-markdown-translator -g 'any_mardown_file.md' -t browser -a

# Or you can use glob pattern (will match all md files in test folder recursively)
npx magic-markdown-translator -g 'test/**/*.md' -t browser

# Using Google Translate API
# To get token.json go to https://cloud.google.com/translate/docs/basic/setup-basic
GOOGLE_APPLICATION_CREDENTIALS=token.json npx magic-markdown-translator -g 'any_mardown_file.md' --locale='ru-RU' -t google