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[] {