Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo #28281

Merged
merged 2 commits into from
Dec 23, 2024
Merged

Typo #28281

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Loading