diff --git a/web/src/interfaces/AdminInterface.ts b/web/src/interfaces/AdminInterface.ts index 4608f9111..834712761 100644 --- a/web/src/interfaces/AdminInterface.ts +++ b/web/src/interfaces/AdminInterface.ts @@ -5,58 +5,59 @@ import { SidebarItem } from "../elements/sidebar/Sidebar"; import { ID_REGEX, SLUG_REGEX, UUID_REGEX } from "../elements/router/Route"; import { Interface } from "./Interface"; import "./locale"; +import { t } from "@lingui/macro"; export const SIDEBAR_ITEMS: SidebarItem[] = [ - new SidebarItem("Library", "/library"), - new SidebarItem("Monitor").children( - new SidebarItem("Overview", "/administration/overview"), - new SidebarItem("System Tasks", "/administration/system-tasks"), + new SidebarItem(t`Library`, "/library"), + new SidebarItem(t`Monitor`).children( + new SidebarItem(t`Overview`, "/administration/overview"), + new SidebarItem(t`System Tasks`, "/administration/system-tasks"), ).when((): Promise => { return me().then(u => u.user.isSuperuser||false); }), - new SidebarItem("Resources").children( - new SidebarItem("Applications", "/core/applications").activeWhen( + new SidebarItem(t`Resources`).children( + new SidebarItem(t`Applications`, "/core/applications").activeWhen( `^/core/applications/(?${SLUG_REGEX})$` ), - new SidebarItem("Sources", "/core/sources").activeWhen( + new SidebarItem(t`Sources`, "/core/sources").activeWhen( `^/core/sources/(?${SLUG_REGEX})$`, ), - new SidebarItem("Providers", "/core/providers").activeWhen( + new SidebarItem(t`Providers`, "/core/providers").activeWhen( `^/core/providers/(?${ID_REGEX})$`, ), - new SidebarItem("Outposts", "/outpost/outposts"), - new SidebarItem("Outpost Service Connections", "/outpost/service-connections"), + new SidebarItem(t`Outposts`, "/outpost/outposts"), + new SidebarItem(t`Outpost Service Connections`, "/outpost/service-connections"), ).when((): Promise => { return me().then(u => u.user.isSuperuser||false); }), - new SidebarItem("Events").children( - new SidebarItem("Logs", "/events/log").activeWhen( + new SidebarItem(`Events`).children( + new SidebarItem(t`Logs`, "/events/log").activeWhen( `^/events/log/(?${UUID_REGEX})$` ), - new SidebarItem("Notification Rules", "/events/rules"), - new SidebarItem("Notification Transports", "/events/transports"), + new SidebarItem(t`Notification Rules`, "/events/rules"), + new SidebarItem(t`Notification Transports`, "/events/transports"), ).when((): Promise => { return me().then(u => u.user.isSuperuser || false); }), - new SidebarItem("Customisation").children( - new SidebarItem("Policies", "/policy/policies"), - new SidebarItem("Property Mappings", "/core/property-mappings"), + new SidebarItem(t`Customisation`).children( + new SidebarItem(t`Policies`, "/policy/policies"), + new SidebarItem(t`Property Mappings`, "/core/property-mappings"), ).when((): Promise => { return me().then(u => u.user.isSuperuser||false); }), - new SidebarItem("Flows").children( - new SidebarItem("Flows", "/flow/flows").activeWhen(`^/flow/flows/(?${SLUG_REGEX})$`), - new SidebarItem("Stages", "/flow/stages"), - new SidebarItem("Prompts", "/flow/stages/prompts"), - new SidebarItem("Invitations", "/flow/stages/invitations"), + new SidebarItem(t`Flows`).children( + new SidebarItem(t`Flows`, "/flow/flows").activeWhen(`^/flow/flows/(?${SLUG_REGEX})$`), + new SidebarItem(t`Stages`, "/flow/stages"), + new SidebarItem(t`Prompts`, "/flow/stages/prompts"), + new SidebarItem(t`Invitations`, "/flow/stages/invitations"), ).when((): Promise => { return me().then(u => u.user.isSuperuser||false); }), - new SidebarItem("Identity & Cryptography").children( - new SidebarItem("Users", "/identity/users").activeWhen(`^/identity/users/(?${ID_REGEX})$`), - new SidebarItem("Groups", "/identity/groups"), - new SidebarItem("Certificates", "/crypto/certificates"), - new SidebarItem("Tokens", "/core/tokens"), + new SidebarItem(t`Identity & Cryptography`).children( + new SidebarItem(t`Users`, "/identity/users").activeWhen(`^/identity/users/(?${ID_REGEX})$`), + new SidebarItem(t`Groups`, "/identity/groups"), + new SidebarItem(t`Certificates`, "/crypto/certificates"), + new SidebarItem(t`Tokens`, "/core/tokens"), ).when((): Promise => { return me().then(u => u.user.isSuperuser||false); }), diff --git a/web/src/interfaces/locale.ts b/web/src/interfaces/locale.ts index d6d8c6a64..28ce726e5 100644 --- a/web/src/interfaces/locale.ts +++ b/web/src/interfaces/locale.ts @@ -7,7 +7,11 @@ i18n.loadLocaleData("en", { }); i18n.load("en", localeEN); i18n.activate("en"); + // Uncomment to debug localisation // import { messages as localeDEBUG } from "../locales/pseudo-LOCALE"; // i18n.load("debug", localeDEBUG); // i18n.activate("debug"); +// i18n.loadLocaleData("debug", { +// plurals: en +// }); diff --git a/web/src/locales/en.po b/web/src/locales/en.po index e339e522c..d58158d6e 100644 --- a/web/src/locales/en.po +++ b/web/src/locales/en.po @@ -164,6 +164,7 @@ msgstr "Application requires following permissions" msgid "Application's display Name." msgstr "Application's display Name." +#: src/interfaces/AdminInterface.ts:20 #: src/pages/LibraryPage.ts:92 #: src/pages/LibraryPage.ts:131 #: src/pages/applications/ApplicationListPage.ts:28 @@ -410,6 +411,10 @@ msgstr "Certificate-Key Pairs" msgid "Certificate/Key used for authentication. Can be left empty for no authentication." msgstr "Certificate/Key used for authentication. Can be left empty for no authentication." +#: src/interfaces/AdminInterface.ts:32 +msgid "Certificates" +msgstr "Certificates" + #: src/pages/user-settings/settings/UserSettingsPassword.ts:22 msgid "Change password" msgstr "Change password" @@ -763,6 +768,10 @@ msgstr "Created {0}" msgid "Creation Date" msgstr "Creation Date" +#: src/interfaces/AdminInterface.ts:26 +msgid "Customisation" +msgstr "Customisation" + #: src/pages/providers/saml/SAMLProviderForm.ts:249 #: src/pages/sources/saml/SAMLSourceForm.ts:211 msgid "DSA-SHA1" @@ -1231,6 +1240,8 @@ msgstr "Flow used by an authenticated user to configure this Stage. If empty, us msgid "Flow used when authorizing this provider." msgstr "Flow used when authorizing this provider." +#: src/interfaces/AdminInterface.ts:29 +#: src/interfaces/AdminInterface.ts:29 #: src/pages/flows/FlowListPage.ts:28 msgid "Flows" msgstr "Flows" @@ -1303,6 +1314,7 @@ msgstr "Group users together and give them permissions based on the membership." msgid "Group {0}" msgstr "Group {0}" +#: src/interfaces/AdminInterface.ts:32 #: src/pages/groups/GroupListPage.ts:27 msgid "Groups" msgstr "Groups" @@ -1366,6 +1378,10 @@ msgstr "Icon" msgid "Identifier" msgstr "Identifier" +#: src/interfaces/AdminInterface.ts:32 +msgid "Identity & Cryptography" +msgstr "Identity & Cryptography" + #: src/pages/outposts/ServiceConnectionDockerForm.ts:64 #: src/pages/outposts/ServiceConnectionKubernetesForm.ts:65 msgid "If enabled, use the local connection. Required Docker socket/Kubernetes Integration." @@ -1432,6 +1448,7 @@ msgstr "Internal host SSL Validation" msgid "Invalidation" msgstr "Invalidation" +#: src/interfaces/AdminInterface.ts:29 #: src/pages/stages/invitation/InvitationListPage.ts:28 msgid "Invitations" msgstr "Invitations" @@ -1506,6 +1523,10 @@ msgstr "Last sync: {0}" msgid "Launch URL" msgstr "Launch URL" +#: src/interfaces/AdminInterface.ts:16 +msgid "Library" +msgstr "Library" + #: src/elements/table/Table.ts:113 #: src/flows/FlowExecutor.ts:154 #: src/flows/FlowExecutor.ts:200 @@ -1556,6 +1577,10 @@ msgstr "Logins over the last 24 hours" msgid "Logout URL" msgstr "Logout URL" +#: src/interfaces/AdminInterface.ts:23 +msgid "Logs" +msgstr "Logs" + #: src/pages/system-tasks/SystemTaskListPage.ts:27 msgid "Long-running operations which authentik executes in the background." msgstr "Long-running operations which authentik executes in the background." @@ -1618,6 +1643,10 @@ msgstr "Mode" msgid "Model Name" msgstr "Model Name" +#: src/interfaces/AdminInterface.ts:17 +msgid "Monitor" +msgstr "Monitor" + #: src/pages/applications/ApplicationForm.ts:78 #: src/pages/applications/ApplicationListPage.ts:57 #: src/pages/crypto/CertificateKeyPairForm.ts:46 @@ -1711,8 +1740,14 @@ msgid "New version available!" msgstr "New version available!" #: src/pages/crypto/CertificateKeyPairListPage.ts:61 +#: src/pages/groups/GroupListPage.ts:58 +#: src/pages/outposts/ServiceConnectionListPage.ts:63 +#: src/pages/policies/BoundPoliciesList.ts:117 #: src/pages/policies/PolicyTestForm.ts:38 #: src/pages/providers/proxy/ProxyProviderViewPage.ts:118 +#: src/pages/tokens/TokenListPage.ts:56 +#: src/pages/user-settings/tokens/UserTokenList.ts:83 +#: src/pages/users/UserListPage.ts:62 msgid "No" msgstr "No" @@ -1801,10 +1836,12 @@ msgstr "Not you?" msgid "Notice" msgstr "Notice" +#: src/interfaces/AdminInterface.ts:23 #: src/pages/events/RuleListPage.ts:29 msgid "Notification Rules" msgstr "Notification Rules" +#: src/interfaces/AdminInterface.ts:23 #: src/pages/events/TransportListPage.ts:28 msgid "Notification Transports" msgstr "Notification Transports" @@ -1931,10 +1968,19 @@ msgstr "Outpost" msgid "Outpost Deployment Info" msgstr "Outpost Deployment Info" +#: src/interfaces/AdminInterface.ts:20 +msgid "Outpost Service Connections" +msgstr "Outpost Service Connections" + #: src/pages/outposts/ServiceConnectionListPage.ts:93 msgid "Outpost Service-connection" msgstr "Outpost Service-connection" +#: src/interfaces/AdminInterface.ts:20 +msgid "Outposts" +msgstr "Outposts" + +#: src/interfaces/AdminInterface.ts:17 #: src/pages/applications/ApplicationViewPage.ts:66 #: src/pages/providers/oauth2/OAuth2ProviderViewPage.ts:75 #: src/pages/providers/proxy/ProxyProviderViewPage.ts:66 @@ -1998,6 +2044,7 @@ msgstr "Please enter your TOTP Code" msgid "Please enter your password" msgstr "Please enter your password" +#: src/interfaces/AdminInterface.ts:26 #: src/pages/admin-overview/AdminOverviewPage.ts:44 #: src/pages/policies/PolicyListPage.ts:38 msgid "Policies" @@ -2079,6 +2126,7 @@ msgstr "Profile URL" msgid "Prompt" msgstr "Prompt" +#: src/interfaces/AdminInterface.ts:29 #: src/pages/stages/prompt/PromptListPage.ts:28 msgid "Prompts" msgstr "Prompts" @@ -2087,6 +2135,7 @@ msgstr "Prompts" msgid "Property Mapping" msgstr "Property Mapping" +#: src/interfaces/AdminInterface.ts:26 #: src/pages/property-mappings/PropertyMappingListPage.ts:35 msgid "Property Mappings" msgstr "Property Mappings" @@ -2131,6 +2180,7 @@ msgstr "Provider Type" msgid "Provider type" msgstr "Provider type" +#: src/interfaces/AdminInterface.ts:20 #: src/pages/admin-overview/AdminOverviewPage.ts:42 #: src/pages/outposts/OutpostForm.ts:80 msgid "Providers" @@ -2265,6 +2315,10 @@ msgstr "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only." msgid "Reset Password" msgstr "Reset Password" +#: src/interfaces/AdminInterface.ts:20 +msgid "Resources" +msgstr "Resources" + #: src/pages/events/EventInfo.ts:171 #: src/pages/property-mappings/PropertyMappingTestForm.ts:34 msgid "Result" @@ -2512,6 +2566,10 @@ msgstr "Source" msgid "Source {0}" msgstr "Source {0}" +#: src/interfaces/AdminInterface.ts:20 +msgid "Sources" +msgstr "Sources" + #: src/pages/flows/StageBindingForm.ts:94 msgid "Stage" msgstr "Stage" @@ -2546,6 +2604,10 @@ msgstr "Stage used to configure Authenticator when user doesn't have any compati msgid "Stage-specific settings" msgstr "Stage-specific settings" +#: src/interfaces/AdminInterface.ts:29 +msgid "Stages" +msgstr "Stages" + #: src/pages/stages/authenticator_validate/AuthenticatorValidateStageForm.ts:101 #: src/pages/user-settings/settings/UserSettingsAuthenticatorTOTP.ts:77 msgid "Static Tokens" @@ -2871,6 +2933,7 @@ msgstr "Sync users' passwords" msgid "System Overview" msgstr "System Overview" +#: src/interfaces/AdminInterface.ts:17 #: src/pages/system-tasks/SystemTaskListPage.ts:24 msgid "System Tasks" msgstr "System Tasks" @@ -2984,6 +3047,7 @@ msgid "Token validity" msgstr "Token validity" #: src/flows/stages/authenticator_static/AuthenticatorStaticStage.ts:62 +#: src/interfaces/AdminInterface.ts:32 #: src/pages/tokens/TokenListPage.ts:26 #: src/pages/user-settings/UserSettingsPage.ts:80 msgid "Tokens" @@ -3281,6 +3345,7 @@ msgstr "Username" msgid "Username: Same as Text input, but checks for and prevents duplicate usernames." msgstr "Username: Same as Text input, but checks for and prevents duplicate usernames." +#: src/interfaces/AdminInterface.ts:32 #: src/pages/admin-overview/AdminOverviewPage.ts:46 #: src/pages/users/UserListPage.ts:31 msgid "Users" @@ -3423,8 +3488,14 @@ msgid "X509 Subject" msgstr "X509 Subject" #: src/pages/crypto/CertificateKeyPairListPage.ts:61 +#: src/pages/groups/GroupListPage.ts:58 +#: src/pages/outposts/ServiceConnectionListPage.ts:63 +#: src/pages/policies/BoundPoliciesList.ts:117 #: src/pages/policies/PolicyTestForm.ts:38 #: src/pages/providers/proxy/ProxyProviderViewPage.ts:115 +#: src/pages/tokens/TokenListPage.ts:56 +#: src/pages/user-settings/tokens/UserTokenList.ts:83 +#: src/pages/users/UserListPage.ts:62 msgid "Yes" msgstr "Yes" diff --git a/web/src/locales/pseudo-LOCALE.po b/web/src/locales/pseudo-LOCALE.po index e213ea808..dbdcb83d2 100644 --- a/web/src/locales/pseudo-LOCALE.po +++ b/web/src/locales/pseudo-LOCALE.po @@ -6,6 +6,12 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: @lingui/cli\n" "Language: pseudo-LOCALE\n" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: \n" +"Last-Translator: \n" +"Language-Team: \n" +"Plural-Forms: \n" #: src/pages/policies/BoundPoliciesList.ts:54 msgid "-" @@ -158,6 +164,7 @@ msgstr "" msgid "Application's display Name." msgstr "" +#: src/interfaces/AdminInterface.ts:20 #: src/pages/LibraryPage.ts:92 #: src/pages/LibraryPage.ts:131 #: src/pages/applications/ApplicationListPage.ts:28 @@ -400,6 +407,10 @@ msgstr "" msgid "Certificate/Key used for authentication. Can be left empty for no authentication." msgstr "" +#: src/interfaces/AdminInterface.ts:32 +msgid "Certificates" +msgstr "" + #: src/pages/user-settings/settings/UserSettingsPassword.ts:22 msgid "Change password" msgstr "" @@ -753,6 +764,10 @@ msgstr "" msgid "Creation Date" msgstr "" +#: src/interfaces/AdminInterface.ts:26 +msgid "Customisation" +msgstr "" + #: src/pages/providers/saml/SAMLProviderForm.ts:249 #: src/pages/sources/saml/SAMLSourceForm.ts:211 msgid "DSA-SHA1" @@ -1221,6 +1236,8 @@ msgstr "" msgid "Flow used when authorizing this provider." msgstr "" +#: src/interfaces/AdminInterface.ts:29 +#: src/interfaces/AdminInterface.ts:29 #: src/pages/flows/FlowListPage.ts:28 msgid "Flows" msgstr "" @@ -1293,6 +1310,7 @@ msgstr "" msgid "Group {0}" msgstr "" +#: src/interfaces/AdminInterface.ts:32 #: src/pages/groups/GroupListPage.ts:27 msgid "Groups" msgstr "" @@ -1352,6 +1370,10 @@ msgstr "" msgid "Identifier" msgstr "" +#: src/interfaces/AdminInterface.ts:32 +msgid "Identity & Cryptography" +msgstr "" + #: src/pages/outposts/ServiceConnectionDockerForm.ts:64 #: src/pages/outposts/ServiceConnectionKubernetesForm.ts:65 msgid "If enabled, use the local connection. Required Docker socket/Kubernetes Integration." @@ -1418,6 +1440,7 @@ msgstr "" msgid "Invalidation" msgstr "" +#: src/interfaces/AdminInterface.ts:29 #: src/pages/stages/invitation/InvitationListPage.ts:28 msgid "Invitations" msgstr "" @@ -1492,6 +1515,10 @@ msgstr "" msgid "Launch URL" msgstr "" +#: src/interfaces/AdminInterface.ts:16 +msgid "Library" +msgstr "" + #: src/elements/table/Table.ts:113 #: src/flows/FlowExecutor.ts:154 #: src/flows/FlowExecutor.ts:200 @@ -1542,6 +1569,10 @@ msgstr "" msgid "Logout URL" msgstr "" +#: src/interfaces/AdminInterface.ts:23 +msgid "Logs" +msgstr "" + #: src/pages/system-tasks/SystemTaskListPage.ts:27 msgid "Long-running operations which authentik executes in the background." msgstr "" @@ -1604,6 +1635,10 @@ msgstr "" msgid "Model Name" msgstr "" +#: src/interfaces/AdminInterface.ts:17 +msgid "Monitor" +msgstr "" + #: src/pages/applications/ApplicationForm.ts:78 #: src/pages/applications/ApplicationListPage.ts:57 #: src/pages/crypto/CertificateKeyPairForm.ts:46 @@ -1697,8 +1732,14 @@ msgid "New version available!" msgstr "" #: src/pages/crypto/CertificateKeyPairListPage.ts:61 +#: src/pages/groups/GroupListPage.ts:58 +#: src/pages/outposts/ServiceConnectionListPage.ts:63 +#: src/pages/policies/BoundPoliciesList.ts:117 #: src/pages/policies/PolicyTestForm.ts:38 #: src/pages/providers/proxy/ProxyProviderViewPage.ts:118 +#: src/pages/tokens/TokenListPage.ts:56 +#: src/pages/user-settings/tokens/UserTokenList.ts:83 +#: src/pages/users/UserListPage.ts:62 msgid "No" msgstr "" @@ -1787,10 +1828,12 @@ msgstr "" msgid "Notice" msgstr "" +#: src/interfaces/AdminInterface.ts:23 #: src/pages/events/RuleListPage.ts:29 msgid "Notification Rules" msgstr "" +#: src/interfaces/AdminInterface.ts:23 #: src/pages/events/TransportListPage.ts:28 msgid "Notification Transports" msgstr "" @@ -1917,10 +1960,19 @@ msgstr "" msgid "Outpost Deployment Info" msgstr "" +#: src/interfaces/AdminInterface.ts:20 +msgid "Outpost Service Connections" +msgstr "" + #: src/pages/outposts/ServiceConnectionListPage.ts:93 msgid "Outpost Service-connection" msgstr "" +#: src/interfaces/AdminInterface.ts:20 +msgid "Outposts" +msgstr "" + +#: src/interfaces/AdminInterface.ts:17 #: src/pages/applications/ApplicationViewPage.ts:66 #: src/pages/providers/oauth2/OAuth2ProviderViewPage.ts:75 #: src/pages/providers/proxy/ProxyProviderViewPage.ts:66 @@ -1984,6 +2036,7 @@ msgstr "" msgid "Please enter your password" msgstr "" +#: src/interfaces/AdminInterface.ts:26 #: src/pages/admin-overview/AdminOverviewPage.ts:44 #: src/pages/policies/PolicyListPage.ts:38 msgid "Policies" @@ -2065,6 +2118,7 @@ msgstr "" msgid "Prompt" msgstr "" +#: src/interfaces/AdminInterface.ts:29 #: src/pages/stages/prompt/PromptListPage.ts:28 msgid "Prompts" msgstr "" @@ -2073,6 +2127,7 @@ msgstr "" msgid "Property Mapping" msgstr "" +#: src/interfaces/AdminInterface.ts:26 #: src/pages/property-mappings/PropertyMappingListPage.ts:35 msgid "Property Mappings" msgstr "" @@ -2117,6 +2172,7 @@ msgstr "" msgid "Provider type" msgstr "" +#: src/interfaces/AdminInterface.ts:20 #: src/pages/admin-overview/AdminOverviewPage.ts:42 #: src/pages/outposts/OutpostForm.ts:80 msgid "Providers" @@ -2251,6 +2307,10 @@ msgstr "" msgid "Reset Password" msgstr "" +#: src/interfaces/AdminInterface.ts:20 +msgid "Resources" +msgstr "" + #: src/pages/events/EventInfo.ts:171 #: src/pages/property-mappings/PropertyMappingTestForm.ts:34 msgid "Result" @@ -2498,6 +2558,10 @@ msgstr "" msgid "Source {0}" msgstr "" +#: src/interfaces/AdminInterface.ts:20 +msgid "Sources" +msgstr "" + #: src/pages/flows/StageBindingForm.ts:94 msgid "Stage" msgstr "" @@ -2532,6 +2596,10 @@ msgstr "" msgid "Stage-specific settings" msgstr "" +#: src/interfaces/AdminInterface.ts:29 +msgid "Stages" +msgstr "" + #: src/pages/stages/authenticator_validate/AuthenticatorValidateStageForm.ts:101 #: src/pages/user-settings/settings/UserSettingsAuthenticatorTOTP.ts:77 msgid "Static Tokens" @@ -2857,6 +2925,7 @@ msgstr "" msgid "System Overview" msgstr "" +#: src/interfaces/AdminInterface.ts:17 #: src/pages/system-tasks/SystemTaskListPage.ts:24 msgid "System Tasks" msgstr "" @@ -2970,6 +3039,7 @@ msgid "Token validity" msgstr "" #: src/flows/stages/authenticator_static/AuthenticatorStaticStage.ts:62 +#: src/interfaces/AdminInterface.ts:32 #: src/pages/tokens/TokenListPage.ts:26 #: src/pages/user-settings/UserSettingsPage.ts:80 msgid "Tokens" @@ -3267,6 +3337,7 @@ msgstr "" msgid "Username: Same as Text input, but checks for and prevents duplicate usernames." msgstr "" +#: src/interfaces/AdminInterface.ts:32 #: src/pages/admin-overview/AdminOverviewPage.ts:46 #: src/pages/users/UserListPage.ts:31 msgid "Users" @@ -3409,8 +3480,14 @@ msgid "X509 Subject" msgstr "" #: src/pages/crypto/CertificateKeyPairListPage.ts:61 +#: src/pages/groups/GroupListPage.ts:58 +#: src/pages/outposts/ServiceConnectionListPage.ts:63 +#: src/pages/policies/BoundPoliciesList.ts:117 #: src/pages/policies/PolicyTestForm.ts:38 #: src/pages/providers/proxy/ProxyProviderViewPage.ts:115 +#: src/pages/tokens/TokenListPage.ts:56 +#: src/pages/user-settings/tokens/UserTokenList.ts:83 +#: src/pages/users/UserListPage.ts:62 msgid "Yes" msgstr "" diff --git a/web/src/pages/groups/GroupListPage.ts b/web/src/pages/groups/GroupListPage.ts index 3c6c07a86..d74d005af 100644 --- a/web/src/pages/groups/GroupListPage.ts +++ b/web/src/pages/groups/GroupListPage.ts @@ -54,7 +54,7 @@ export class GroupListPage extends TablePage { html`${item.name}`, html`${item.parent || "-"}`, html`${item.users?.keys.length}`, - html`${item.isSuperuser ? "Yes" : "No"}`, + html`${item.isSuperuser ? t`Yes` : t`No`}`, html` diff --git a/web/src/pages/outposts/ServiceConnectionListPage.ts b/web/src/pages/outposts/ServiceConnectionListPage.ts index a8f81380f..a8ba1f387 100644 --- a/web/src/pages/outposts/ServiceConnectionListPage.ts +++ b/web/src/pages/outposts/ServiceConnectionListPage.ts @@ -60,7 +60,7 @@ export class OutpostServiceConnectionListPage extends TablePage { row(item: PolicyBinding): TemplateResult[] { return [ html`${this.getPolicyUserGroupRow(item)}`, - html`${item.enabled ? "Yes" : "No"}`, + html`${item.enabled ? t`Yes` : t`No`}`, html`${item.order}`, html`${item.timeout}`, html` diff --git a/web/src/pages/tokens/TokenListPage.ts b/web/src/pages/tokens/TokenListPage.ts index cc323a8ce..a63332b09 100644 --- a/web/src/pages/tokens/TokenListPage.ts +++ b/web/src/pages/tokens/TokenListPage.ts @@ -52,7 +52,7 @@ export class TokenListPage extends TablePage { return [ html`${item.identifier}`, html`${item.user?.username}`, - html`${item.expiring ? "Yes" : "No"}`, + html`${item.expiring ? t`Yes` : t`No`}`, html`${item.expiring ? item.expires?.toLocaleString() : "-"}`, html` { ${t`Expiring`}
-
${item.expiring ? "Yes" : "No"}
+
${item.expiring ? t`Yes` : t`No`}
diff --git a/web/src/pages/users/UserListPage.ts b/web/src/pages/users/UserListPage.ts index 065dd5a68..c920fc272 100644 --- a/web/src/pages/users/UserListPage.ts +++ b/web/src/pages/users/UserListPage.ts @@ -58,7 +58,7 @@ export class UserListPage extends TablePage {
${item.username}
${item.name} `, - html`${item.isActive ? "Yes" : "No"}`, + html`${item.isActive ? t`Yes` : t`No`}`, html`${item.lastLogin?.toLocaleString()}`, html`