From 9b437bd866054b1e8e32c8a9015b3a96d4b98041 Mon Sep 17 00:00:00 2001 From: Gilles De Mey Date: Mon, 9 Sep 2024 16:03:09 +0200 Subject: [PATCH] add translations --- .../rules/Filter/RulesFilter.v2.tsx | 53 ++++++++++++++----- public/locales/en-US/grafana.json | 19 ++++++- public/locales/pseudo-LOCALE/grafana.json | 19 ++++++- 3 files changed, 75 insertions(+), 16 deletions(-) diff --git a/public/app/features/alerting/unified/components/rules/Filter/RulesFilter.v2.tsx b/public/app/features/alerting/unified/components/rules/Filter/RulesFilter.v2.tsx index 4339d5e26a2..7faa69f1f83 100644 --- a/public/app/features/alerting/unified/components/rules/Filter/RulesFilter.v2.tsx +++ b/public/app/features/alerting/unified/components/rules/Filter/RulesFilter.v2.tsx @@ -17,6 +17,7 @@ import { TabsBar, useStyles2, } from '@grafana/ui'; +import { Trans } from 'app/core/internationalization'; import { PopupCard } from '../../HoverCard'; import MoreButton from '../../MoreButton'; @@ -66,7 +67,9 @@ export default function RulesFilter({ onClear = () => {} }: RulesFilterProps) { return ( - + @@ -78,17 +81,29 @@ const FilterOptions = () => { return ( - + - + - + - + - + - + { { label: 'Firing', value: 'firing' }, ]} /> - + { { label: 'Recording rule', value: 'recording' }, ]} /> - + { /> - - + + ); @@ -138,7 +161,7 @@ const SavedSearches = () => { <> columns={[ @@ -157,7 +180,7 @@ const SavedSearches = () => { cell: ({ row }) => ( @@ -178,7 +201,9 @@ const SavedSearches = () => { ]} getRowId={(row) => row.name} /> - + ); diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index 99631238344..20997cc6d71 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -218,6 +218,19 @@ "update-rule": { "success": "Rule updated successfully" } + }, + "search": { + "property": { + "data-source": "Data source", + "evaluation-group": "Evaluation group", + "labels": "Labels", + "namespace": "Folder / Namespace", + "rule-health": "Health", + "rule-name": "Alerting rule name", + "rule-type": "Type", + "state": "State" + }, + "save-query": "Save current search" } }, "annotations": { @@ -360,11 +373,15 @@ } }, "common": { + "apply": "Apply", "cancel": "Cancel", + "clear": "Clear", + "close": "Close", "locale": { "default": "Default" }, - "save": "Save" + "save": "Save", + "search": "Search" }, "complete": "complete", "connections": { diff --git a/public/locales/pseudo-LOCALE/grafana.json b/public/locales/pseudo-LOCALE/grafana.json index 436de096e2c..719d9d19556 100644 --- a/public/locales/pseudo-LOCALE/grafana.json +++ b/public/locales/pseudo-LOCALE/grafana.json @@ -218,6 +218,19 @@ "update-rule": { "success": "Ŗūľę ūpđäŧęđ şūččęşşƒūľľy" } + }, + "search": { + "property": { + "data-source": "Đäŧä şőūřčę", + "evaluation-group": "Ēväľūäŧįőʼn ģřőūp", + "labels": "Ŀäþęľş", + "namespace": "Főľđęř / Ńämęşpäčę", + "rule-health": "Ħęäľŧĥ", + "rule-name": "Åľęřŧįʼnģ řūľę ʼnämę", + "rule-type": "Ŧypę", + "state": "Ŝŧäŧę" + }, + "save-query": "Ŝävę čūřřęʼnŧ şęäřčĥ" } }, "annotations": { @@ -360,11 +373,15 @@ } }, "common": { + "apply": "Åppľy", "cancel": "Cäʼnčęľ", + "clear": "Cľęäř", + "close": "Cľőşę", "locale": { "default": "Đęƒäūľŧ" }, - "save": "Ŝävę" + "save": "Ŝävę", + "search": "Ŝęäřčĥ" }, "complete": "čőmpľęŧę", "connections": {