bendihua 0.0.2
googletrans command line interface to translate your i18n file into 106 languages
License: MIT
Keywords: python

================================================================================
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