Since we enabled i18n support for our application we can add new i18n languages easily, at any time, using the JHipster language generator. Let's add a new language to our application.
In the terminal, switch to a new branch and run the following command:
> git checkout -b add-french-language > jhipster languages
You will now see a prompt like this, where you can choose any available language listed:
Using JHipster version installed locally in current project's node_modules Executing jhipster:languages Options: Languages configuration is starting ? Please choose additional languages to install (Press <space> to select, <a> to toggle all, <i> to inverse selection) >◯ Arabic (Libya) ◯ Armenian ◯ Catalan ◯ Chinese (Simplified) ◯ Chinese (Traditional) ◯ Czech ◯ Danish (Move up and down to reveal more choices)
Let's select French here for now. Accept the file changes proposed and we are good to go. Once the application automatically refreshes...