diff --git a/generators/angular/templates/src/main/webapp/app/core/auth/account.service.ts.ejs b/generators/angular/templates/src/main/webapp/app/core/auth/account.service.ts.ejs index bcf841ac3941..d13ef5e851a2 100644 --- a/generators/angular/templates/src/main/webapp/app/core/auth/account.service.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/core/auth/account.service.ts.ejs @@ -81,7 +81,7 @@ export class AccountService { // After retrieve the account info, the language will be changed to // the user's preferred language configured in the account setting - // unless user have choosed other language in the current session + // unless user have chosen other language in the current session if (!this.stateStorageService.getLocale()) { this.translateService.use(account.langKey); } diff --git a/generators/angular/templates/src/main/webapp/app/shared/language/translation.module.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/language/translation.module.ts.ejs index 62d29619b44e..5bb9b440eda4 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/language/translation.module.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/language/translation.module.ts.ejs @@ -76,7 +76,7 @@ export class TranslationModule { constructor() { this.translateService.setDefaultLang('<%= nativeLanguage %>'); - // if user have changed language and navigates away from the application and back to the application then use previously choosed language + // if user have changed language and navigates away from the application and back to the application then use previously chosen language const langKey = this.stateStorageService.getLocale() ?? '<%= nativeLanguage %>'; this.translateService.use(langKey); }