diff --git a/locales/en/plugin__networking-console-plugin.json b/locales/en/plugin__networking-console-plugin.json index 5ae8e54d..82905ea7 100644 --- a/locales/en/plugin__networking-console-plugin.json +++ b/locales/en/plugin__networking-console-plugin.json @@ -275,6 +275,7 @@ "Not found": "Not found", "Not Receiving Traffic": "Not Receiving Traffic", "NS selector": "NS selector", + "of": "of", "Only supported when \"subnets\" are set.": "Only supported when \"subnets\" are set.", "Operator": "Operator", "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", @@ -284,6 +285,7 @@ "Path that the router watches to route traffic to the service.": "Path that the router watches to route traffic to the service.", "Path type": "Path type", "Pending": "Pending", + "per page": "per page", "Percent": "Percent", "Persistent": "Persistent", "Phase": "Phase", diff --git a/locales/es/plugin__networking-console-plugin.json b/locales/es/plugin__networking-console-plugin.json index 9e24d3a5..32fb6a91 100644 --- a/locales/es/plugin__networking-console-plugin.json +++ b/locales/es/plugin__networking-console-plugin.json @@ -277,6 +277,7 @@ "Not found": "No encontrado", "Not Receiving Traffic": "Sin recepción de tráfico", "NS selector": "Selector NS", + "of": "", "Only supported when \"subnets\" are set.": "Solo se admite cuando se configuran “subredes”.", "Operator": "Operador", "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.": "El operador representa la relación de una clave con un conjunto de valores. Los operadores válidos son In, NotIn, Exists y DoesNotExist.", @@ -286,6 +287,7 @@ "Path that the router watches to route traffic to the service.": "Ruta que observa el enrutador para enrutar el tráfico al servicio.", "Path type": "Tipo de ruta", "Pending": "Pendiente", + "per page": "", "Percent": "Por ciento", "Persistent": "Persistente", "Phase": "Fase", diff --git a/locales/fr/plugin__networking-console-plugin.json b/locales/fr/plugin__networking-console-plugin.json index da93bd48..81be2fad 100644 --- a/locales/fr/plugin__networking-console-plugin.json +++ b/locales/fr/plugin__networking-console-plugin.json @@ -277,6 +277,7 @@ "Not found": "Introuvable", "Not Receiving Traffic": "Aucune réception de trafic", "NS selector": "Sélecteur NS", + "of": "", "Only supported when \"subnets\" are set.": "Prise en charge uniquement lorsque les « sous-réseaux » sont définis.", "Operator": "Opérateur", "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.": "L'opérateur `In` représente la relation d'une clé avec un ensemble de valeurs. Les opérateurs valides sont `In`, `NotIn`, `Exists` et `DoesNotExist`.", @@ -286,6 +287,7 @@ "Path that the router watches to route traffic to the service.": "Chemin que le routeur surveille pour acheminer le trafic vers le service.", "Path type": "Type de chemin", "Pending": "En attente", + "per page": "", "Percent": "Pourcent", "Persistent": "Persistant", "Phase": "Phase", diff --git a/locales/ja/plugin__networking-console-plugin.json b/locales/ja/plugin__networking-console-plugin.json index b6a5a790..c42017ff 100644 --- a/locales/ja/plugin__networking-console-plugin.json +++ b/locales/ja/plugin__networking-console-plugin.json @@ -275,6 +275,7 @@ "Not found": "見つかりません", "Not Receiving Traffic": "トラフィックは受信していません", "NS selector": "NS セレクター", + "of": "", "Only supported when \"subnets\" are set.": "\"サブネット\" が設定されている場合にのみサポートされます。", "Operator": "演算子", "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.": "operator は、キーと一連の値との関係を表します。有効な演算子は、In、NotIn、Exists、および DoesNotExist です。", @@ -284,6 +285,7 @@ "Path that the router watches to route traffic to the service.": "ルーターがトラフィックをサービスにルーティングするために監視するパス。", "Path type": "パスのタイプ", "Pending": "保留中", + "per page": "", "Percent": "パーセント", "Persistent": "永続的", "Phase": "フェーズ", diff --git a/locales/ko/plugin__networking-console-plugin.json b/locales/ko/plugin__networking-console-plugin.json index df42432a..93678dff 100644 --- a/locales/ko/plugin__networking-console-plugin.json +++ b/locales/ko/plugin__networking-console-plugin.json @@ -275,6 +275,7 @@ "Not found": "찾을 수 없음", "Not Receiving Traffic": "트래픽을 수신하지 않음", "NS selector": "NS 선택기", + "of": "", "Only supported when \"subnets\" are set.": "\"subnets\"가 설정된 경우에만 지원됩니다.", "Operator": "Operator", "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.": "Operator는 값 집합에 대한 키의 관계를 나타냅니다. 유효한 연산자는 In, NotIn, Exists 및 DoesNotExist입니다.", @@ -284,6 +285,7 @@ "Path that the router watches to route traffic to the service.": "라우터가 트래픽을 서비스로 라우팅하기 위해 모니터링하는 경로입니다.", "Path type": "경로 유형", "Pending": "대기 중", + "per page": "", "Percent": "백분율", "Persistent": "영구적", "Phase": "단계", diff --git a/locales/zh/plugin__networking-console-plugin.json b/locales/zh/plugin__networking-console-plugin.json index 5a7e10cc..8c3efcab 100644 --- a/locales/zh/plugin__networking-console-plugin.json +++ b/locales/zh/plugin__networking-console-plugin.json @@ -275,6 +275,7 @@ "Not found": "没有找到", "Not Receiving Traffic": "非接收流量", "NS selector": "NS 选择器", + "of": "", "Only supported when \"subnets\" are set.": "仅在设置 \"subnets\" 时支持。", "Operator": "Operator", "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.": "Operator 代表键与一组值的关系。有效的操作符是 In、NotIn、Exists 和 DoesNotExist。", @@ -284,6 +285,7 @@ "Path that the router watches to route traffic to the service.": "路由监视流向服务路由的路径。", "Path type": "路径类型", "Pending": "待处理", + "per page": "", "Percent": "百分比", "Persistent": "持久性", "Phase": "阶段", diff --git a/src/views/networkpolicies/list/NetworkPolicyList.tsx b/src/views/networkpolicies/list/NetworkPolicyList.tsx index 03e58d63..23a1f391 100644 --- a/src/views/networkpolicies/list/NetworkPolicyList.tsx +++ b/src/views/networkpolicies/list/NetworkPolicyList.tsx @@ -15,6 +15,7 @@ import ListEmptyState from '@utils/components/ListEmptyState/ListEmptyState'; import { FLAGS } from '@utils/constants'; import { getNetworkPolicyDocURL } from '@utils/constants/documentation'; import { SHARED_DEFAULT_PATH_NEW_RESOURCE_FORM } from '@utils/constants/ui'; +import { useNetworkingTranslation } from '@utils/hooks/useNetworkingTranslation'; import usePagination from '@utils/hooks/usePagination/usePagination'; import { paginationDefaultValues } from '@utils/hooks/usePagination/utils/constants'; import { getResourceURL } from '@utils/resources/shared'; @@ -31,6 +32,7 @@ type NetworkPolicyListProps = { }; const NetworkPolicyList: FC = ({ namespace }) => { + const { t } = useNetworkingTranslation(); const [networkPolicies, loaded, loadError] = useK8sWatchResource< IoK8sApiNetworkingV1NetworkPolicy[] >({ @@ -96,6 +98,10 @@ const NetworkPolicyList: FC = ({ namespace }) => { page={pagination?.page} perPage={pagination?.perPage} perPageOptions={paginationDefaultValues} + titles={{ + ofWord: t('of'), + perPageSuffix: t('per page'), + }} /> )}