Add translation
We are using gettext for the Vaas. To add a new translation do the following steps:
- Be sure you are in the
apps/vaas_web
folder and execute the following command:
mix gettext.extract
- This will create a new
default.pot
file inapps/vaas_web/priv/gettext
. To create a new locale folder, use the following command (we usefr
in this example):
mix gettext.merge priv/gettext --locale fr
- Add translations to the newly generated
default.po
and you are done!