# Gettext basic usage

**URL:** <https://forum.elixirforum.com/t/gettext-basic-usage/30570>\
**Category:** Questions\
**Tags:** phoenix, gettext\
**Created:** [April 12, 2020, 7:27pm UTC](https://forum.elixirforum.com/t/gettext-basic-usage/30570 "2020-04-12T19:27:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Asimov](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/asimov/32/4975_2.png) [@Asimov](https://forum.elixirforum.com/u/Asimov)\
**Post date:** [April 13, 2020, 4:43pm UTC](https://forum.elixirforum.com/t/gettext-basic-usage/30570/3 "2020-04-13T16:43:13Z")

</div>

Thank you @sfusato for the reply. It is very much appreciated. So, at the end I had to make a couple of changes:

**1** In `config.exs`:

`config :myApp, MyAppWeb.Gettext, locales: ~w(en fr es)`

Not sure why but it seems that ll\_CC format may cause issues. For what I understood in [gettext doc](https://www.gnu.org/software/gettext/manual/html_node/Locale-Names.html) that was the suggested format. But I could not make it work, so I just made my life simpler using only the language code without the country.

**2** Then the command that did it for me was:

```elixir
mix gettext.merge priv/gettext --locale fr
mix gettext.merge priv/gettext --locale es

```

**3** After that a simple (as mentioned by @sfusato`mix gettext.extract --merge` updates any change in the pages.

I am leaving it here in case it helps to anyone else in the future.

Thanks

---

_[View the full topic](https://forum.elixirforum.com/t/gettext-basic-usage/30570)._
