From 22e9e8dcab9061a4468492eec7e705c396168004 Mon Sep 17 00:00:00 2001 From: Quentin Date: Mon, 23 Dec 2024 13:04:57 +0100 Subject: [PATCH 1/2] Fix typo: choosed=>chosen --- .../src/main/webapp/app/core/auth/account.service.ts.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } From ed69e72fa32e499cf34cc3aad2f816fff5eb1f94 Mon Sep 17 00:00:00 2001 From: Quentin Date: Mon, 23 Dec 2024 13:09:10 +0100 Subject: [PATCH 2/2] Fix typo: choosed=>chosen --- .../main/webapp/app/shared/language/translation.module.ts.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }