From a52b9b7ad58ada199d37f4226a2184bf84cf6795 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Mon, 2 Jun 2014 12:48:23 -0400 Subject: [PATCH] Reformatted the list of supported languages --- README.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index f5c32fd..11ab97c 100644 --- a/README.rst +++ b/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. -**lang:** The language in which to convert the number. Supported languages are ``en``, ``fr``, -``de``, ``es``, ``lt``, ``lv`` and ``en_GB``. You can supply values like ``fr_FR``, the code will be +**lang:** The language in which to convert the number. Supported values are: + +* ``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. Therefore, if you want to call ``num2words`` with a fallback, you can do::