web: translate sidebar and more list pages

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-03 19:59:22 +02:00
parent 55c24de8c7
commit 5923edc69a
10 changed files with 186 additions and 33 deletions

View File

@ -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<boolean> => {
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>${SLUG_REGEX})$`
),
new SidebarItem("Sources", "/core/sources").activeWhen(
new SidebarItem(t`Sources`, "/core/sources").activeWhen(
`^/core/sources/(?<slug>${SLUG_REGEX})$`,
),
new SidebarItem("Providers", "/core/providers").activeWhen(
new SidebarItem(t`Providers`, "/core/providers").activeWhen(
`^/core/providers/(?<id>${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<boolean> => {
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/(?<id>${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<boolean> => {
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<boolean> => {
return me().then(u => u.user.isSuperuser||false);
}),
new SidebarItem("Flows").children(
new SidebarItem("Flows", "/flow/flows").activeWhen(`^/flow/flows/(?<slug>${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>${SLUG_REGEX})$`),
new SidebarItem(t`Stages`, "/flow/stages"),
new SidebarItem(t`Prompts`, "/flow/stages/prompts"),
new SidebarItem(t`Invitations`, "/flow/stages/invitations"),
).when((): Promise<boolean> => {
return me().then(u => u.user.isSuperuser||false);
}),
new SidebarItem("Identity & Cryptography").children(
new SidebarItem("Users", "/identity/users").activeWhen(`^/identity/users/(?<id>${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>${ID_REGEX})$`),
new SidebarItem(t`Groups`, "/identity/groups"),
new SidebarItem(t`Certificates`, "/crypto/certificates"),
new SidebarItem(t`Tokens`, "/core/tokens"),
).when((): Promise<boolean> => {
return me().then(u => u.user.isSuperuser||false);
}),

View File

@ -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
// });

View File

@ -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"

View File

@ -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 ""

View File

@ -54,7 +54,7 @@ export class GroupListPage extends TablePage<Group> {
html`${item.name}`,
html`${item.parent || "-"}`,
html`${item.users?.keys.length}`,
html`${item.isSuperuser ? "Yes" : "No"}`,
html`${item.isSuperuser ? t`Yes` : t`No`}`,
html`
<ak-forms-modal>
<span slot="submit">

View File

@ -60,7 +60,7 @@ export class OutpostServiceConnectionListPage extends TablePage<ServiceConnectio
return [
html`${item.name}`,
html`${item.verboseName}`,
html`${item.local ? "Yes" : "No"}`,
html`${item.local ? t`Yes` : t`No`}`,
html`${until(
new OutpostsApi(DEFAULT_CONFIG).outpostsServiceConnectionsAllState({
uuid: item.pk || ""

View File

@ -112,7 +112,7 @@ export class BoundPoliciesList extends Table<PolicyBinding> {
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`

View File

@ -52,7 +52,7 @@ export class TokenListPage extends TablePage<Token> {
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`
<ak-forms-delete

View File

@ -82,7 +82,7 @@ export class UserTokenList extends Table<Token> {
<span class="pf-c-description-list__text">${t`Expiring`}</span>
</dt>
<dd class="pf-c-description-list__description">
<div class="pf-c-description-list__text">${item.expiring ? "Yes" : "No"}</div>
<div class="pf-c-description-list__text">${item.expiring ? t`Yes` : t`No`}</div>
</dd>
</div>
<div class="pf-c-description-list__group">

View File

@ -58,7 +58,7 @@ export class UserListPage extends TablePage<User> {
<div>${item.username}</div>
<small>${item.name}</small>
</a>`,
html`${item.isActive ? "Yes" : "No"}`,
html`${item.isActive ? t`Yes` : t`No`}`,
html`${item.lastLogin?.toLocaleString()}`,
html`
<ak-forms-modal>