@olton/translator

1.0.8 • Public • Published

Translator

I wrote this tool when I faced the need to translate json files that had language tags into different languages.

Install

npm i -g @olton/translator

Using

translate --apikey XXX --from en --to es --str "Hi there!"

Arguments

Use: translate [...arguments]

  • --apikey - specify the Google translation API key
  • --from - specify source language, default is en
  • --to - specify target language, default is uk
  • --str - translate string
  • --text - translate text file, specify file name with it
  • --json - translate json file, specify file name with it
  • --out - specify output file name for --json, --text inputs
  • --help - show help
  • --version - show a Translator version

Copyright 2023 by Serhii Pimenov. Licensed under MIT license.

Package Sidebar

Install

npm i @olton/translator

Weekly Downloads

0

Version

1.0.8

License

MIT

Unpacked Size

8.29 kB

Total Files

6

Last publish

Collaborators

  • olton