Skip to content

Commit

Permalink
i18n updates
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Madigan <[email protected]>
  • Loading branch information
jasonmadigan committed Oct 18, 2024
1 parent 9703508 commit b14d1e8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 34 deletions.
46 changes: 20 additions & 26 deletions locales/en/plugin__kuadrant-console-plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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"
}
9 changes: 4 additions & 5 deletions src/components/dnspolicy/HealthCheckField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const HealthCheckField: React.FC<HealthCheckProps> = ({ healthCheck, onChange })
value={healthCheck.endpoint}
onChange={(event) => onChange({ ...healthCheck, endpoint: event.currentTarget.value })}
isRequired
placeholder={t("/")}
placeholder="/"
/>
</FormGroup>
<FormGroup label={t('Failure Threshold')} isRequired fieldId="health-check-failure-threshold">
Expand All @@ -31,8 +31,7 @@ const HealthCheckField: React.FC<HealthCheckProps> = ({ healthCheck, onChange })
onChange={(event) => onChange({ ...healthCheck, failureThreshold: Number(event.currentTarget.value) })}
isRequired
min={1}
placeholder={t("0")}

placeholder="0"
/>
</FormGroup>
<FormGroup label={t('Port')} isRequired fieldId="health-check-port">
Expand All @@ -43,7 +42,7 @@ const HealthCheckField: React.FC<HealthCheckProps> = ({ healthCheck, onChange })
onChange={(event) => onChange({ ...healthCheck, port: Number(event.currentTarget.value) })}
isRequired
min={1}
placeholder={t("0")}
placeholder="0"
/>
</FormGroup>
<FormGroup label={t('Protocol')} isRequired fieldId="health-check-protocol">
Expand All @@ -54,7 +53,7 @@ const HealthCheckField: React.FC<HealthCheckProps> = ({ healthCheck, onChange })
isRequired
aria-label={t('Select a Protocol')}
>
<FormSelectOption key="placeholder" value="" label={t('Select a protocol')} isDisabled />
<FormSelectOption key="placeholder" value="" label={t('Select a Protocol')} isDisabled />
<FormSelectOption key="HTTP" value="HTTP" label="HTTP" />
<FormSelectOption key="HTTPS" value="HTTPS" label="HTTPS" />
</FormSelect>
Expand Down
6 changes: 3 additions & 3 deletions src/components/dnspolicy/LoadBalancingField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface LoadBalancingProps {
}

const LoadBalancingField: React.FC<LoadBalancingProps> = ({ loadBalancing, onChange }) => {
const { t } = useTranslation('plugin__console-plugin-template');
const { t } = useTranslation('plugin__kuadrant-console-plugin');

return (
<>
Expand All @@ -31,7 +31,7 @@ const LoadBalancingField: React.FC<LoadBalancingProps> = ({ loadBalancing, onCha
}
isRequired
type="number"
placeholder={t("0")}
placeholder="0"

/>
<FormGroup label={t('Geo')} isRequired fieldId="geo">
Expand All @@ -45,7 +45,7 @@ const LoadBalancingField: React.FC<LoadBalancingProps> = ({ loadBalancing, onCha
})
}
isRequired
placeholder={t("Geo")}
placeholder={t("Geography Label (e.g. 'eu')")}
/>
</FormGroup>
<FormGroup role="radiogroup" isInline fieldId='default-geo' label={t('Default Geo')} isRequired aria-labelledby="issuer-label">
Expand Down

0 comments on commit b14d1e8

Please sign in to comment.