You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When origin language code is for example us and target is uk everything works fine. I get that I want. But when the origin language code is es and and target is ru I get an error:
AxiosError: Request failed with status code 400
...
code: 'ERR_BAD_REQUEST',
It means that the code works fine, but something wrong with es code at endpoint. In docs there are information that requested languages support dictionary lookup. May be anyone can try this language pair and check if it work? Any suggestions?
The text was updated successfully, but these errors were encountered:
I'm using dictionary lookup for finding alternative translations.
dictionaryLookupMS = async (data) => {
const key = "myKey";
const endpoint =
https://api.cognitive.microsofttranslator.com/dictionary/lookup?api-version=3.0&from=${data.originLanguageCode}&to=${data.translationLanguageCode}
;const location = "westeurope";
const text = data.text;
};
When origin language code is for example us and target is uk everything works fine. I get that I want. But when the origin language code is es and and target is ru I get an error:
AxiosError: Request failed with status code 400
...
code: 'ERR_BAD_REQUEST',
It means that the code works fine, but something wrong with es code at endpoint. In docs there are information that requested languages support dictionary lookup. May be anyone can try this language pair and check if it work? Any suggestions?
The text was updated successfully, but these errors were encountered: