Issue
I am new to JHipster and I would like to where can I define the default i18n language in JHipster? Is it in a Java Configuration class, in Spring-Boot yaml file, or in Javascript file?
Solution
In the newer version of Jhipster (v 3.0.0 - the one I've been using), you will need to change two places:
src/main/webapp/app/blocks/config/translation.config.js
: change the line$translateProvider.preferredLanguage('en');
with your preferred language key (e.g.'en'
->'fr'
);src/main/webapp/app/blocks/config/translation-storage.provider.js
: change the line$cookies.putObject(name, 'en');
with your preferred language key as well.
Answered By - Robin
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.