Hi there,
I use gettext with Phoenix. I’ve created a tiny project with a a home page, a plug to set the locale
and three languages: en, fr, it. Here’s the structure I get.
priv/gettext
└─ en
| └─ LC_MESSAGES
| └─ errors.po
| └─ default.po
└─ fr
| └─ LC_MESSAGES
| └─ errors.poI
| └─ default.po
└─ it
| └─ LC_MESSAGES
| └─ errors.po
| └─ default.po
└─ default.pot
└─ errors.pot
The plug is the one in the official Plug documentation and is working. It sets the right locale which I can see in conn.assigns.
When I change the values in ‘en/LC_MESSAGES/default.po’ it works and I see the change, but the app ignores whatever
I put in the ‘fr’ and ‘it’ files. When I run the command: “mix gettext.extract --merge” nothing happens.
My changes are still there. Nothing iis overwritten by all those files are invisible to gettext.
Any idea?
Thanks in advance