# Wrong locale pt-BR

**URL:** <https://forum.collaboraonline.com/t/wrong-locale-pt-br/1101>\
**Category:** Localization\
**Created:** [May 11, 2022, 12:13am UTC](https://forum.collaboraonline.com/t/wrong-locale-pt-br/1101 "2022-05-11T00:13:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Petter](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@Petter](https://forum.collaboraonline.com/u/Petter)\
**Post date:** [March 6, 2023, 10:40am UTC](https://forum.collaboraonline.com/t/wrong-locale-pt-br/1101/4 "2023-03-06T10:40:35Z")

</div>

Was you able to solve the problem using the docker image? I’m facing the same problem.

I’m creating a custom docker image, where I installed the `collaboraoffice*pt-br` but I’m missing something since the UI still in English.

```auto
FROM collabora/code:22.05.10.2.1
USER root
#Instala pacote de localização para o português da Collabora
RUN apt update
RUN apt install -y locales locales-all collaboraoffice*pt-br
ENV LC_ALL pt_BR.UTF-8
ENV LANG pt_BR.UTF-8
ENV LANGUAGE pt_BR.UTF-8

#Volta o usuário para o da imagem base da collabora/code
USER cool

```

EDIT: Just to clarify: The docker image `collabora/code:22.05.10.2.1` already come with all language package installed, so there is no need to perform an `apt install -y collaboraoffice*pt-br`.

EDIT2: In the browser, I can see the pt-BR localization files being downloaded, but the UI still in English. Maybe the Collabora Code is hardcoded to English only?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/b09fa7fbe62e78b871f86127856b250f37c1c8af.png)

**Solution:** Adding `lang=pt-br` to the URL solved the localization problem for me.

---

_[View the full topic](https://forum.collaboraonline.com/t/wrong-locale-pt-br/1101)._
