Skip to content

Commit

Permalink
escape more js and update instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbitronics committed Feb 4, 2025
1 parent df09140 commit fe3d75c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/material/locales/en/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ msgid "{mfa:webauthn_icon}"
msgstr "USB key icon"

msgid "{mfa:webauthn_instructions}"
msgstr "You may now insert your security key and press its button."
msgstr "Follow the prompts to use your key."

msgid "{mfa:webauthn_start}"
msgstr "Click OK when you're ready to start."
Expand Down
2 changes: 1 addition & 1 deletion modules/material/locales/es/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ msgid "{mfa:webauthn_icon}"
msgstr "Icono de la llave USB"

msgid "{mfa:webauthn_instructions}"
msgstr "Ahora puede insertar su clave de seguridad y presionar su botón."
msgstr "Siga las instrucciones para usar su clave."

msgid "{mfa:webauthn_start}"
msgstr "Haga clic en OK cuando esté listo para comenzar."
Expand Down
2 changes: 1 addition & 1 deletion modules/material/locales/fr/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ msgid "{mfa:webauthn_icon}"
msgstr "Icône de clé USB"

msgid "{mfa:webauthn_instructions}"
msgstr "Vous pouvez maintenant insérer votre clé de sécurité et appuyer sur le bouton."
msgstr "Suivez les instructions pour utiliser votre clé."

msgid "{mfa:webauthn_start}"
msgstr "Cliquez sur OK lorsque vous êtes prêt à commencer."
Expand Down
2 changes: 1 addition & 1 deletion modules/material/locales/ko/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ msgid "{mfa:webauthn_icon}"
msgstr "USB 키 아이콘"

msgid "{mfa:webauthn_instructions}"
msgstr "이제 보안 키를 삽입하고 단추를 누를 수 있습니다."
msgstr "메시지에 따라 키를 사용하세요."

msgid "{mfa:webauthn_start}"
msgstr "시작할 준비가 되면 확인을 클릭하세요."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<script>
document.addEventListener('DOMContentLoaded', function() {
function verifyWebAuthn() {
document.getElementById('instructions').textContent = '{{ '{mfa:webauthn_instructions}'|trans }}';
document.getElementById('instructions').textContent = '{{ '{mfa:webauthn_instructions}'|trans|e('js') }}';
const loginChallenge = {{ mfa_option_data|raw }};
SimpleWebAuthnBrowser.startAuthentication(loginChallenge.publicKey).then(submitForm).catch(handleError);
}
Expand Down Expand Up @@ -42,7 +42,7 @@
verifyBtn.classList.add('mdl-color-text--red');
verifyBtn.classList.remove('mdl-color-text--primary');
verifyBtn.textContent = '{{ '{mfa:button_try_again}'|trans|escape('js') }}';
verifyBtn.textContent = '{{ '{mfa:button_try_again}'|trans|e('js') }}';
}
Expand Down

0 comments on commit fe3d75c

Please sign in to comment.