Giter Site home page Giter Site logo

transaltemycode's Introduction

Translate My Code v0.1

Did you know that EcmaScript languages(JavaScript and ActionScript for example) support unicode variable, function and class names? Now nothing stops you from writing all your variables names in Korean, function names in Chinese and Class names in Russian.

But what if you already have a huge project that you want to convert to different language? Fear not my friend, as this Python script will let you translate your code using Google Translate into any language or even multiple languages at once!

Setup

Requires Python 3

Required modules:

  • futures 2.1.6
  • goslate 1.1.2
  • regex 2014.02.19

Quick Setup

  1. Get Python 3
  2. (Optionally) Install virtualenv - http://www.virtualenv.org/
  3. Install all required modules from requirements.txt using pip install -r requirements.txt

Usage

  • py -3 translatemycode.py fileWithCode.as otherFileWithCode.js -l language
  • Don't specify -l to use random language for each word.

Helping develop this script

Pull requests are welcomed, as long as variable names are not in English.

transaltemycode's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.