From 649ba7d828f1a5403bf04893569f509478d4b31f Mon Sep 17 00:00:00 2001 From: ssut Date: Sat, 18 Jul 2015 00:19:16 +0900 Subject: [PATCH] Add: special cases for replacing with ISO-639 table refs #2 --- googletrans/conversion.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/googletrans/conversion.py b/googletrans/conversion.py index 698159e..c7eeeec 100644 --- a/googletrans/conversion.py +++ b/googletrans/conversion.py @@ -37,6 +37,10 @@ def format_json(original): traceback.print_exc() return converted +SPECIAL_CASES = { + 'ee': 'et', +} + LANGUAGES = { 'af': 'afrikaans', 'sq': 'albanian',