Microsoft Translator doesn’t work in the Serbian and Croatian?

Script PHP Wrapper for Microsoft Or Bing Translator when translated into Croatian (hr) and Serbian (sr-Cyrl) generates an error “400 Bad Request”:

The server returns an error:

UNEXPECTED_ERROR = “There is some un expected error . please check the code”;

This error does not occur when you use the following script.

Pay attention to the selected lines, and don’t forget to testify the Client ID and Client Secret key.