mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
Reformatted the list of supported languages
This commit is contained in:
13
README.rst
13
README.rst
@@ -35,8 +35,17 @@ Besides the numerical argument, there's two optional arguments.
|
|||||||
|
|
||||||
**ordinal:** A boolean flag indicating to return an ordinal number instead of a cardinal one.
|
**ordinal:** A boolean flag indicating to return an ordinal number instead of a cardinal one.
|
||||||
|
|
||||||
**lang:** The language in which to convert the number. Supported languages are ``en``, ``fr``,
|
**lang:** The language in which to convert the number. Supported values are:
|
||||||
``de``, ``es``, ``lt``, ``lv`` and ``en_GB``. You can supply values like ``fr_FR``, the code will be
|
|
||||||
|
* ``en`` (English, default)
|
||||||
|
* ``fr`` (French)
|
||||||
|
* ``de`` (German)
|
||||||
|
* ``es`` (Spanish)
|
||||||
|
* ``lt`` (Lithuanian)
|
||||||
|
* ``lv`` (Latvian)
|
||||||
|
* ``en_GB`` (British English)
|
||||||
|
|
||||||
|
You can supply values like ``fr_FR``, the code will be
|
||||||
correctly interpreted. If you supply an unsupported language, ``NotImplementedError`` is raised.
|
correctly interpreted. If you supply an unsupported language, ``NotImplementedError`` is raised.
|
||||||
Therefore, if you want to call ``num2words`` with a fallback, you can do::
|
Therefore, if you want to call ``num2words`` with a fallback, you can do::
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user