# How to change moment.js in Kibana?

**URL:** <https://discuss.elastic.co/t/how-to-change-moment-js-in-kibana/269289>\
**Category:** Kibana\
**Created:** [April 6, 2021, 7:11am UTC](https://discuss.elastic.co/t/how-to-change-moment-js-in-kibana/269289 "2021-04-06T07:11:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eniserkaya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eniserkaya/32/86600_2.png) [@eniserkaya](https://discuss.elastic.co/u/eniserkaya)\
**Post date:** [April 6, 2021, 7:11am UTC](https://discuss.elastic.co/t/how-to-change-moment-js-in-kibana/269289/1 "2021-04-06T07:11:34Z")

</div>

I would like to change language for Duration in readable format.

I have scripted fields. The scripted fields calculate duration. When i show the duration to clients, appear the label to screen 10 hours ago, 15 hours ago etc.  
When i look the source code of kibana, i saw that the kibana use moment.js for calculation duration.  
I would like to change 10 hours ago label to another language.  
Moment.js support a lot of languages.  
Is it possible to change moment.js file for kibana and how?

If you have another solutions for this issue, you may explain it.

Thanks.

---

<div class="post-metadata">

**Author:** ![mikecote](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikecote/32/58549_2.png) [@mikecote](https://discuss.elastic.co/u/mikecote)\
**Post date:** [April 8, 2021, 10:21am UTC](https://discuss.elastic.co/t/how-to-change-moment-js-in-kibana/269289/2 "2021-04-08T10:21:23Z")

</div>

Hi @eniserkaya,

Have you tried going to "Stack Management" -\> "Advanced Settings" and changing the locale under "Formatting locale"?

 ![Screen Shot 2021-04-08 at 6.20.09 AM](https://us1.discourse-cdn.com/elastic/original/3X/6/f/6fdde4b96df1fff2b3f86c42dcb3cf0909f68f07.png)

---

<div class="post-metadata">

**Author:** ![eniserkaya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eniserkaya/32/86600_2.png) [@eniserkaya](https://discuss.elastic.co/u/eniserkaya)\
**Post date:** [April 8, 2021, 11:21am UTC](https://discuss.elastic.co/t/how-to-change-moment-js-in-kibana/269289/3 "2021-04-08T11:21:29Z")

</div>

Hi,

Unfourtunately, it is just about to number format.  
For example, if the format is en, the number shows 4.1  
if the format is TR, the number shows 4,2.  
There is no affact to duration label.  
Thanks.

---

<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 6, 2021, 11:21am UTC](https://discuss.elastic.co/t/how-to-change-moment-js-in-kibana/269289/4 "2021-05-06T11:21:46Z")

</div>

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