Reformatted the list of supported languages

This commit is contained in:
Virgil Dupras
2014-06-02 12:48:23 -04:00
parent fa93e45ce5
commit a52b9b7ad5

View File

@@ -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::