Auto-translation fails for Belarusian locale “bel”: target language error
-
Hello,
I’m reporting an issue with Loco Translate when using the official Belarusian WordPress locale “bel” (https://translate.wordpress.org/locale/bel/).When I try automatic translation (Microsoft Translator or OpenAI), Loco shows the error:
“The target language is not valid.” or\and “FAILED”
The request is never sent to the API.
Reason:
WordPress uses locale “bel”, but external providers expect ISO 639-1 code “be”. Loco validates the locale before sending, rejects “bel”, and blocks translation for Belarusian completely.Because of this, Belarusian users cannot use automatic translation at all.
Could you please consider one of the following:
– map “bel” → “be” when sending to providers
– or provide a filter to override target language
– or allow custom ISO code for custom languagesThank you.
You must be logged in to reply to this topic.