Skip to main content
================================================================================
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

Release files for bendihua 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bendihua 0.0.2
File Size Uploaded
bendihua-0.0.2.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bendihua 0.0.2
File Interpreter ABI Platform
bendihua-0.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 16.8 kB

Release files / bendihua-0.0.2.tar.gz

Download URL bendihua-0.0.2.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e46880ebb86cb7f48398b4e134fafc19efe9d979d9b6ec9e4b5b15404754870e
BLAKE2b-256 checksum
How to use checksums
fffb3c86617a82ccf3cb7939742f57d2cbd9e887ca266a3a42053bf88ae8e3ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / bendihua-0.0.2-py2.py3-none-any.whl

Download URL bendihua-0.0.2-py2.py3-none-any.whl
Size 10.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
03ca1228a5d0c15f8b393e2ada6e3d0ba0874c1a44d8fed56c3dab157af2e077
BLAKE2b-256 checksum
How to use checksums
1f3c2a9e3031085531364f1f8f691ebd6b3cdc1db5ba4b8d25a4b03192b87bde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page