From 78e0c2387a95a135ce4757d7c6cbada19258e911 Mon Sep 17 00:00:00 2001 From: Stephan Akkerman <45365128+StephanAkkerman@users.noreply.github.com> Date: Fri, 1 Nov 2024 12:12:30 +0100 Subject: [PATCH] Update constants.py --- googletrans/constants.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/googletrans/constants.py b/googletrans/constants.py index b762a3b..23b1564 100644 --- a/googletrans/constants.py +++ b/googletrans/constants.py @@ -1,7 +1,7 @@ DEFAULT_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)' DEFAULT_CLIENT_SERVICE_URLS = ( - 'translate.google.com', + 'translate.googleapis.com', ) DEFAULT_SERVICE_URLS = ('translate.google.ac', 'translate.google.ad', 'translate.google.ae', @@ -117,8 +117,8 @@ "cha": "chamorro", "che": "chechen", "zh": "chinese", - "zh-CN": "chinese (simplified)", - "zh-TW": "chinese (traditional)", + "zh-cn": "chinese (simplified)", + "zh-tw": "chinese (traditional)", "chk": "chuukese", "chv": "chuvash", "co": "corsican", @@ -126,7 +126,7 @@ "hr": "croatian", "cs": "czech", "da": "danish", - "fa-AF": "dari", + "fa-af": "dari", "dv": "dhivehi", "din": "dinka", "doi": "dogri", @@ -213,7 +213,7 @@ "mak": "makassar", "mg": "malagasy", "ms": "malay", - "ms-Arab": "malay (jawi)", + "ms-arab": "malay (jawi)", "ml": "malayalam", "mt": "maltese", "mam": "mam", @@ -224,17 +224,17 @@ "mwr": "marwadi", "mfe": "mauritian creole", "mhr": "meadow mari", - "mni-Mtei": "meiteilon (manipuri)", + "mni-mtei": "meiteilon (manipuri)", "min": "minang", "lus": "mizo", "mn": "mongolian", "my": "myanmar (burmese)", "nhe": "nahuatl (eastern huasteca)", - "ndc-ZW": "ndau", + "ndc-zw": "ndau", "nde": "ndebele (south)", "new": "nepalbhasa (newari)", "ne": "nepali", - #'bm-Nkoo': 'nko', + #'bm-nkoo': 'nko', "no": "norwegian", "nus": "nuer", "ny": "nyanja (chichewa)", @@ -250,7 +250,7 @@ "por": "portuguese (portugal)", "pt": "portuguese (portugal, brazil)", "pa": "punjabi", - "pa-Arab": "punjabi (shahmukhi)", + "pa-arab": "punjabi (shahmukhi)", "kek": "q'eqchi'", "qu": "quechua", "rom": "romani", @@ -285,7 +285,7 @@ "tl": "tagalog (filipino)", "tah": "tahitian", "tg": "tajik", - "ber-Latn": "tamazight", + "ber-atn": "tamazight", "ber": "tamazight (tifinagh)", "ta": "tamil", "tt": "tatar",