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(() => { |         locale.locale().then(() => { | ||||||
|             console.debug(`authentik/locale: Loaded locale '${code}'`); |             console.debug(`authentik/locale: Loaded locale '${code}'`); | ||||||
|             if (this.getLocale() === code) { |             if (this.getLocale() === requestedLocale) { | ||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
|             console.debug(`Setting Locale to ... ${locale.label()} (${locale.code})`); |             console.debug(`Setting Locale to ... ${locale.label()} (${locale.code})`); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Dylan Kauling
					Dylan Kauling