Giter VIP home page Giter VIP logo

gotranslate's Introduction

gotranslate

Translate the source code comments of go project to the specified language

install

go get -u github.com/coc1961/gotranslate/...

Help

Valid Language:

        Afrikaans       af
        Albanian        sq
        Amharic         am
        Arabic          ar
        Armenian        hy
        Azerbaijani     az
        Basque          eu
        Belarusian      be
        Bengali         bn
        Bosnian         bs
        Bulgarian       bg
        Catalan         ca
        Cebuano         ceb 
        Chinese (Simplified)    zh-CN or zh 
        Chinese (Traditional)   zh-TW 
        Corsican        co
        Croatian        hr
        Czech           cs
        Danish          da
        Dutch           nl
        English         en
        Esperanto       eo
        Estonian        et
        Finnish         fi
        French          fr
        Frisian         fy
        Galician        gl
        Georgian        ka
        German          de
        Greek           el
        Gujarati        gu
        Haitian Creole  ht
        Hausa           ha
        Hawaiian        haw 
        Hebrew          he or iw
        Hindi           hi
        Hmong           hmn (ISO-639-2)
        Hungarian       hu
        Icelandic       is
        Igbo            ig
        Indonesian      id
        Irish           ga
        Italian         it
        Japanese        ja
        Javanese        jv
        Kannada         kn
        Kazakh          kk
        Khmer           km
        Korean          ko
        Kurdish         ku
        Kyrgyz          ky
        Lao                     lo
        Latin           la
        Latvian         lv
        Lithuanian      lt
        Luxembourgish   lb
        Macedonian      mk
        Malagasy        mg
        Malay           ms
        Malayalam       ml
        Maltese         mt
        Maori           mi
        Marathi         mr
        Mongolian       mn
        Myanmar (Burmese)       my
        Nepali          ne
        Norwegian       no
        Nyanja (Chichewa)       ny
        Pashto          ps
        Persian         fa
        Polish          pl
        Portuguese (Portugal, Brazil)   pt
        Punjabi         pa
        Romanian        ro
        Russian         ru
        Samoan          sm
        Scots Gaelic    gd
        Serbian         sr
        Sesotho         st
        Shona           sn
        Sindhi          sd
        Sinhala (Sinhalese)     si
        Slovak          sk
        Slovenian       sl
        Somali          so
        Spanish         es
        Sundanese       su
        Swahili         sw
        Swedish         sv
        Tagalog (Filipino)      tl
        Tajik           tg
        Tamil           ta
        Telugu          te
        Thai            th
        Turkish         tr
        Ukrainian       uk
        Urdu            ur
        Uzbek           uz
        Vietnamese      vi
        Welsh           cy
        Xhosa           xh
        Yiddish         yi
        Yoruba          yo
        Zulu            zu


Translate the source code comments of go project to the specified language

 
input and output source dir are mandatory
  -i string
        input source dir
  -o string
        output source dir
  -s string
        actual source code comments language, default (es) (default "es")
  -l string
        language to translate, default (en) (default "en")

Example

This example translates the source code with comments in English (-s en) to Japanese (-l ja). source code of the project in /home/user/go/src/github.com/testproject and save the result in /tmp/testproyect

gotranslate -i /home/user/go/src/github.com/testproject -o /tmp/testproyect -s en -l ja

gotranslate's People

Contributors

coc1961 avatar

Watchers

James Cloos 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.