diff --git a/generators/client/templates/vue/src/main/webapp/app/core/jhi-navbar/jhi-navbar.component.ts.ejs b/generators/client/templates/vue/src/main/webapp/app/core/jhi-navbar/jhi-navbar.component.ts.ejs index 34807196349f..6c2b0f7e792c 100644 --- a/generators/client/templates/vue/src/main/webapp/app/core/jhi-navbar/jhi-navbar.component.ts.ejs +++ b/generators/client/templates/vue/src/main/webapp/app/core/jhi-navbar/jhi-navbar.component.ts.ejs @@ -31,7 +31,8 @@ export default class JhiNavbar extends Vue { created() { <%_ if (enableTranslation) { _%> - this.translationService().refreshTranslation(this.currentLanguage); + const currentLanguage = Object.keys(this.languages).includes(navigator.language) ? navigator.language : this.currentLanguage; + this.translationService().refreshTranslation(currentLanguage); <%_ } _%> }