All Projects → Styx11 → whats

Styx11 / whats

Licence: MIT License
🌐 a terminal translation tool

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to whats

Deeply
PHP client for the DeepL.com translation API (unofficial)
Stars: ✭ 152 (+850%)
Mutual labels:  translation, translate
Tms
基于频道模式的团队沟通协作+轻量级任务看板,支持mardown、富文本、在线表格和思维导图的团队博文wiki,i18n国际化翻译管理的响应式web开源团队协作系统。
Stars: ✭ 232 (+1350%)
Mutual labels:  translation, translate
React Translated
A dead simple way to add complex translations (i18n) in a React (DOM/Native) project 🌎🌍🌏
Stars: ✭ 176 (+1000%)
Mutual labels:  translation, translate
Dynamictranslator
Instant translation application for windows in .NET 🎪
Stars: ✭ 131 (+718.75%)
Mutual labels:  translation, translate
yandex-translate-api
A simple REST client library for Yandex.Translate
Stars: ✭ 29 (+81.25%)
Mutual labels:  translation, translations-api
Google Translate Open Api
A free and unlimited API for Google Translate(support single text and Multi-segment text) 💵🚫
Stars: ✭ 132 (+725%)
Mutual labels:  translation, translate
Traduzir Paginas Web
Translate your page in real time using Google or Yandex.
Stars: ✭ 214 (+1237.5%)
Mutual labels:  translation, translate
React Intl Hooks
React hooks for internationalization without the hassle ⚛️🌍
Stars: ✭ 64 (+300%)
Mutual labels:  translation, translate
LMPHP
Multi-language management and support on the site.
Stars: ✭ 19 (+18.75%)
Mutual labels:  translation, translate
translate5
Translate5: Open Source Translation System (published 1st time on github at 2020-08-10)
Stars: ✭ 32 (+100%)
Mutual labels:  translations-api, translation-tool
Cyrillic To Translit Js
Ultra-lightweight JavaScript library for converting Cyrillic symbols to Translit and vice versa
Stars: ✭ 91 (+468.75%)
Mutual labels:  translation, translate
google-CommandLine-Translation-Tool
命令行翻译工具-谷歌-中英文
Stars: ✭ 22 (+37.5%)
Mutual labels:  translate, command-line-tool
Androiddeepl
Unofficial Android application of DeepL Translator
Stars: ✭ 86 (+437.5%)
Mutual labels:  translation, translate
Deepl Translator
This module provides promised methods for translating text using DeepL Translator (https://www.deepl.com/translator) undocumented API.
Stars: ✭ 145 (+806.25%)
Mutual labels:  translation, translate
Google Translate Php
🌐 Free Google Translate API PHP Package. Translates totally free of charge.
Stars: ✭ 1,131 (+6968.75%)
Mutual labels:  translation, translate
Php Google Translate Free
PHP class to use the Google Translator API for free.
Stars: ✭ 182 (+1037.5%)
Mutual labels:  translation, translate
Fluent
Fluent — planning, spec and documentation
Stars: ✭ 818 (+5012.5%)
Mutual labels:  translation, translate
Libretranslate
Free and Open Source Machine Translation API. 100% self-hosted, no limits, no ties to proprietary services. Built on top of Argos Translate.
Stars: ✭ 834 (+5112.5%)
Mutual labels:  translation, translate
Deep Translator
A flexible free and unlimited python tool to translate between different languages in a simple way using multiple translators.
Stars: ✭ 233 (+1356.25%)
Mutual labels:  translation, translate
SimpleTranslationSystem
A simple C# translation system
Stars: ✭ 14 (-12.5%)
Mutual labels:  translation, translate

whats 🔍

一个作者本人也经常用的命令行翻译工具🤓

Inspired by afc163/fanyi, but more

⭐️Features

  • 中英日文基本词语互译
  • 小语种中文翻译
  • 支持语言范围内的长句翻译
  • 文本关键字高亮
  • 中英文语音播放
  • 终端自适应的输出
  • 支持查询记录

💾Install

npm install -g what-is-x

🚨注意

💡Usage

Usage: whats <query> [options]

Options:
  -v, --vers                      output the current version
  -h, --help                      output usage information
  -f, --from        <source>      the source language to translate
  -t, --to          <target>      the target language
  -n, --normal                    normalize text color in your terminal
  -s, --say                       use default system voice and speak
  -r, --record   [limit | clear]  show the query record (limit records ouputs default: 6 or clear records)

Examples:
  $ whats love
  $ whats bonjour -f fr
  $ whats こんにちは -f ja -t en
  $ whats I love you very much
  $ whats -r clear // 清除查询记录
  $ whats -r 10    // 限制查询结果数量

🇨🇳支持语言

语言 目标语言
中文 英文、日文、韩文、法文、西班牙文、葡萄牙文、俄文、越南文、德文、阿拉伯文、印尼文、意大利文
英文 中文、日文
日文 中文、英文
韩文 中文
法文 中文
西班牙文 中文
葡萄牙文 中文
意大利文 中文
俄文 中文
越南文 中文
德文 中文
阿拉伯文 中文
印尼文 中文
意大利文 中文

🇺🇳各语言对应代码

语言 代码
中文 zh-CHS
英文 en
日文 ja
韩文 ko
法文 fr
西班牙文 es
葡萄牙文 pt
意大利文 it
俄文 ru
越南文 vi
德文 de
阿拉伯文 ar
印尼文 id

💬Notes

  1. 你的 Node 版本需 ≥ 7.6.0

  2. 本翻译工具拥有终端自适应的输出,即超过终端宽度的输出会被切分并排版, 例句的输出不会溢出终端窗口。一般情况下想要看到全部的例句建议的终端窗口大小最少为 73 * 25

  3. 不要混用全角和半角符号,这会让程序难以判断句子的切分位置从而导致排版畸形的输出结果

  4. 测试版本目前支持基本词语的互译、小语种中文翻译、长句子翻译(中文字符数 > 4 将被视为句子)

  5. 输出结果的文本颜色可能会因你的终端主题而有较大差异, 想要消除颜色带来的影响(无颜色输出)可以使用 -n--normal 命令。 例如:

    $ whats up --normal
    
  6. 中英文互译外所有语言的翻译必须使用 -f--from 标识源语言

  7. 在支持语言范围内,若无 -t--to 命令标识,目标语言默认为中文

  8. 使用语音播放 -s--say 时,可能会存在系统层次的问题,具体参考👉say.js

🚨关于 v0.4.6 及以上版本说明

由于 MacOS 自 10.11 系统开始使用了 Rootless 机制,系统默认将会锁定 /system、/bin、/usr 这三个目录, 因此全局环境下无法获取数据库读写权限,需要在终端输入如下命令:

sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}

📄License

MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].