Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

Language not working fine #95

Closed
pascalgrimaud opened this issue Dec 4, 2018 · 3 comments · Fixed by #115
Closed

Language not working fine #95

pascalgrimaud opened this issue Dec 4, 2018 · 3 comments · Fixed by #115
Assignees
Labels
bug Something isn't working

Comments

@pascalgrimaud
Copy link
Member

Generate a project with 2 languages.
When changing the default language and navigating in the application, the new language is not persisted, as it is back to the default language.

@pascalgrimaud
Copy link
Member Author

Another thing: another default language than EN is not working too

@pascalgrimaud pascalgrimaud added the bug Something isn't working label Dec 4, 2018
@pascalgrimaud pascalgrimaud self-assigned this Dec 4, 2018
@pascalgrimaud
Copy link
Member Author

After some discussion with @sahbi-ktifa, the problem comes from the import of TranslationService in Principal, which is imported too in some components.

Then, this line reset the default language:
https://github.com/jhipster/jhipster-vuejs/blob/master/generators/client/templates/vue/src/main/webapp/app/locale/TranslationService.vue.ejs#L8

@pascalgrimaud
Copy link
Member Author

I will PR soon, with translation service

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant