web: fix locale loading being skipped (#9301)
Fix locale loading being skipped. Co-authored-by: Dylan Kauling <dkauling@armstrongfluidtechnology.com>
This commit is contained in:
@ -88,7 +88,7 @@ export class LocaleContext extends LitElement {
|
||||
}
|
||||
locale.locale().then(() => {
|
||||
console.debug(`authentik/locale: Loaded locale '${code}'`);
|
||||
if (this.getLocale() === code) {
|
||||
if (this.getLocale() === requestedLocale) {
|
||||
return;
|
||||
}
|
||||
console.debug(`Setting Locale to ... ${locale.label()} (${locale.code})`);
|
||||
|
Reference in New Issue
Block a user