Problem/Motivation
If you install "Chinese, Simplified" language in Drupal, il uses the 'zh-hans' langcode.
"Chinese, Traditional" uses 'zh-hant'.
For the moment, the module indicates that translation in these two language codes is not supported, although the Deepl api does support them in target_lang.
https://developers.deepl.com/docs/fr/api-reference/translate/openapi-spec-for-text-translation
Proposed resolution
Update getSupportedRemoteLanguages() and getDefaultRemoteLanguagesMappings()
Issue fork tmgmt_deepl-3483438
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
steffenrAdditional info: https://www.deepl.com/en/blog/deepl-translator-now-supports-traditional-...
@cyrille.miskiewicz: Feel free to add a MR adding the new language.
Comment #5
cyrille.miskiewicz commentedPatch is working, but phpunit test fails because :
"Unable to install modules: module 'tmgmt_deepl_test' is incompatible with this version of Drupal core." (11.0.5)
Comment #6
steffenrI'll have a look on the issue. Looks like the configuration of the unit tests needs to be updated.
Comment #8
steffenr