Как настроить перевод текста в WPGrabber с помощью Облака Яндекс Yandex Translate?
В связи с тем что Яндекс закрыл бесплатные API-ключи Яндекс — перевода, мы разработали новую функцию перевода текста внедренную в плагин WPGrabber:
Заполняем данные аккаунта с привязкой платежной карты:
Получите OAuth-токен в сервисе Яндекс.OAuth. Для этого перейдите по ссылке, нажмите Разрешить и скопируйте полученный OAuth-токен.
Получите идентификатор любого каталога, на который у вашего аккаунта есть роль editor или выше.
В настройках WPGrabber заполняем OAuth-токен Яндекс и Идентификатор каталога
У метода translate Яндекс.Облако существует ограничение на длину текста: 10 000 символов.
То есть, при переводе текста большего размера получаем:
Ошибка первого перевода текста. Ошибочный ответ сервер Яндекс.Перевод: 400
Чтобы это обойти, делаем проверку на длину теста и разбиваем его по ближайшему символу >.
Заказ лент WPGrabber:
Email: [email protected]
Telegram: @WPGrabber
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |