Skip to content

Commit

Permalink
Change vuetify localization dynamically Fixed: #138
Browse files Browse the repository at this point in the history
  • Loading branch information
alirizaadiyahsi committed Aug 7, 2019
1 parent c46b002 commit 8a1accd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/nucleus-web-vue/src/account/account-layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default class AccountLayoutComponent extends NucleusComponentBase {
public changeLanguage(languageCode: string, languageName: string) {
this.$i18n.locale = languageCode;
this.selectedLanguage = { languageName, languageCode } as ILanguageDto;
this.$vuetify.lang.current = languageCode;

LanguageStore.setLanguage({
languageCode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default class TopMenuComponent extends NucleusComponentBase {
public changeLanguage(languageCode: string, languageName: string) {
this.$i18n.locale = languageCode;
this.selectedLanguage = { languageName, languageCode } as ILanguageDto;
this.$vuetify.lang.current = languageCode;

LanguageStore.setLanguage({
languageCode,
Expand Down

0 comments on commit 8a1accd

Please sign in to comment.