BlackbitDigitalCommerce / pimcore-data-director

Import Bundle for Pimcore
16 stars 3 forks source link

Portuguese deepL translation don't work #95

Closed ascheider closed 1 year ago

ascheider commented 1 year ago

The language 'pt' is deprecated in deepL. Pt-pt or pt-br should be used instead. We changed pimcore localization from pt to pt_PT image If we try to translate the field with deepL we get following exception: image It seems that pt_pt is passed to the DeepL.php file and the locale is converted to pt with default case from this switch case: image If i change it to this, it works fine: image

BlackbitDevs commented 1 year ago

Oh, Pimcore locales are with underscore while DeepL wants them with a dash. Is fixed in 3.3.13.