web/flow: fix translate extract (#13208) Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens L. <jens@goauthentik.io>
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							ed83c2b0b1
						
					
				
				
					commit
					78f997fbee
				
			@ -269,7 +269,7 @@ export class InputPassword extends AKElement {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        toggleElement.setAttribute(
 | 
					        toggleElement.setAttribute(
 | 
				
			||||||
            "aria-label",
 | 
					            "aria-label",
 | 
				
			||||||
            msg(masked ? Visibility.Reveal.label : Visibility.Mask.label),
 | 
					            masked ? Visibility.Reveal.label : Visibility.Mask.label,
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const iconElement = toggleElement.querySelector("i")!;
 | 
					        const iconElement = toggleElement.querySelector("i")!;
 | 
				
			||||||
@ -285,7 +285,7 @@ export class InputPassword extends AKElement {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        return html`<button
 | 
					        return html`<button
 | 
				
			||||||
            ${ref(this.toggleVisibilityRef)}
 | 
					            ${ref(this.toggleVisibilityRef)}
 | 
				
			||||||
            aria-label=${msg(label)}
 | 
					            aria-label=${label}
 | 
				
			||||||
            @click=${this.togglePasswordVisibility}
 | 
					            @click=${this.togglePasswordVisibility}
 | 
				
			||||||
            class="pf-c-button pf-m-control"
 | 
					            class="pf-c-button pf-m-control"
 | 
				
			||||||
            type="button"
 | 
					            type="button"
 | 
				
			||||||
 | 
				
			|||||||
@ -3,7 +3,7 @@ import "@goauthentik/elements/forms/FormElement";
 | 
				
			|||||||
import { BaseDeviceStage } from "@goauthentik/flow/stages/authenticator_validate/base";
 | 
					import { BaseDeviceStage } from "@goauthentik/flow/stages/authenticator_validate/base";
 | 
				
			||||||
import { PasswordManagerPrefill } from "@goauthentik/flow/stages/identification/IdentificationStage";
 | 
					import { PasswordManagerPrefill } from "@goauthentik/flow/stages/identification/IdentificationStage";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { msg } from "@lit/localize";
 | 
					import { msg, str } from "@lit/localize";
 | 
				
			||||||
import { CSSResult, TemplateResult, css, html } from "lit";
 | 
					import { CSSResult, TemplateResult, css, html } from "lit";
 | 
				
			||||||
import { customElement } from "lit/decorators.js";
 | 
					import { customElement } from "lit/decorators.js";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -35,7 +35,7 @@ export class AuthenticatorValidateStageWebCode extends BaseDeviceStage<
 | 
				
			|||||||
        switch (this.deviceChallenge?.deviceClass) {
 | 
					        switch (this.deviceChallenge?.deviceClass) {
 | 
				
			||||||
            case DeviceClassesEnum.Email: {
 | 
					            case DeviceClassesEnum.Email: {
 | 
				
			||||||
                const email = this.deviceChallenge.challenge?.email;
 | 
					                const email = this.deviceChallenge.challenge?.email;
 | 
				
			||||||
                return msg(`A code has been sent to you via email${email ? ` ${email}` : ""}`);
 | 
					                return msg(str`A code has been sent to you via email${email ? ` ${email}` : ""}`);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            case DeviceClassesEnum.Sms:
 | 
					            case DeviceClassesEnum.Sms:
 | 
				
			||||||
                return msg("A code has been sent to you via SMS.");
 | 
					                return msg("A code has been sent to you via SMS.");
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user