diff --git a/web/src/locales/en.po b/web/src/locales/en.po index 023bf4be8..05d222c8b 100644 --- a/web/src/locales/en.po +++ b/web/src/locales/en.po @@ -4218,9 +4218,9 @@ msgstr "Static Tokens" msgid "Static authenticator" msgstr "Static authenticator" -#: -#~ msgid "Static tokens" -#~ msgstr "Static tokens" +#: src/user/user-settings/mfa/MFADevicesPage.ts +msgid "Static tokens" +msgstr "Static tokens" #: src/pages/stages/prompt/PromptForm.ts msgid "Static: Static value, displayed as-is." @@ -4652,6 +4652,10 @@ msgstr "TLS Verification Certificate" msgid "TOTP Authenticators" msgstr "TOTP Authenticators" +#: src/user/user-settings/mfa/MFADevicesPage.ts +msgid "TOTP Device" +msgstr "TOTP Device" + #: src/user/user-settings/mfa/MFADevicesPage.ts msgid "TOTP authenticator" msgstr "TOTP authenticator" diff --git a/web/src/locales/fr_FR.po b/web/src/locales/fr_FR.po index 15fa00a43..9bdee46ca 100644 --- a/web/src/locales/fr_FR.po +++ b/web/src/locales/fr_FR.po @@ -4176,9 +4176,9 @@ msgstr "Jetons statiques" msgid "Static authenticator" msgstr "" -#: -#~ msgid "Static tokens" -#~ msgstr "Jetons statiques" +#: src/user/user-settings/mfa/MFADevicesPage.ts +msgid "Static tokens" +msgstr "Jetons statiques" #: src/pages/stages/prompt/PromptForm.ts msgid "Static: Static value, displayed as-is." @@ -4604,6 +4604,10 @@ msgstr "Certificat de vérification TLS" msgid "TOTP Authenticators" msgstr "Authentificateur TOTP" +#: src/user/user-settings/mfa/MFADevicesPage.ts +msgid "TOTP Device" +msgstr "" + #: src/user/user-settings/mfa/MFADevicesPage.ts msgid "TOTP authenticator" msgstr "" diff --git a/web/src/locales/pseudo-LOCALE.po b/web/src/locales/pseudo-LOCALE.po index 34c4cfc13..3bdb85ce7 100644 --- a/web/src/locales/pseudo-LOCALE.po +++ b/web/src/locales/pseudo-LOCALE.po @@ -4210,9 +4210,9 @@ msgstr "" msgid "Static authenticator" msgstr "" -#: -#~ msgid "Static tokens" -#~ msgstr "" +#: src/user/user-settings/mfa/MFADevicesPage.ts +msgid "Static tokens" +msgstr "" #: src/pages/stages/prompt/PromptForm.ts msgid "Static: Static value, displayed as-is." @@ -4644,6 +4644,10 @@ msgstr "" msgid "TOTP Authenticators" msgstr "" +#: src/user/user-settings/mfa/MFADevicesPage.ts +msgid "TOTP Device" +msgstr "" + #: src/user/user-settings/mfa/MFADevicesPage.ts msgid "TOTP authenticator" msgstr "" diff --git a/web/src/user/user-settings/mfa/MFADevicesPage.ts b/web/src/user/user-settings/mfa/MFADevicesPage.ts index ca848c8c1..72504a0e1 100644 --- a/web/src/user/user-settings/mfa/MFADevicesPage.ts +++ b/web/src/user/user-settings/mfa/MFADevicesPage.ts @@ -138,10 +138,21 @@ export class MFADevicesPage extends Table { `; } + deviceTypeName(device: Device): string { + switch (device.type) { + case "otp_static.StaticDevice": + return t`Static tokens`; + case "otp_totp.TOTPDevice": + return t`TOTP Device`; + default: + return device.verboseName; + } + } + row(item: Device): TemplateResult[] { return [ html`${item.name}`, - html`${item.verboseName}`, + html`${this.deviceTypeName(item)}`, html` ${t`Update`}