# Adding a new translation to Kibana and distribute it

**URL:** <https://discuss.elastic.co/t/adding-a-new-translation-to-kibana-and-distribute-it/287185>\
**Category:** Kibana\
**Created:** [October 20, 2021, 10:40am UTC](https://discuss.elastic.co/t/adding-a-new-translation-to-kibana-and-distribute-it/287185 "2021-10-20T10:40:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkatsaounos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkatsaounos/32/96124_2.png) [@nkatsaounos](https://discuss.elastic.co/u/nkatsaounos)\
**Post date:** [October 20, 2021, 10:40am UTC](https://discuss.elastic.co/t/adding-a-new-translation-to-kibana-and-distribute-it/287185/1 "2021-10-20T10:40:13Z")

</div>

Hello,  
I have started localization Kibana to greek language. I made my experiments in an Ubuntu20.04 system. I made the following changes after cloning development code from kibana repo:

1. extracted _en.json_ file via _node scripts/i18n\_extract tool_
2. renamed _en.json_ file to _el-GR.json_ file
3. edited _el-GR.json_ file, specifying some desirable text
4. integrated _el-GR_ translation via _node scripts/i18n\_integrate_ tool
5. added the appropriate entry for _el-GR.json_ file in _./x-pack/ .i18nrc.json file_
6. added the appropriate entry for _el-GR.json_ file in _./x-pack/plugins/translations/tsconfig.json_ file
7. added the appropriate entries (_addLocales_ statements) in _./packages/kbn-18n/src/core/locale.js_ file
8. defined i18n.locale: "el-GR" in ./config/kibana.yml file

Indeed, when I start running Elasticsearch / kibana (yarn es snapshot --license trial /  
yarn start --run-examples) , I can see the translated messages!

Notice that the procedure I followed seems to have added a new translation to the existent x-pack plugin (eg _./x-pack/plugins/translations/translations/_ included the whole translations), so the supported additional languages are now three: zh-CN, ja-JP, el-GR.

How can I make a distributable version of kibana in order to have available in production mode the greek translation; eg should I rebuild and install the existent x-pack plugin; Should I rebuild another packet or the entire kibana dev code; Which commands should I use; My target is to add the support of greek translation in an existent kibana prod installation. I am a little bit confused about this issue.

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![Dzmitry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzmitry/32/65026_2.png) [@Dzmitry](https://discuss.elastic.co/u/Dzmitry)\
**Post date:** [October 20, 2021, 12:42pm UTC](https://discuss.elastic.co/t/adding-a-new-translation-to-kibana-and-distribute-it/287185/2 "2021-10-20T12:42:42Z")

</div>

Hi @nkatsaounos ,

Welcome to discuss forum and your interest in localisation effort.

Generally you can build Kibana for production distributable this [way](https://github.com/elastic/kibana/issues/80967):

`yarn build --skip-os-packages`

But you probably interested in specific OS build, so please check the options with:  
`yarn build --help`

When you make a build, you should be able to start your own Kibana production build and connect it to Elasticsearch, just make sure you are working with the correct Kibana source branch to be compatible with your Elasticsearch version.

Regards, Dzmitry

---

<div class="post-metadata">

**Author:** ![nkatsaounos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkatsaounos/32/96124_2.png) [@nkatsaounos](https://discuss.elastic.co/u/nkatsaounos)\
**Post date:** [November 4, 2021, 8:52am UTC](https://discuss.elastic.co/t/adding-a-new-translation-to-kibana-and-distribute-it/287185/3 "2021-11-04T08:52:05Z")

</div>

Thank you Dzmitry for your answer,  
I have successfully proceeded to the production distributable.

Now, I am trying to translate some additional text in the greek language, regarding the **Time Selection** window. I have managed to translate some text inside there, but I still can't find the way I can translate text inside quick time/date selection (see attached images).  
For example, how can I translate text like '~ 7 days ago --\> now' ; I tested some changes in _./packages/kbn-18n/src/core/locale.js_ file, regarding the greek language, without success. I also tried to search for some advanced kibana settings in Stack Management, without success.  
In general, how is it possible to have available in greek language the window appears in the attached _Screenshot2.png_ image ?

Regards, Nikos  
 ![Screenshot2](https://us1.discourse-cdn.com/elastic/original/3X/7/6/76c08a79a420fc9df7b02fdc202d63698412dc01.png)

 ![Screenshot1](https://us1.discourse-cdn.com/elastic/original/3X/6/2/62ee8245d5132dfe8b9d97af2d33762364f37e76.png)

---

<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:** [December 2, 2021, 8:52am UTC](https://discuss.elastic.co/t/adding-a-new-translation-to-kibana-and-distribute-it/287185/4 "2021-12-02T08:52:28Z")

</div>

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