# How can we use i18n in plugin index.js

**URL:** https://discuss.elastic.co/t/how-can-we-use-i18n-in-plugin-index-js/128441
**Category:** Kibana
**Created:** [April 18, 2018, 2:37am UTC](https://discuss.elastic.co/t/how-can-we-use-i18n-in-plugin-index-js/128441 "2018-04-18T02:37:21Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)
#### Post date: [April 18, 2018, 2:37am UTC](https://discuss.elastic.co/t/how-can-we-use-i18n-in-plugin-index-js/128441/1 "2018-04-18T02:37:21Z")

</div>

kibana version: 5.5  
how can we use i18n in plugin/index.js?  
cause I wanna translate the app menu title.

---

<div class="post-metadata">

### Author: ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)
#### Post date: [April 18, 2018, 6:31am UTC](https://discuss.elastic.co/t/how-can-we-use-i18n-in-plugin-index-js/128441/2 "2018-04-18T06:31:09Z")

</div>

Hi,

there is currently no internationalization build into Kibana. You can follow [#17201](https://github.com/elastic/kibana/issues/17201) for updates on the topic.

Regards,  
Tim

---

<div class="post-metadata">

### Author: ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)
#### Post date: [April 20, 2018, 3:11am UTC](https://discuss.elastic.co/t/how-can-we-use-i18n-in-plugin-index-js/128441/3 "2018-04-20T03:11:35Z")

</div>

no, afaik, we can use $translate.instant to do some translation, but how can we use that in plugin/index.js, where we cannot use $translate , seems even the new RFC cannot do translate for menu title

---

<div class="post-metadata">

### Author: ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)
#### Post date: [April 20, 2018, 7:44am UTC](https://discuss.elastic.co/t/how-can-we-use-i18n-in-plugin-index-js/128441/4 "2018-04-20T07:44:46Z")

</div>

Of course you can use `$translate` (aka angular-translate) to translate your frontend, but there is still no proper build in support for e.g. switch your language in Kibana.

Also `plugin/index.js` will run on the server side, so there won't be any angular translate available and since there is no i18n currently in Kibana there is also no other solution.

I will leave a comment in the RFC about that server side internationalization.

---

<div class="post-metadata">

### Author: ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)
#### Post date: [April 20, 2018, 8:12am UTC](https://discuss.elastic.co/t/how-can-we-use-i18n-in-plugin-index-js/128441/5 "2018-04-20T08:12:57Z")

</div>

emmm, I do some hack to support that, maybe not the best practice. by the way, I will wait the official solution. anyway, I will close this issue. thanks @timroes, for your quick answer

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 18, 2018, 8:12am UTC](https://discuss.elastic.co/t/how-can-we-use-i18n-in-plugin-index-js/128441/6 "2018-05-18T08:12:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
