CLI tool for Mirai Translate (trial), which provides a customizable translation solution.
Use the package manager yarn or npm.
$ sudo yarn global add mirai-t
$ sudo npm install -g mirai-t
$ mirai-t -s English -t Japanese This is the test.
これがテストです。
You can also use ISO 639-1.
$ mirai-t -s en -t ja This is the test.
これがテストです。
$ mirai-t -i
This mode is provided by inquirer.js
. You can input the multiple lines with the editor.
This tool scrapes this page (Currently, the Japanese version of the page is targeted.) directly to get the data. When using this tool, be careful not to overload the website with excessive access.
I am not responsible for compensating users for any damages they incur from using this tool or for any problems that arise between users using this tool.
Please check the Terms of Use
(Even though the URL contains en
, the pdf is written in Japanese. 🤔)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.