# Yandex Translation Service

**URL:** https://meta.discourse.org/t/yandex-translation-service/137527
**Category:** Support
**Tags:** translator
**Created:** [January 2, 2020, 3:06am UTC](https://meta.discourse.org/t/yandex-translation-service/137527 "2020-01-02T03:06:24Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)
#### Post date: [January 2, 2020, 3:06am UTC](https://meta.discourse.org/t/yandex-translation-service/137527/1 "2020-01-02T03:06:24Z")

</div>

Hi,

At the moment, only Microsoft and Google services are supported on the plugin, which both are paid services. However, Yandex provides a free translation API, which could be really useful used in Discourse forums.

I started modifying the plugin to add its support, but I am stuck here:

[https://github.com/barreeeiroo/discourse-translator/commit/3ef433473a7314b580a63fc8c8794e219899ddc4](https://github.com/barreeeiroo/discourse-translator/commit/3ef433473a7314b580a63fc8c8794e219899ddc4)

Any idea of what am I missing? The translation button does not appear in posts.  
_Tested a post in Spanish, with both Discourse and Profile locale in English_

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 2, 2020, 4:24am UTC](https://meta.discourse.org/t/yandex-translation-service/137527/2 "2020-01-02T04:24:17Z")

</div>

naive guess, but maybe you did not enable the plugin in side settings? maybe there is a hardcoded check for either google or ms keys?

---

<div class="post-metadata">

### Author: ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)
#### Post date: [January 2, 2020, 12:49pm UTC](https://meta.discourse.org/t/yandex-translation-service/137527/4 "2020-01-02T12:49:58Z")

</div>

> [@sam](#):
>
> maybe you did not enable the plugin in side settings?

Yeah, I did  
And also inputted my Yandex API Key

> [@sam](#):
>
> hardcoded check for either google or ms keys?

I searched for Microsoft and Google references in the plugin, and I think I’ve already modified all of them

* * *

BTW, is there a way to print to the console from a plugin? 😅  
I would like to check which piece of code gets executed

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [January 2, 2020, 12:59pm UTC](https://meta.discourse.org/t/yandex-translation-service/137527/5 "2020-01-02T12:59:56Z")

</div>

> [@barreeeiroo](#):
>
> BTW, is there a way to print to the console from a plugin?

In development, you can use `puts` to print to your console

If you want to print something to `/logs`, then

```plaintext
Rails.logger.warn("Message to log")

```

---

<div class="post-metadata">

### Author: ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)
#### Post date: [January 2, 2020, 4:04pm UTC](https://meta.discourse.org/t/yandex-translation-service/137527/6 "2020-01-02T16:04:06Z")

</div>

Well, after so much trial and error… 😄

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/a/5a0dd93c311369ce6639ae2bd22228397d3cb4cb.png)

I got it working!  
Will submit a PR after polishing the last details

[https://github.com/discourse/discourse-translator/pull/27](https://github.com/discourse/discourse-translator/pull/27)

---

<div class="post-metadata">

### Author: ![ashledombos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ashledombos/32/114818_2.png) [@ashledombos](https://meta.discourse.org/u/ashledombos)
#### Post date: [January 27, 2020, 7:12am UTC](https://meta.discourse.org/t/yandex-translation-service/137527/7 "2020-01-27T07:12:56Z")

</div>

Hello,

Thanks for this contribution 🙂

Just a question, it’s marked as merged, but the [doc](https://meta.discourse.org/t/discourse-translator/32630) does not mention it, what is the current status of Yandex translator in the T++ plugin?

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 11, 2023, 6:00pm UTC](https://meta.discourse.org/t/yandex-translation-service/137527/8 "2023-12-11T18:00:18Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [December 11, 2023, 9:26pm UTC](https://meta.discourse.org/t/yandex-translation-service/137527/9 "2023-12-11T21:26:13Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [December 11, 2023, 9:28pm UTC](https://meta.discourse.org/t/yandex-translation-service/137527/10 "2023-12-11T21:28:09Z")

</div>

Just to round this out, I believe Yandex is currently one of the supported services:

> [@Discourse Translator](https://meta.discourse.org/t/discourse-translator/32630/1):
>
> #### Translation Services Supported
> 
> - [Microsoft Translator](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/translator-info-overview)
> - [Google Translate](https://cloud.google.com/translate/)
> - [AWS Translate](https://aws.amazon.com/translate/)
> - [Yandex Translate](https://translate.yandex.com/)
> - [LibreTranslate](https://github.com/LibreTranslate/LibreTranslate).
> - Links to project repo. Also see their [Community support](https://community.libretranslate.com/)
