translate-markdown

1.1.0 • Public • Published

Translate Markdown document on Google Translate

translate-markdown is a command line tool to translate your Markdown document on Google Translate. It receives Markdown document from stdin and strips it to plain text, then open Google Translate with the plain text on a browser.

Install

$ npm install -g translate-markdown

Usage

Please see translate-markdown --help.

screen shot

$ translate-markdown [--help|--strip-only] {target lang}

    Translate Makrdown document from stdin.

Example:

    Below receive Markdown text (README.md) from stdin and open a browser to
    translate it in Google Translate.

        $ cat README.md | translate-markdown ja

    Note that there is restriction of the number of characters.

Options:

    {target lang}
        Specify target language you want to translate. For example, 'en' is for
        English and 'ja' is for Japanese. The language of markdown text is
        automatically detected.

    --strip-only
        Strip markdown to plain text only. Stripped plain text is output to
        stdout.

    --help
        Show this help.

Package Sidebar

Install

npm i translate-markdown

Weekly Downloads

3

Version

1.1.0

License

MIT

Last publish

Collaborators

  • rhysd