All Projects → pawurb → Termit

pawurb / Termit

Licence: mit
Translations with speech synthesis in your terminal as a ruby gem

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Termit

Normit
Translations with speech synthesis in your terminal as a node package
Stars: ✭ 219 (-56.63%)
Mutual labels:  terminal, translation, speech-synthesis, translations
Tty Pie
Draw pie charts in your terminal window
Stars: ✭ 125 (-75.25%)
Mutual labels:  terminal, ruby-gem
Tty Pager
Terminal output paging - cross-platform, major ruby interpreters
Stars: ✭ 37 (-92.67%)
Mutual labels:  terminal, ruby-gem
Tty
Toolkit for developing sleek command line apps.
Stars: ✭ 2,329 (+361.19%)
Mutual labels:  terminal, ruby-gem
Talkr
Talkr is a super small i18n provider for React applications. It supports Typescript, has 0 dependencies, and is very easy to use.
Stars: ✭ 129 (-74.46%)
Mutual labels:  translation, translations
Lingvo
Lingvo
Stars: ✭ 2,361 (+367.52%)
Mutual labels:  translation, speech-synthesis
Tty Prompt
A beautiful and powerful interactive command line prompt
Stars: ✭ 1,210 (+139.6%)
Mutual labels:  terminal, ruby-gem
pomodoro-tracker-locales
Language files
Stars: ✭ 23 (-95.45%)
Mutual labels:  translations, translation
tarjama
This package allows you to translate your models fields. `2.0` version will be continued here: https://github.com/fevrok/laravel-translatable
Stars: ✭ 2 (-99.6%)
Mutual labels:  translations, translation
mobility-actiontext
Translate Rails Action Text rich text with Mobility.
Stars: ✭ 27 (-94.65%)
Mutual labels:  ruby-gem, translation
Django Translations
Django model translation for perfectionists with deadlines.
Stars: ✭ 109 (-78.42%)
Mutual labels:  translation, translations
Tty Spinner
A terminal spinner for tasks that have non-deterministic time frame.
Stars: ✭ 386 (-23.56%)
Mutual labels:  terminal, ruby-gem
Eslint Plugin I18n Json
Fully extendable eslint plugin for JSON i18n translation files.
Stars: ✭ 101 (-80%)
Mutual labels:  translation, translations
Deep Translator
A flexible free and unlimited python tool to translate between different languages in a simple way using multiple translators.
Stars: ✭ 233 (-53.86%)
Mutual labels:  translation, translations
Cyrillic To Translit Js
Ultra-lightweight JavaScript library for converting Cyrillic symbols to Translit and vice versa
Stars: ✭ 91 (-81.98%)
Mutual labels:  translation, translations
Developing Ios 11 Apps With Swift
Stanford 公开课,Developing iOS 11 Apps with Swift 字幕翻译
Stars: ✭ 1,237 (+144.95%)
Mutual labels:  translation, translations
Translations
🐼 Chinese translations for classic IT resources
Stars: ✭ 6,074 (+1102.77%)
Mutual labels:  translation, translations
Laravel Translatable
It's a Laravel database translations manager
Stars: ✭ 47 (-90.69%)
Mutual labels:  translation, translations
deepl-api-connector
Connector library for deepl.com rest translation api
Stars: ✭ 12 (-97.62%)
Mutual labels:  translations, translation
Mojito
An automation platform that enables continuous localization.
Stars: ✭ 256 (-49.31%)
Mutual labels:  translation, translations

Termit Build Status Gem Version Coverage Status

Termit is an easy way to translate stuff in your terminal. You can check out its node.js npm version normit.

Installation

gem install termit

Usage

termit 'source_language' 'target_language' 'text'

Example:

termit en es "hey cowboy where is your horse?"
=> "Hey vaquero dónde está tu caballo?"

termit fr en "qui est votre papa?"
=> "Who's Your Daddy?"

Quotation marks are not necessary for text data input:

termit fr ru qui est votre papa
=> "Кто твой папочка?"

Speech synthesis

Specify a -t (talk) flag to use speech synthesis (requires mpg123):

termit en fr "hey cowboy where is your horse?" -t
=> "Hey cowboy où est votre cheval ?" # and a french voice says something about a horse

You can use termit as a speech synthesizer of any supported language without having to translate anything:

termit en en "hold your horses cowboy !" -t
=> "hold your horses cowboy !" # and an english voice asks you to hold on

Learning language when committing to git

Idea by Nedomas. See and hear your messages translated to target lang every time you commit. You can do this two ways: overriding the git command, and using a post-commit hook in git.

Override the git command (zsh only)

In ~/.zshrc

export LANG=es
git(){[[ "//./} -t;command git [email protected]}

I am no shell ninja so if you know how to make it work in bash then please submit a PR.

Using a post-commit hook

Add a file named post-commit to your project's .git/hooks directory, with this in it:

termit en es "`git log -1 --pretty=format:'%s'`" -t

Remember to switch the languages according to your preference.

If you want this to be in every one of your git repositories, see this Stack Overflow answer.

Language codes:

To find all available language codes visit https://msdn.microsoft.com/en-us/library/hh456380.aspx

Requirements

Works with Ruby 1.9.2 and higher.

To use speech synthesis you need to have mpg123 installed.

For Ubuntu:

sudo apt-get install mpg123

For MacOSX:

brew install mpg123

Status

It was rewritten to work with Bing Translator . Thanks to Ragnarson for supporting it !

Disclaimer

Termit works by scraping the private APIs and is therefore not recommended for use in production or on a large scale.

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].