googletrans command line interface to translate your i18n file into 106 languages
Project description
================================================================================
bendihua - 本地化 - स्थानीयकरण - локализация - Lokalisierung - Localização - localize
================================================================================
.. image:: https://travis-ci.org/chfw/bendihua.svg?branch=master
:target: http://travis-ci.org/chfw/bendihua
.. image:: https://codecov.io/gh/chfw/bendihua/branch/master/graph/badge.svg
:target: https://codecov.io/gh/chfw/bendihua
Usage
================================================================================
Given your locale as en.json::
{
"ui-button": "hello world"
}
You run: `bdh en.json -d zh-cn` and will get `output-zh-cn.json` as::
{
"ui-button": "你好,世界“
}
What you run `bdh en.json -d hi`? You will get it in `Hindi`::
{
"ui-button": "नमस्ते दुनिया"
}
And it automatically supports `aurelia-i18n <https://github.com/aurelia/i18n>`_
locale format.
Command line options
--------------------------------------------------------------------------------
::
usage: bdh [-h] [-d DEST_LANGUAGE] [-o OUTPUT] locale.json
positional arguments:
locale.json locale dictionary where keys are engineering tokens
and values are actual user interface words
optional arguments:
-h, --help show this help message and exit
-d DEST_LANGUAGE, --dest-language DEST_LANGUAGE
Destination language short code
-o OUTPUT, --output OUTPUT
select a name for the output file. if omitted, output
name is defaulted to output-{dest-language}.json
Supported languages
--------------------------------------------------------------------------------
===================== ============
language short code
===================== ============
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
chichewa ny
chinese (simplified) zh-cn
chinese (traditional) zh-tw
corsican co
croatian hr
czech cs
danish da
dutch nl
english en
esperanto eo
estonian et
filipino tl
finnish fi
french fr
frisian fy
galician gl
georgian ka
german de
greek el
gujarati gu
haitian creole ht
hausa ha
hawaiian haw
hebrew iw
hindi hi
hmong hmn
hungarian hu
icelandic is
igbo ig
indonesian id
irish ga
italian it
japanese ja
javanese jw
kannada kn
kazakh kk
khmer km
korean ko
kurdish (kurmanji) 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
pashto ps
persian fa
polish pl
portuguese pt
punjabi pa
romanian ro
russian ru
samoan sm
scots gaelic gd
serbian sr
sesotho st
shona sn
sindhi sd
sinhala si
slovak sk
slovenian sl
somali so
spanish es
sundanese su
swahili sw
swedish sv
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
===================== ============
Installation
================================================================================
You can install bendihua via pip:
.. code-block:: bash
$ pip install bendihua
or clone it and install it:
.. code-block:: bash
$ git clone https://github.com/chfw/bendihua.git
$ cd bendihua
$ python setup.py install
License
================================================================================
MIT
MIT License
Copyright (c) 2017
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Change log
===========
0.0.2 - 10.12.2017
--------------------------------------------------------------------------------
Update project name
0.0.1 - 10.12.2017
--------------------------------------------------------------------------------
Initial version. Translate your i18n locale file in many other languages
bendihua - 本地化 - स्थानीयकरण - локализация - Lokalisierung - Localização - localize
================================================================================
.. image:: https://travis-ci.org/chfw/bendihua.svg?branch=master
:target: http://travis-ci.org/chfw/bendihua
.. image:: https://codecov.io/gh/chfw/bendihua/branch/master/graph/badge.svg
:target: https://codecov.io/gh/chfw/bendihua
Usage
================================================================================
Given your locale as en.json::
{
"ui-button": "hello world"
}
You run: `bdh en.json -d zh-cn` and will get `output-zh-cn.json` as::
{
"ui-button": "你好,世界“
}
What you run `bdh en.json -d hi`? You will get it in `Hindi`::
{
"ui-button": "नमस्ते दुनिया"
}
And it automatically supports `aurelia-i18n <https://github.com/aurelia/i18n>`_
locale format.
Command line options
--------------------------------------------------------------------------------
::
usage: bdh [-h] [-d DEST_LANGUAGE] [-o OUTPUT] locale.json
positional arguments:
locale.json locale dictionary where keys are engineering tokens
and values are actual user interface words
optional arguments:
-h, --help show this help message and exit
-d DEST_LANGUAGE, --dest-language DEST_LANGUAGE
Destination language short code
-o OUTPUT, --output OUTPUT
select a name for the output file. if omitted, output
name is defaulted to output-{dest-language}.json
Supported languages
--------------------------------------------------------------------------------
===================== ============
language short code
===================== ============
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
chichewa ny
chinese (simplified) zh-cn
chinese (traditional) zh-tw
corsican co
croatian hr
czech cs
danish da
dutch nl
english en
esperanto eo
estonian et
filipino tl
finnish fi
french fr
frisian fy
galician gl
georgian ka
german de
greek el
gujarati gu
haitian creole ht
hausa ha
hawaiian haw
hebrew iw
hindi hi
hmong hmn
hungarian hu
icelandic is
igbo ig
indonesian id
irish ga
italian it
japanese ja
javanese jw
kannada kn
kazakh kk
khmer km
korean ko
kurdish (kurmanji) 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
pashto ps
persian fa
polish pl
portuguese pt
punjabi pa
romanian ro
russian ru
samoan sm
scots gaelic gd
serbian sr
sesotho st
shona sn
sindhi sd
sinhala si
slovak sk
slovenian sl
somali so
spanish es
sundanese su
swahili sw
swedish sv
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
===================== ============
Installation
================================================================================
You can install bendihua via pip:
.. code-block:: bash
$ pip install bendihua
or clone it and install it:
.. code-block:: bash
$ git clone https://github.com/chfw/bendihua.git
$ cd bendihua
$ python setup.py install
License
================================================================================
MIT
MIT License
Copyright (c) 2017
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Change log
===========
0.0.2 - 10.12.2017
--------------------------------------------------------------------------------
Update project name
0.0.1 - 10.12.2017
--------------------------------------------------------------------------------
Initial version. Translate your i18n locale file in many other languages
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bendihua-0.0.2.tar.gz
(6.8 kB
view details)
Built Distribution
File details
Details for the file bendihua-0.0.2.tar.gz
.
File metadata
- Download URL: bendihua-0.0.2.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e46880ebb86cb7f48398b4e134fafc19efe9d979d9b6ec9e4b5b15404754870e |
|
MD5 | edb6e35b52eca823b790a710bab9ea9d |
|
BLAKE2b-256 | fffb3c86617a82ccf3cb7939742f57d2cbd9e887ca266a3a42053bf88ae8e3ad |
File details
Details for the file bendihua-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: bendihua-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03ca1228a5d0c15f8b393e2ada6e3d0ba0874c1a44d8fed56c3dab157af2e077 |
|
MD5 | 9fa0ed1cc2315a782c3d6e904c57db31 |
|
BLAKE2b-256 | 1f3c2a9e3031085531364f1f8f691ebd6b3cdc1db5ba4b8d25a4b03192b87bde |