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

added localization to password & email #625

Merged
merged 3 commits into from
Nov 10, 2021
Merged
Changes from 1 commit
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 @@ -11,6 +11,7 @@ import { environment } from 'src/environments/environment';
styleUrls: ['./user-config.component.scss']
})
export class UserConfigComponent implements OnInit {
public culture: string;

@Select(RegistrationState.user)
user$: Observable<User>;
Expand All @@ -20,10 +21,10 @@ export class UserConfigComponent implements OnInit {
constructor() { }

ngOnInit(): void {

this.culture = localStorage.getItem('ui-culture');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it can be assigned directly in the declaration, so ngOnInit can be removed

}

onRedirect(link: string): void {
window.open(this.authServer + link, link, 'height=500,width=500');
window.open(`${this.authServer + link}?culture=${this.culture}&ui-culture=${this.culture}`, link, 'height=500,width=500');
}
}