# Language detect issue \[missing %{language} value\]

**URL:** https://meta.discourse.org/t/language-detect-issue-missing-language-value/119589
**Category:** Support
**Tags:** translator
**Created:** [June 5, 2019, 3:47pm UTC](https://meta.discourse.org/t/language-detect-issue-missing-language-value/119589 "2019-06-05T15:47:28Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Luke\_Cheng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/luke_cheng/32/137950_2.png) [@Luke\_Cheng](https://meta.discourse.org/u/Luke_Cheng)
#### Post date: [June 5, 2019, 3:47pm UTC](https://meta.discourse.org/t/language-detect-issue-missing-language-value/119589/1 "2019-06-05T15:47:28Z")

</div>

Hi team:

Thanks for the great plugin which helps me a lot.

Recently I found there’s an issue about the language detect, the new posts always couldn’t be detected the original language.

### Message

RuntimeError (The translator is unable to translate this language.) /var/www/discourse/plugins/discourse-translator/services/discourse\_translator/google.rb:70:in `translate’

### Backtrace

/var/www/discourse/plugins/discourse-translator/services/discourse\_translator/google.rb:70:in `translate' /var/www/discourse/plugins/discourse-translator/plugin.rb:40:in `translate’

### Env

| hostname | flutter101-app |
| --- | --- |
| process\_id | 180 |
| application\_version | 9a3dd6b59af0a5fc22045f376b421cb4fd074aad |

Is there anyone who faced the same situation?  
Thanks!

---

<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: [June 6, 2019, 7:46am UTC](https://meta.discourse.org/t/language-detect-issue-missing-language-value/119589/2 "2019-06-06T07:46:03Z")

</div>

Is this 100% reproducible?

Can you paste the problem text here?

---

<div class="post-metadata">

### Author: ![Luke\_Cheng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/luke_cheng/32/137950_2.png) [@Luke\_Cheng](https://meta.discourse.org/u/Luke_Cheng)
#### Post date: [June 7, 2019, 8:52am UTC](https://meta.discourse.org/t/language-detect-issue-missing-language-value/119589/3 "2019-06-07T08:52:03Z")

</div>

thanks to Sam, for your quick reply, yes, 100% reproducible, the Chinese text is:

> 还真是，新发布的帖子调用 MS 翻译都是报错，老的就没问题，为何内。

I have recorded a screen for this, you may see from that the new text had this issue, but the former post is OK.

I am using the MS translate.

Please check it out here, thanks!

> **[discourse-plugin.mov](https://drive.google.com/file/d/1S0HpSzsJEqAJZABFGxMgWZx9YBhDs_QF/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

### Author: ![Luke\_Cheng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/luke_cheng/32/137950_2.png) [@Luke\_Cheng](https://meta.discourse.org/u/Luke_Cheng)
#### Post date: [June 7, 2019, 8:53am UTC](https://meta.discourse.org/t/language-detect-issue-missing-language-value/119589/4 "2019-06-07T08:53:00Z")

</div>

I have tried rebuild app, not working 🥺

---

<div class="post-metadata">

### Author: ![Luke\_Cheng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/luke_cheng/32/137950_2.png) [@Luke\_Cheng](https://meta.discourse.org/u/Luke_Cheng)
#### Post date: [June 11, 2019, 5:59pm UTC](https://meta.discourse.org/t/language-detect-issue-missing-language-value/119589/5 "2019-06-11T17:59:24Z")

</div>

Today I’ve upgraded to the lastest version and stil not work, FYI, thanks 😅

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [August 6, 2019, 7:12am UTC](https://meta.discourse.org/t/language-detect-issue-missing-language-value/119589/7 "2019-08-06T07:12:46Z")

</div>

@Luke_Cheng Can you try upgrading to the latest? @pmusaraj might have fixed it in

[https://github.com/discourse/discourse-translator/commit/fb77ef1b5186e80f1d91ca8d4923f19e933dddba](https://github.com/discourse/discourse-translator/commit/fb77ef1b5186e80f1d91ca8d4923f19e933dddba)

as I’m unable to reproduce the issue.

 ![Screenshot%20from%202019-08-06%2015-11-07](https://global.discourse-cdn.com/meta/original/3X/3/3/335e4aeedfdf9a3f19024a0bccb950e96d22b304.png)

---

<div class="post-metadata">

### Author: ![Luke\_Cheng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/luke_cheng/32/137950_2.png) [@Luke\_Cheng](https://meta.discourse.org/u/Luke_Cheng)
#### Post date: [August 10, 2019, 7:28am UTC](https://meta.discourse.org/t/language-detect-issue-missing-language-value/119589/8 "2019-08-10T07:28:55Z")

</div>

Great, thanks to @tgxworld and @pmusaraj!

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [August 10, 2019, 11:55pm UTC](https://meta.discourse.org/t/language-detect-issue-missing-language-value/119589/9 "2019-08-10T23:55:16Z")

</div>


