Fekide / strapi-plugin-translate

Strapi plugin for automated translations using different Translate Providers
https://market.strapi.io/plugins/strapi-plugin-translate
MIT License
46 stars 18 forks source link

feat(provider-deepl): support Arabic #409

Open bhavesh-chaudhari opened 3 weeks ago

bhavesh-chaudhari commented 3 weeks ago

Description:

DeepL has added support for AR(Arabic) locale. I wanted to use this locale in my cms for localization but the translate plugin was throwing the error unsupported locale. This PR intends to add support for the same.

Source: https://www.deepl.com/en/blog/deepl-welcomes-arabic https://developers.deepl.com/docs/resources/supported-languages

sargreal commented 3 weeks ago

Hi @bhavesh-chaudhari and thank you for your merge request!

I have one point, that is missing right now:

The different arabic variants for Uzbek (UZ-ARAB, UZ-ARAB-AF) and Punjabi (PA-ARAB, PA-ARAB-PK) are throwing errors in the tests. I believe these variant require extra care in the switch/case statement, similar to EN-GB or EN-US