From 73b78f625dd101d088d00bd6836343f3daf4bb11 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Wed, 3 Sep 2025 10:11:19 -0700 Subject: [PATCH] more translations --- .../public/locales/en-US/translation.json | 29 ++++++++++++++++++- .../security/components/allowed-domains.tsx | 6 ++-- .../security/components/sso-google-form.tsx | 3 +- .../ee/security/components/sso-ldap-form.tsx | 4 +-- .../ee/security/components/sso-oidc-form.tsx | 2 +- .../components/sso-provider-modal.tsx | 7 ++++- .../ee/security/components/sso-saml-form.tsx | 5 ++-- .../search/components/search-result-item.tsx | 22 ++++++++------ .../components/search-spotlight-filters.tsx | 22 +++++++------- 9 files changed, 70 insertions(+), 30 deletions(-) diff --git a/apps/client/public/locales/en-US/translation.json b/apps/client/public/locales/en-US/translation.json index 3efcdfec..e4019584 100644 --- a/apps/client/public/locales/en-US/translation.json +++ b/apps/client/public/locales/en-US/translation.json @@ -53,6 +53,7 @@ "e.g Space for product team": "e.g Space for product team", "e.g Space for sales team to collaborate": "e.g Space for sales team to collaborate", "Edit": "Edit", + "Read": "Read", "Edit group": "Edit group", "Email": "Email", "Enter a strong password": "Enter a strong password", @@ -500,5 +501,31 @@ "Failed to load subpages": "Failed to load subpages", "No subpages": "No subpages", "Subpages (Child pages)": "Subpages (Child pages)", - "List all subpages of the current page": "List all subpages of the current page" + "List all subpages of the current page": "List all subpages of the current page", + "Attachments": "Attachments", + "All spaces": "All spaces", + "Unknown": "Unknown", + "Find a space": "Find a space", + "Search in all your spaces": "Search in all your spaces", + "Type": "Type", + "Enterprise": "Enterprise", + "Download attachment": "Download attachment", + "Allowed email domains": "Allowed email domains", + "Only users with email addresses from these domains can signup via SSO.": "Only users with email addresses from these domains can signup via SSO.", + "Enter valid domain names separated by comma or space": "Enter valid domain names separated by comma or space", + "Enforce two-factor authentication": "Enforce two-factor authentication", + "Once enforced, all members must enable two-factor authentication to access the workspace." : "Once enforced, all members must enable two-factor authentication to access the workspace.", + "Toggle MFA enforcement": "Toggle MFA enforcement", + "Display name": "Display name", + "Allow signup": "Allow signup", + "Enabled": "Enabled", + "Advanced Settings": "Advanced Settings", + "Enable TLS/SSL": "Enable TLS/SSL", + "Use secure connection to LDAP server": "Use secure connection to LDAP server", + "Group sync": "Group sync", + "No SSO providers found.": "No SSO providers found.", + "Delete SSO provider": "Delete SSO provider", + "Are you sure you want to delete this SSO provider?": "Are you sure you want to delete this SSO provider?", + "Action": "Action", + "{{ssoProviderType}} configuration": "{{ssoProviderType}} configuration" } diff --git a/apps/client/src/ee/security/components/allowed-domains.tsx b/apps/client/src/ee/security/components/allowed-domains.tsx index 6576c460..d1050975 100644 --- a/apps/client/src/ee/security/components/allowed-domains.tsx +++ b/apps/client/src/ee/security/components/allowed-domains.tsx @@ -55,9 +55,11 @@ export default function AllowedDomains() { return ( <>
- Allowed email domains + {t("Allowed email domains")} - Only users with email addresses from these domains can signup via SSO. + {t( + "Only users with email addresses from these domains can signup via SSO.", + )}
diff --git a/apps/client/src/ee/security/components/sso-google-form.tsx b/apps/client/src/ee/security/components/sso-google-form.tsx index 97a39a3b..ddd14b0f 100644 --- a/apps/client/src/ee/security/components/sso-google-form.tsx +++ b/apps/client/src/ee/security/components/sso-google-form.tsx @@ -1,6 +1,7 @@ import React from "react"; import { z } from "zod"; -import { useForm, zodResolver } from "@mantine/form"; +import { useForm } from "@mantine/form"; +import { zodResolver } from "mantine-form-zod-resolver"; import { Box, Button, Group, Stack, Switch, TextInput } from "@mantine/core"; import classes from "@/ee/security/components/sso.module.css"; import { IAuthProvider } from "@/ee/security/types/security.types.ts"; diff --git a/apps/client/src/ee/security/components/sso-ldap-form.tsx b/apps/client/src/ee/security/components/sso-ldap-form.tsx index c570a51c..662e8458 100644 --- a/apps/client/src/ee/security/components/sso-ldap-form.tsx +++ b/apps/client/src/ee/security/components/sso-ldap-form.tsx @@ -110,7 +110,7 @@ export function SsoLDAPForm({ provider, onClose }: SsoFormProps) { }> - Advanced Settings + {t("Advanced Settings")} diff --git a/apps/client/src/ee/security/components/sso-oidc-form.tsx b/apps/client/src/ee/security/components/sso-oidc-form.tsx index b1c19aa4..6f12e5d2 100644 --- a/apps/client/src/ee/security/components/sso-oidc-form.tsx +++ b/apps/client/src/ee/security/components/sso-oidc-form.tsx @@ -83,7 +83,7 @@ export function SsoOIDCForm({ provider, onClose }: SsoFormProps) { {provider.type === SSO_PROVIDER.SAML && ( diff --git a/apps/client/src/ee/security/components/sso-saml-form.tsx b/apps/client/src/ee/security/components/sso-saml-form.tsx index 696277bd..bf374697 100644 --- a/apps/client/src/ee/security/components/sso-saml-form.tsx +++ b/apps/client/src/ee/security/components/sso-saml-form.tsx @@ -1,6 +1,7 @@ import React from "react"; import { z } from "zod"; -import { useForm, zodResolver } from "@mantine/form"; +import { useForm } from "@mantine/form"; +import { zodResolver } from "mantine-form-zod-resolver"; import { Box, Button, @@ -91,7 +92,7 @@ export function SsoSamlForm({ provider, onClose }: SsoFormProps) { - - - + + + + + ); diff --git a/apps/client/src/features/search/components/search-spotlight-filters.tsx b/apps/client/src/features/search/components/search-spotlight-filters.tsx index d8f770e7..ce8bda02 100644 --- a/apps/client/src/features/search/components/search-spotlight-filters.tsx +++ b/apps/client/src/features/search/components/search-spotlight-filters.tsx @@ -75,10 +75,10 @@ export function SearchSpotlightFilters({ }, []); const contentTypeOptions = [ - { value: "page", label: "Pages" }, + { value: "page", label: t("Pages") }, { value: "attachment", - label: "Attachments", + label: t("Attachments"), disabled: !hasLicenseKey, }, ]; @@ -136,13 +136,13 @@ export function SearchSpotlightFilters({ fw={500} > {selectedSpaceId - ? `Space: ${selectedSpaceData?.name || "Unknown"}` - : "Space: All spaces"} + ? `${t("Space")}: ${selectedSpaceData?.name || t("Unknown")}` + : `${t("Space")}: ${t("All spaces")}`} } @@ -160,15 +160,15 @@ export function SearchSpotlightFilters({
- All spaces + {t("All spaces")} - Search in all your spaces + {t("Search in all your spaces")}
{!selectedSpaceId && } @@ -217,8 +217,8 @@ export function SearchSpotlightFilters({ fw={500} > {contentType - ? `Type: ${contentTypeOptions.find((opt) => opt.value === contentType)?.label || contentType}` - : "Type"} + ? `${t("Type")}: ${contentTypeOptions.find((opt) => opt.value === contentType)?.label || t(contentType === "page" ? "Pages" : "Attachments")}` + : t("Type")} @@ -237,7 +237,7 @@ export function SearchSpotlightFilters({ {option.label} {option.disabled && ( - Enterprise + {t("Enterprise")} )}