Skip to content

Commit d8a518a

Browse files
Merge pull request #653 from jgbernalp/fix-clear-filters-translation
OU-1093: fix: add missing translation for incidents filters
2 parents 5cdc38c + 894c53b commit d8a518a

File tree

8 files changed

+9
-6
lines changed

8 files changed

+9
-6
lines changed

web/locales/en/plugin__monitoring-plugin.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@
200200
"Component(s)": "Component(s)",
201201
"Alert": "Alert",
202202
"Incidents": "Incidents",
203+
"Clear all filters": "Clear all filters",
203204
"Filter type selection": "Filter type selection",
204205
"Incident ID": "Incident ID",
205206
"Severity filters": "Severity filters",

web/locales/es/plugin__monitoring-plugin.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@
201201
"Component(s)": "Componente(s)",
202202
"Alert": "Alerta",
203203
"Incidents": "Incidentes",
204+
"Clear all filters": "Borrar todos los filtros",
204205
"Filter type selection": "Selección de tipo de filtro",
205206
"Incident ID": "ID del incidente",
206207
"Severity filters": "Filtros de gravedad",

web/locales/fr/plugin__monitoring-plugin.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@
201201
"Component(s)": "Composant(s)",
202202
"Alert": "Alerte",
203203
"Incidents": "Incidents",
204+
"Clear all filters": "Effacer tous les filtres",
204205
"Filter type selection": "Sélection de type de filtre",
205206
"Incident ID": "ID Incident",
206207
"Severity filters": "Flitres de sévérité",

web/locales/ja/plugin__monitoring-plugin.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@
201201
"Component(s)": "コンポーネント",
202202
"Alert": "アラート",
203203
"Incidents": "インシデント",
204+
"Clear all filters": "すべてのフィルターをクリア",
204205
"Filter type selection": "フィルタータイプの選択",
205206
"Incident ID": "インシデント ID",
206207
"Severity filters": "重大度フィルター",

web/locales/ko/plugin__monitoring-plugin.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@
201201
"Component(s)": "구성 요소",
202202
"Alert": "알림",
203203
"Incidents": "인시던트",
204+
"Clear all filters": "필터 모두 지우기",
204205
"Filter type selection": "필터 유형 선택",
205206
"Incident ID": "인시던트 ID",
206207
"Severity filters": "심각도 필터",

web/locales/zh/plugin__monitoring-plugin.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@
201201
"Component(s)": "组件",
202202
"Alert": "警报",
203203
"Incidents": "事件",
204+
"Clear all filters": "清除所有过滤器",
204205
"Filter type selection": "过滤类型选择",
205206
"Incident ID": "事件 ID",
206207
"Severity filters": "严重性过滤",

web/src/components/Incidents/IncidentsPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ const IncidentsPage = () => {
398398
id="toolbar-with-filter"
399399
data-test={DataTestIDs.IncidentsPage.Toolbar}
400400
collapseListedFiltersBreakpoint="xl"
401+
clearFiltersButtonText={t('Clear all filters')}
401402
clearAllFilters={() => {
402403
closeDropDownFilters();
403404
dispatch(

web/src/components/console/models/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,29 +65,25 @@ export const NodeModel = {
6565
export const NamespaceModel: K8sModel = {
6666
apiVersion: 'v1',
6767
label: 'Namespace',
68-
// t('Namespace')
69-
labelKey: 'public~Namespace',
68+
labelKey: `${process.env.I18N_NAMESPACE}~Namespace`,
7069
plural: 'namespaces',
7170
abbr: 'NS',
7271
kind: 'Namespace',
7372
id: 'namespace',
7473
labelPlural: 'Namespaces',
75-
// t('Namespaces')
7674
labelPluralKey: 'public~Namespaces',
7775
};
7876

7977
export const ProjectModel: K8sModel = {
8078
apiVersion: 'v1',
8179
apiGroup: 'project.openshift.io',
8280
label: 'Project',
83-
// t('Project')
84-
labelKey: 'public~Project',
81+
labelKey: `${process.env.I18N_NAMESPACE}~Project`,
8582
plural: 'projects',
8683
abbr: 'PR',
8784
kind: 'Project',
8885
id: 'project',
8986
labelPlural: 'Projects',
90-
// t('Projects')
9187
labelPluralKey: 'public~Projects',
9288
};
9389

0 commit comments

Comments
 (0)