web/admin: fix unlocalised strings

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-04 00:10:56 +02:00
parent 195951a61a
commit 87fdb591ce
5 changed files with 10 additions and 10 deletions

View File

@ -120,9 +120,9 @@ export class PromptStage extends BaseStage {
render(): TemplateResult { render(): TemplateResult {
if (!this.challenge) { if (!this.challenge) {
return html`<ak-empty-state return html`<ak-empty-state
?loading="${true}" ?loading="${true}"
header=${t`Loading`}> header=${t`Loading`}>
</ak-empty-state>`; </ak-empty-state>`;
} }
return html`<header class="pf-c-login__main-header"> return html`<header class="pf-c-login__main-header">
<h1 class="pf-c-title pf-m-3xl"> <h1 class="pf-c-title pf-m-3xl">

View File

@ -14,7 +14,7 @@ export class EventListPage extends TablePage<Event> {
expandable = true; expandable = true;
pageTitle(): string { pageTitle(): string {
return "Event Log"; return t`Event Log`;
} }
pageDescription(): string | undefined { pageDescription(): string | undefined {
return; return;

View File

@ -19,10 +19,10 @@ import { ifDefined } from "lit-html/directives/if-defined";
@customElement("ak-outpost-list") @customElement("ak-outpost-list")
export class OutpostListPage extends TablePage<Outpost> { export class OutpostListPage extends TablePage<Outpost> {
pageTitle(): string { pageTitle(): string {
return "Outposts"; return t`Outposts`;
} }
pageDescription(): string | undefined { pageDescription(): string | undefined {
return "Outposts are deployments of authentik components to support different environments and protocols, like reverse proxies."; return t`Outposts are deployments of authentik components to support different environments and protocols, like reverse proxies.`;
} }
pageIcon(): string { pageIcon(): string {
return "pf-icon pf-icon-zone"; return "pf-icon pf-icon-zone";

View File

@ -21,10 +21,10 @@ import "./oauth/OAuthSourceForm";
@customElement("ak-source-list") @customElement("ak-source-list")
export class SourceListPage extends TablePage<Source> { export class SourceListPage extends TablePage<Source> {
pageTitle(): string { pageTitle(): string {
return "Sources"; return t`Sources`;
} }
pageDescription(): string | undefined { pageDescription(): string | undefined {
return "External Sources which can be used to get Identities into authentik, for example Social Providers like Twiter and GitHub or Enterprise Providers like ADFS and LDAP."; return t`External Sources which can be used to get Identities into authentik, for example Social Providers like Twiter and GitHub or Enterprise Providers like ADFS and LDAP.`;
} }
pageIcon(): string { pageIcon(): string {
return "pf-icon pf-icon-middleware"; return "pf-icon pf-icon-middleware";

View File

@ -36,10 +36,10 @@ import "./user_write/UserWriteStageForm.ts";
@customElement("ak-stage-list") @customElement("ak-stage-list")
export class StageListPage extends TablePage<Stage> { export class StageListPage extends TablePage<Stage> {
pageTitle(): string { pageTitle(): string {
return "Stages"; return t`Stages`;
} }
pageDescription(): string | undefined { pageDescription(): string | undefined {
return "Stages are single steps of a Flow that a user is guided through."; return t`Stages are single steps of a Flow that a user is guided through.`;
} }
pageIcon(): string { pageIcon(): string {
return "pf-icon pf-icon-plugged"; return "pf-icon pf-icon-plugged";