Support chinese zh-hans and zh-hant

Created on 25 October 2024, 21 days ago

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()

Feature request
Status

Active

Version

2.2

Component

Code

Created by

🇫🇷France cyrille.miskiewicz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024