web: initial migration to lingui
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { Flow, FlowsApi } from "authentik-api";
|
||||
import { gettext } from "django";
|
||||
import { t } from "@lingui/macro";
|
||||
import { customElement } from "lit-element";
|
||||
import { html, TemplateResult } from "lit-html";
|
||||
import { DEFAULT_CONFIG } from "../../api/Config";
|
||||
@ -10,7 +10,7 @@ import "../../elements/forms/HorizontalFormElement";
|
||||
export class FlowImportForm extends Form<Flow> {
|
||||
|
||||
getSuccessMessage(): string {
|
||||
return gettext("Successfully imported flow.");
|
||||
return t`Successfully imported flow.`;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line
|
||||
@ -27,10 +27,10 @@ export class FlowImportForm extends Form<Flow> {
|
||||
renderForm(): TemplateResult {
|
||||
return html`<form class="pf-c-form pf-m-horizontal">
|
||||
<ak-form-element-horizontal
|
||||
label=${gettext("Flow")}
|
||||
label=${t`Flow`}
|
||||
name="flow">
|
||||
<input type="file" value="" class="pf-c-form-control">
|
||||
<p class="pf-c-form__helper-text">${gettext("Background shown during execution.")}</p>
|
||||
<p class="pf-c-form__helper-text">${t`Background shown during execution.`}</p>
|
||||
</ak-form-element-horizontal>
|
||||
</form>`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user