Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coc1961/gotranslate
Translate the source code comments of go project to the specified language
https://github.com/coc1961/gotranslate
go source-code translation
Last synced: about 1 month ago
JSON representation
Translate the source code comments of go project to the specified language
- Host: GitHub
- URL: https://github.com/coc1961/gotranslate
- Owner: coc1961
- Created: 2020-01-28T23:56:54.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-13T00:07:34.000Z (almost 5 years ago)
- Last Synced: 2024-06-20T09:21:30.128Z (6 months ago)
- Topics: go, source-code, translation
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gotranslate
> Translate the source code comments of go project to the specified language
## install
```sh
go get -u github.com/coc1961/gotranslate/...
```## Help
```sh
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 zuTranslate 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```sh
gotranslate -i /home/user/go/src/github.com/testproject -o /tmp/testproyect -s en -l ja
```