From b14d1e86b8fb13b665046e90adcc4f859c390cb5 Mon Sep 17 00:00:00 2001 From: Jason Madigan Date: Thu, 17 Oct 2024 17:56:35 +0100 Subject: [PATCH] i18n updates Signed-off-by: Jason Madigan --- .../en/plugin__kuadrant-console-plugin.json | 46 ++++++++----------- src/components/dnspolicy/HealthCheckField.tsx | 9 ++-- .../dnspolicy/LoadBalancingField.tsx | 6 +-- 3 files changed, 27 insertions(+), 34 deletions(-) diff --git a/locales/en/plugin__kuadrant-console-plugin.json b/locales/en/plugin__kuadrant-console-plugin.json index fb4f0bf..52e6246 100644 --- a/locales/en/plugin__kuadrant-console-plugin.json +++ b/locales/en/plugin__kuadrant-console-plugin.json @@ -1,15 +1,12 @@ { "6 min read": "6 min read", "Add a new Gateway": "Add a new Gateway", - "Add Custom Weight Selector": "Add Custom Weight Selector", "Add Limit": "Add Limit", - "Add Match Expression": "Add Match Expression", - "Add Match Label": "Add Match Label", - "Add Value": "Add Value", "All Policies": "All Policies", "API Designer": "API Designer", "APIs / HTTPRoutes": "APIs / HTTPRoutes", "Auth": "Auth", + "AuthPolicy": "AuthPolicy", "Cancel": "Cancel", "Cert manager issuer type": "Cert manager issuer type", "cert-manager Operator": "cert-manager Operator", @@ -21,36 +18,37 @@ "Configured Limits": "Configured Limits", "Create": "Create", "Create AuthPolicy": "Create AuthPolicy", - "Create DNSPolicy": "Create DNSPolicy", + "Create DNS Policy": "Create DNS Policy", "Create Policies in": "Create Policies in", - "Create RateLimitPolicy": "Create RateLimitPolicy", + "Create Policy": "Create Policy", + "Create RateLimit Policy": "Create RateLimit Policy", "Create TLS Policy": "Create TLS Policy", "Created": "Created", - "Custom Weight Selectors": "Custom Weight Selectors", "Default Geo": "Default Geo", - "Default Weight": "Default Weight", "Define Rate Limit": "Define Rate Limit", + "Disabled": "Disabled", "DNS": "DNS", + "DNSPolicy": "DNSPolicy", "DNSPolicy configures how North-South based traffic should be balanced and reach the gateways": "DNSPolicy configures how North-South based traffic should be balanced and reach the gateways", "Duration": "Duration", "Ease operational complexity with API management and App Connectivity by using additional Operators and tools.": "Ease operational complexity with API management and App Connectivity by using additional Operators and tools.", + "Edit DNS Policy": "Edit DNS Policy", "Edit TLS Policy": "Edit TLS Policy", + "Enabled": "Enabled", "Endpoint": "Endpoint", "Enhance Your Work": "Enhance Your Work", "Error creating AuthPolicy": "Error creating AuthPolicy", - "Error creating DNSPolicy": "Error creating DNSPolicy", - "Error creating RateLimitPolicy": "Error creating RateLimitPolicy", + "Error creating Rate Limit Policy": "Error creating Rate Limit Policy", "Error parsing YAML:": "Error parsing YAML:", "Expand Getting Started": "Expand Getting Started", - "Expression Key": "Key", - "Expression Operator": "Operator", - "Expression Values": "Values", "Failure Threshold": "Failure Threshold", "Feature Highlights": "Feature Highlights", "Form View": "Form View", "Gateway API Target Reference": "Gateway API Target Reference", "Gateway: Reference to a Kubernetes resource that the policy attaches to. To create an additional gateway go to": "Gateway: Reference to a Kubernetes resource that the policy attaches to. To create an additional gateway go to", "Gateways": "Gateways", + "Geo": "Geo", + "Geography Label (e.g. 'eu')": "Geography Label (e.g. 'eu')", "Getting started resources": "Getting started resources", "Health Check": "Health Check", "Hide for session": "Hide for session", @@ -66,10 +64,12 @@ "Limit": "Limit", "Limit Name": "Limit Name", "Limit Name is required!": "Limit Name is required!", + "Load balancing options:.": "Load balancing options:.", "Loading..": "Loading..", "Name": "Name", "Namespace": "Namespace", "No limits configured yet": "No limits configured yet", + "No policies found": "No policies found", "OK": "OK", "Overview": "Overview", "Policies": "Policies", @@ -78,19 +78,14 @@ "Policy Topology": "Policy Topology", "Port": "Port", "Protocol": "Protocol", + "Provider Ref": "Provider Ref", "RateLimit": "RateLimit", - "RateLimitPolicy enables rate limiting for service workloads in a Gateway API network": "RateLimitPolicy enables rate limiting for service workloads in a Gateway API network", + "RateLimitPolicy": "RateLimitPolicy", "Read about the latest information and key features in the Kuadrant highlights.": "Read about the latest information and key features in the Kuadrant highlights.", "Release Notes": "Release Notes", - "Remove Custom Selector": "Remove Custom Selector", - "Remove Match Expression": "Remove Match Expression", - "Remove Match Label": "Remove Match Label", - "Remove Value": "Remove Value", - "Routing Strategy": "Routing Strategy", - "Routing Strategy to use": "Routing Strategy to use", "Save": "Save", "Select a gateway": "Select a gateway", - "Select a Namespace": "Select a Namespace", + "Select a Protocol": "Select a Protocol", "Select an ClusterIssuer": "Select an ClusterIssuer", "Select an HTTPRoute": "Select an HTTPRoute", "Select an Issuer": "Select an Issuer", @@ -99,19 +94,18 @@ "Select HTTPRoute": "Select HTTPRoute", "Select Issuer": "Select Issuer", "Status": "Status", - "Target reference type": "Target reference type", "Targets Gateway API networking resources Gateways to provide TLS for gateway listeners by managing the lifecycle of TLS certificates using cert-manager": "Targets Gateway API networking resources Gateways to provide TLS for gateway listeners by managing the lifecycle of TLS certificates using cert-manager", + "There are no policies to display - please create some.": "There are no policies to display - please create some.", "TLS": "TLS", - "To set defaults, overrides, and more complex limits, use the YAML view.": "To set defaults, overrides, and more complex limits, use the YAML view.", + "TLSPolicy": "TLSPolicy", "Type": "Type", "Unique name of the DNS Policy": "Unique name of the DNS Policy", - "Unique name of the RateLimitPolicy": "Unique name of the RateLimitPolicy", "Unique name of the TLSPolicy.": "Unique name of the TLSPolicy.", "Unit": "Unit", "View all quick starts": "View all quick starts", "View Documentation": "View Documentation", "Visit the blog": "Visit the blog", + "Weight": "Weight", "YAML View": "YAML View", - "You can view and create HTTPRoutes": "You can view and create HTTPRoutes", - "Create Policy": "Create Policy" + "You can view and create HTTPRoutes": "You can view and create HTTPRoutes" } \ No newline at end of file diff --git a/src/components/dnspolicy/HealthCheckField.tsx b/src/components/dnspolicy/HealthCheckField.tsx index 9a93b2e..0cb5c63 100644 --- a/src/components/dnspolicy/HealthCheckField.tsx +++ b/src/components/dnspolicy/HealthCheckField.tsx @@ -20,7 +20,7 @@ const HealthCheckField: React.FC = ({ healthCheck, onChange }) value={healthCheck.endpoint} onChange={(event) => onChange({ ...healthCheck, endpoint: event.currentTarget.value })} isRequired - placeholder={t("/")} + placeholder="/" /> @@ -31,8 +31,7 @@ const HealthCheckField: React.FC = ({ healthCheck, onChange }) onChange={(event) => onChange({ ...healthCheck, failureThreshold: Number(event.currentTarget.value) })} isRequired min={1} - placeholder={t("0")} - + placeholder="0" /> @@ -43,7 +42,7 @@ const HealthCheckField: React.FC = ({ healthCheck, onChange }) onChange={(event) => onChange({ ...healthCheck, port: Number(event.currentTarget.value) })} isRequired min={1} - placeholder={t("0")} + placeholder="0" /> @@ -54,7 +53,7 @@ const HealthCheckField: React.FC = ({ healthCheck, onChange }) isRequired aria-label={t('Select a Protocol')} > - + diff --git a/src/components/dnspolicy/LoadBalancingField.tsx b/src/components/dnspolicy/LoadBalancingField.tsx index 00f3c94..4a0a376 100644 --- a/src/components/dnspolicy/LoadBalancingField.tsx +++ b/src/components/dnspolicy/LoadBalancingField.tsx @@ -10,7 +10,7 @@ interface LoadBalancingProps { } const LoadBalancingField: React.FC = ({ loadBalancing, onChange }) => { - const { t } = useTranslation('plugin__console-plugin-template'); + const { t } = useTranslation('plugin__kuadrant-console-plugin'); return ( <> @@ -31,7 +31,7 @@ const LoadBalancingField: React.FC = ({ loadBalancing, onCha } isRequired type="number" - placeholder={t("0")} + placeholder="0" /> @@ -45,7 +45,7 @@ const LoadBalancingField: React.FC = ({ loadBalancing, onCha }) } isRequired - placeholder={t("Geo")} + placeholder={t("Geography Label (e.g. 'eu')")} />