Skip to content

Commit

Permalink
fix(machinery): support formality for pt, not only for pt-pt
Browse files Browse the repository at this point in the history
The aliases do not work across variants, so they need to be expanded
manually.

Fixes #12336
  • Loading branch information
nijel committed Aug 26, 2024
1 parent 919fbe7 commit 768cd3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Not yet released.

* Support for using Docker network names in automatic suggestion settings.
* Fixed authentication using some third-party providers such as Azure.
* Support for formal and informal Portuguese in :ref:`mt-deepl`.

**Compatibility**

Expand Down
2 changes: 2 additions & 0 deletions weblate/machinery/deepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class DeepLTranslation(
"zh_Hans": "zh",
"zh_Hant": "", # Traditional Chinese not supported but would map to zh
"pt": "pt-pt",
"pt@formal": "pt-pt@formal",
"pt@informal": "pt-pt@informal",
}
force_uncleanup = True
hightlight_syntax = True
Expand Down

0 comments on commit 768cd3b

Please sign in to comment.