1.0.8 • Published 2 years ago
@olton/translator v1.0.8
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/translatorUsing
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.