Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saleh7/twittergoogletranslate

Translate Tweets By Google
https://github.com/saleh7/twittergoogletranslate

google greasemonkey script tampermonkey translate tweets userjs

Last synced: 1 day ago
JSON representation

Translate Tweets By Google

Awesome Lists containing this project

README

        

TwitterGoogleTranslate
=========

Translate Tweets By Google | Script Greasemonkey/Tampermonkey

## Example

#### Example: Translate to English ..

![Example to en](https://raw.githubusercontent.com/Saleh7/TwitterGoogleTranslate/master/exampleToAr.gif)

#### Example: Translate to Arabic ..

![Example to ar](https://raw.githubusercontent.com/Saleh7/TwitterGoogleTranslate/master/exampleToEn.gif)

## Installation

Before you can install any of these scripts, you must first install a user script manager for your browser; [GreaseMonkey for firefox](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/) or [Tampermonkey for Chrome](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo).
There are also user script managers for other browsers.
See the [Greasy Fork's page on user script installations](https://greasyfork.org/en/help/installing-user-scripts) for more details.

---------
#### Install the Userscript in [TwitterGoogleTranslate.js](https://github.com/Saleh7/TwitterGoogleTranslate/raw/master/TwitterGoogleTranslate.user.js)

## edit file

change the "ENTER-YOUR-API-KEY-HERE" for your api key (Google Translate)

change the "en" for your language

```js
var direction = 'ltr'; // ltr|rtl
var textalign = 'left'; // left|right|center
var apiKey = "ENTER-YOUR-API-KEY-HERE"; // YOUR-API-KEY-HERE
var langSource = ""; // Detect language automatically
var langTarget = "en"; // The language Google will translate the text in.

```