Skip to content

Commit f631c4a

Browse files
committed
fix(machinery): update DeepL languages mapping
They now support more target languages, so remove mappings which are no longer needed.
1 parent ee2c269 commit f631c4a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/changes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Weblate 5.15
1818

1919
.. rubric:: Bug fixes
2020

21+
* :ref:`mt-deepl` integration now correctly handles translating to Chinese variants.
22+
2123
.. rubric:: Compatibility
2224

2325
* Replaced custom ``RequireLoginMiddleware`` with Django 5.1's ``LoginRequiredMiddleware``. This makes settings ``LOGIN_REQUIRED_URLS`` and ``LOGIN_REQUIRED_URLS_EXCEPTIONS`` no longer supported, including their Docker environment variable counterparts.

weblate/machinery/deepl.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ class DeepLTranslation(
4040
# better than other ones.
4141
max_score = 91
4242
language_map: ClassVar[dict[str, str]] = {
43-
"zh_Hans": "zh",
44-
"zh_Hant": "", # Traditional Chinese not supported but would map to zh
45-
"pt": "pt-pt",
4643
"pt@formal": "pt-pt@formal",
4744
"pt@informal": "pt-pt@informal",
4845
}

0 commit comments

Comments
 (0)