From 894c53bb04066cd33947995fbbd2b4c05a3f303f Mon Sep 17 00:00:00 2001 From: Gabriel Bernal Date: Mon, 24 Nov 2025 12:56:39 +0100 Subject: [PATCH] fix: add missing translation for incidents filters --- web/locales/en/plugin__monitoring-plugin.json | 1 + web/locales/es/plugin__monitoring-plugin.json | 1 + web/locales/fr/plugin__monitoring-plugin.json | 1 + web/locales/ja/plugin__monitoring-plugin.json | 1 + web/locales/ko/plugin__monitoring-plugin.json | 1 + web/locales/zh/plugin__monitoring-plugin.json | 1 + web/src/components/Incidents/IncidentsPage.tsx | 1 + web/src/components/console/models/index.ts | 8 ++------ 8 files changed, 9 insertions(+), 6 deletions(-) diff --git a/web/locales/en/plugin__monitoring-plugin.json b/web/locales/en/plugin__monitoring-plugin.json index f413e241..f665d086 100644 --- a/web/locales/en/plugin__monitoring-plugin.json +++ b/web/locales/en/plugin__monitoring-plugin.json @@ -200,6 +200,7 @@ "Component(s)": "Component(s)", "Alert": "Alert", "Incidents": "Incidents", + "Clear all filters": "Clear all filters", "Filter type selection": "Filter type selection", "Incident ID": "Incident ID", "Severity filters": "Severity filters", diff --git a/web/locales/es/plugin__monitoring-plugin.json b/web/locales/es/plugin__monitoring-plugin.json index ab1b1d11..f800ffb8 100644 --- a/web/locales/es/plugin__monitoring-plugin.json +++ b/web/locales/es/plugin__monitoring-plugin.json @@ -201,6 +201,7 @@ "Component(s)": "Componente(s)", "Alert": "Alerta", "Incidents": "Incidentes", + "Clear all filters": "Borrar todos los filtros", "Filter type selection": "Selección de tipo de filtro", "Incident ID": "ID del incidente", "Severity filters": "Filtros de gravedad", diff --git a/web/locales/fr/plugin__monitoring-plugin.json b/web/locales/fr/plugin__monitoring-plugin.json index d98dc7e2..f9e1b151 100644 --- a/web/locales/fr/plugin__monitoring-plugin.json +++ b/web/locales/fr/plugin__monitoring-plugin.json @@ -201,6 +201,7 @@ "Component(s)": "Composant(s)", "Alert": "Alerte", "Incidents": "Incidents", + "Clear all filters": "Effacer tous les filtres", "Filter type selection": "Sélection de type de filtre", "Incident ID": "ID Incident", "Severity filters": "Flitres de sévérité", diff --git a/web/locales/ja/plugin__monitoring-plugin.json b/web/locales/ja/plugin__monitoring-plugin.json index 3c5c9ce6..3cc4cd35 100644 --- a/web/locales/ja/plugin__monitoring-plugin.json +++ b/web/locales/ja/plugin__monitoring-plugin.json @@ -201,6 +201,7 @@ "Component(s)": "コンポーネント", "Alert": "アラート", "Incidents": "インシデント", + "Clear all filters": "すべてのフィルターをクリア", "Filter type selection": "フィルタータイプの選択", "Incident ID": "インシデント ID", "Severity filters": "重大度フィルター", diff --git a/web/locales/ko/plugin__monitoring-plugin.json b/web/locales/ko/plugin__monitoring-plugin.json index 5ac2ba4e..4575e602 100644 --- a/web/locales/ko/plugin__monitoring-plugin.json +++ b/web/locales/ko/plugin__monitoring-plugin.json @@ -201,6 +201,7 @@ "Component(s)": "구성 요소", "Alert": "알림", "Incidents": "인시던트", + "Clear all filters": "필터 모두 지우기", "Filter type selection": "필터 유형 선택", "Incident ID": "인시던트 ID", "Severity filters": "심각도 필터", diff --git a/web/locales/zh/plugin__monitoring-plugin.json b/web/locales/zh/plugin__monitoring-plugin.json index 47a23c2a..c75af4f2 100644 --- a/web/locales/zh/plugin__monitoring-plugin.json +++ b/web/locales/zh/plugin__monitoring-plugin.json @@ -201,6 +201,7 @@ "Component(s)": "组件", "Alert": "警报", "Incidents": "事件", + "Clear all filters": "清除所有过滤器", "Filter type selection": "过滤类型选择", "Incident ID": "事件 ID", "Severity filters": "严重性过滤", diff --git a/web/src/components/Incidents/IncidentsPage.tsx b/web/src/components/Incidents/IncidentsPage.tsx index 9a122a03..c8557b24 100644 --- a/web/src/components/Incidents/IncidentsPage.tsx +++ b/web/src/components/Incidents/IncidentsPage.tsx @@ -398,6 +398,7 @@ const IncidentsPage = () => { id="toolbar-with-filter" data-test={DataTestIDs.IncidentsPage.Toolbar} collapseListedFiltersBreakpoint="xl" + clearFiltersButtonText={t('Clear all filters')} clearAllFilters={() => { closeDropDownFilters(); dispatch( diff --git a/web/src/components/console/models/index.ts b/web/src/components/console/models/index.ts index 79445015..d71c61f8 100644 --- a/web/src/components/console/models/index.ts +++ b/web/src/components/console/models/index.ts @@ -65,14 +65,12 @@ export const NodeModel = { export const NamespaceModel: K8sModel = { apiVersion: 'v1', label: 'Namespace', - // t('Namespace') - labelKey: 'public~Namespace', + labelKey: `${process.env.I18N_NAMESPACE}~Namespace`, plural: 'namespaces', abbr: 'NS', kind: 'Namespace', id: 'namespace', labelPlural: 'Namespaces', - // t('Namespaces') labelPluralKey: 'public~Namespaces', }; @@ -80,14 +78,12 @@ export const ProjectModel: K8sModel = { apiVersion: 'v1', apiGroup: 'project.openshift.io', label: 'Project', - // t('Project') - labelKey: 'public~Project', + labelKey: `${process.env.I18N_NAMESPACE}~Project`, plural: 'projects', abbr: 'PR', kind: 'Project', id: 'project', labelPlural: 'Projects', - // t('Projects') labelPluralKey: 'public~Projects', };