Coder Social home page Coder Social logo

naskio / po-auto-translation Goto Github PK

View Code? Open in Web Editor NEW
40.0 2.0 7.0 6 KB

translate PO files automatically for FREE using google translate

Home Page: https://github.com/naskio/po-auto-translation

JavaScript 100.00%
google translate i18n po automation free google-translate google-sheets internalization multilanguage

po-auto-translation's Introduction

po-auto-translation

Process to translate PO files automatically for FREE using Google Translate, the script is written using JavaScript

Requirements

  • Node.js (10+)

Steps

  1. Clone this repository

    git clone [email protected]:naskio/po-auto-translation.git
  2. Install dependencies

    yarn install 
    # or
    npm install
  3. Convert your PO file into CSV using the following command

    node index.js untranslated_XX.po > untranslated_XX.csv
  4. Upload untranslated_XX.csv to Google Sheet

  5. Use the formula

    =GOOGLETRANSLATE(A2;"en";"ar")
    
  6. Convert the translated columns to text using Copy the column then paste values only

  7. Export file to CSV translated_XX.csv (download CSV)

  8. Convert the CSV file to PO file using the following command

    node index.js untranslated_XX.po translated_XX.csv > translated_XX.po

po-auto-translation's People

Contributors

naskio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

po-auto-translation's Issues

Only a comment :)

Well, this repo is not so user-friendly, the kind of code that we look and think, what kind of shit is that?... But helps a lot. Thank you for the bit of code bro, and also for the mini tutorial in the readme.md that saved my time.
God bless you.

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.