From 5ca8eefa8bb1780b25c9f09d85903abd04b34eae Mon Sep 17 00:00:00 2001 From: Jens L Date: Fri, 5 May 2023 23:22:32 +0300 Subject: [PATCH] web: fix loading text not being loaded (#5497) Signed-off-by: Jens Langhammer --- web/src/standalone/api-browser/index.ts | 3 +++ web/src/standalone/loading/index.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/web/src/standalone/api-browser/index.ts b/web/src/standalone/api-browser/index.ts index a9e5faf41..78c8d4c7c 100644 --- a/web/src/standalone/api-browser/index.ts +++ b/web/src/standalone/api-browser/index.ts @@ -1,6 +1,7 @@ import { CSRFHeaderName } from "@goauthentik/common/api/middleware"; import { EVENT_THEME_CHANGE } from "@goauthentik/common/constants"; import { globalAK } from "@goauthentik/common/global"; +import { autoDetectLanguage } from "@goauthentik/common/ui/locale"; import { first, getCookie } from "@goauthentik/common/utils"; import { Interface } from "@goauthentik/elements/Base"; import { DefaultTenant } from "@goauthentik/elements/sidebar/SidebarBrand"; @@ -12,6 +13,8 @@ import { ifDefined } from "lit/directives/if-defined.js"; import { UiThemeEnum } from "@goauthentik/api"; +autoDetectLanguage(); + @customElement("ak-api-browser") export class APIBrowser extends Interface { @property() diff --git a/web/src/standalone/loading/index.ts b/web/src/standalone/loading/index.ts index 728be4e52..4e001051d 100644 --- a/web/src/standalone/loading/index.ts +++ b/web/src/standalone/loading/index.ts @@ -1,4 +1,5 @@ import { globalAK } from "@goauthentik/common/global"; +import { autoDetectLanguage } from "@goauthentik/common/ui/locale"; import { Interface } from "@goauthentik/elements/Base"; import { t } from "@lingui/macro"; @@ -13,6 +14,8 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css"; import { UiThemeEnum } from "@goauthentik/api"; +autoDetectLanguage(); + @customElement("ak-loading") export class Loading extends Interface { static get styles(): CSSResult[] {