# Translating Kibana to pt-BR

**URL:** <https://discuss.elastic.co/t/translating-kibana-to-pt-br/167113>\
**Category:** Kibana\
**Created:** [February 5, 2019, 11:58am UTC](https://discuss.elastic.co/t/translating-kibana-to-pt-br/167113 "2019-02-05T11:58:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![diogopontual](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@diogopontual](https://discuss.elastic.co/u/diogopontual)\
**Post date:** [February 5, 2019, 11:58am UTC](https://discuss.elastic.co/t/translating-kibana-to-pt-br/167113/1 "2019-02-05T11:58:42Z")

</div>

Hello,

I'm trying to translate kibana to Brazilian Portuguese. I created the pt-BR.json file inside the folder

'src/legacy/core\_plugins/kibana/translations/'

And started kibana using:

'yarn start --i18n.locale=pt-BR'

Then, the chrome console is printing this message:

index.js:525 [React Intl] Missing locale data for locale: "pt-br". Using default locale: "en" as fallback.

Well, I'm using the master branch of the kibana repo.

Thank you.

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [February 5, 2019, 8:37pm UTC](https://discuss.elastic.co/t/translating-kibana-to-pt-br/167113/2 "2019-02-05T20:37:46Z")

</div>

Hi @diogopontual,

I guess that's because we didn't add `pt` or `pt-BR` to [the list of locale data we support and load](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/src/core/locales.js).

I believe you can just can grab appropriate data from [intl-relativeformat repo](https://github.com/yahoo/intl-relativeformat/blob/master/dist/locale-data/pt.js#L1-L2) and add it to the file I linked above as a temporary workaround.

And if you distribute your translations as a plugin, you'll likely be able to register appropriate locale data from that plugin instead.

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![diogopontual](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@diogopontual](https://discuss.elastic.co/u/diogopontual)\
**Post date:** [February 6, 2019, 11:46am UTC](https://discuss.elastic.co/t/translating-kibana-to-pt-br/167113/3 "2019-02-06T11:46:11Z")

</div>

Thank you Mr. @azasypkin.

Well, I did the changes but the translation to pt-BR stills not working.

I renamed the pt-BR.json file to fr.json file and restarted the server with "yarn start --i18n.locale=fr" and it worked as a charm.

Do u have any other advice?

Thank you.

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [February 6, 2019, 11:58am UTC](https://discuss.elastic.co/t/translating-kibana-to-pt-br/167113/4 "2019-02-06T11:58:26Z")

</div>

> [@diogopontual](#):
>
> Well, I did the changes but the translation to pt-BR stills not working.

Have you run `yarn kbn bootstrap -i @kbn/i18n -i kibana` (or just `yarn kbn bootstrap`) after that change? You need to rebuild `@kbn/i18n` package to apply the changes. Sorry, forgot to mention that previously.

---

<div class="post-metadata">

**Author:** ![diogopontual](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@diogopontual](https://discuss.elastic.co/u/diogopontual)\
**Post date:** [February 6, 2019, 12:21pm UTC](https://discuss.elastic.co/t/translating-kibana-to-pt-br/167113/5 "2019-02-06T12:21:49Z")

</div>

Great. It is perfect. Just one more question:

Wath is the right branch of your repo to be used as base of my work?

Thank you, again.

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [February 6, 2019, 1:01pm UTC](https://discuss.elastic.co/t/translating-kibana-to-pt-br/167113/6 "2019-02-06T13:01:22Z")

</div>

> Wath is the right branch of your repo to be used as base of my work?

Hmm, it really depends on what versions you'd like to support, the i18n framework that we fully support will be released with `6.7` and knowing the amount of work that needs to be done (Kibana right now has ~10-11k of localizable labels and this number is constantly growing) I'd say it makes sense to target `6.7` and `7.0` at least (these branches will be created later today or tomorrow from `6.x` and `master` respectively).

We usually develop on master and then backport to older branches resolving conflicts if any, usually it goes flawlessly, but i18n is a different and totally new beast for us as well 🙂

---

<div class="post-metadata">

**Author:** ![diogopontual](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@diogopontual](https://discuss.elastic.co/u/diogopontual)\
**Post date:** [February 6, 2019, 1:22pm UTC](https://discuss.elastic.co/t/translating-kibana-to-pt-br/167113/7 "2019-02-06T13:22:47Z")

</div>

Great! Thanks a lot. Your advices saved my day!

---

<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:** [March 6, 2019, 1:22pm UTC](https://discuss.elastic.co/t/translating-kibana-to-pt-br/167113/8 "2019-03-06T13:22:48Z")

</div>

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