digitalpulsebe / craft-multi-translator

Translate Entry content using external services
Other
0 stars 1 forks source link

Error with Portuguese language #2

Closed tigerchick closed 6 months ago

tigerchick commented 6 months ago

Whenever I try to translate to Portuguese I get the following error:

targetLang="pt" is deprecated, please use "pt-PT" or "pt-BR" instead

In the language setting of the site I have tried selecting "Portuguese", "Portuguese (Portugal)" and "Portuguese (Brazil)" but it makes no difference. I suspect this may be a problem with the way the language code is in Craft's core but thought I'd check here first.

JodebaDigitalPulse commented 6 months ago

Hi @tigerchick, are you using Google or Deepl as a translation service?

tigerchick commented 6 months ago

Hi, it's Deepl

JodebaDigitalPulse commented 6 months ago

I provided a fix in 1.5.1 Thank you for pointing out!