Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions locales/en/plugin__networking-console-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand All @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions locales/es/plugin__networking-console-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand All @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions locales/fr/plugin__networking-console-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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`.",
Expand All @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions locales/ja/plugin__networking-console-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 です。",
Expand All @@ -284,6 +285,7 @@
"Path that the router watches to route traffic to the service.": "ルーターがトラフィックをサービスにルーティングするために監視するパス。",
"Path type": "パスのタイプ",
"Pending": "保留中",
"per page": "",
"Percent": "パーセント",
"Persistent": "永続的",
"Phase": "フェーズ",
Expand Down
2 changes: 2 additions & 0 deletions locales/ko/plugin__networking-console-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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입니다.",
Expand All @@ -284,6 +285,7 @@
"Path that the router watches to route traffic to the service.": "라우터가 트래픽을 서비스로 라우팅하기 위해 모니터링하는 경로입니다.",
"Path type": "경로 유형",
"Pending": "대기 중",
"per page": "",
"Percent": "백분율",
"Persistent": "영구적",
"Phase": "단계",
Expand Down
2 changes: 2 additions & 0 deletions locales/zh/plugin__networking-console-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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。",
Expand All @@ -284,6 +285,7 @@
"Path that the router watches to route traffic to the service.": "路由监视流向服务路由的路径。",
"Path type": "路径类型",
"Pending": "待处理",
"per page": "",
"Percent": "百分比",
"Persistent": "持久性",
"Phase": "阶段",
Expand Down
6 changes: 6 additions & 0 deletions src/views/networkpolicies/list/NetworkPolicyList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -31,6 +32,7 @@ type NetworkPolicyListProps = {
};

const NetworkPolicyList: FC<NetworkPolicyListProps> = ({ namespace }) => {
const { t } = useNetworkingTranslation();
const [networkPolicies, loaded, loadError] = useK8sWatchResource<
IoK8sApiNetworkingV1NetworkPolicy[]
>({
Expand Down Expand Up @@ -96,6 +98,10 @@ const NetworkPolicyList: FC<NetworkPolicyListProps> = ({ namespace }) => {
page={pagination?.page}
perPage={pagination?.perPage}
perPageOptions={paginationDefaultValues}
titles={{
ofWord: t('of'),
perPageSuffix: t('per page'),
}}
/>
)}
</div>
Expand Down