Alerting: Fix wrong interpolation in translation (#103514)

fix wrong interpolation in transalation
pull/103530/head
Sonia Aguilar 9 months ago committed by GitHub
parent cf5da1d366
commit a05b35a13c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 9
      public/app/features/alerting/unified/components/rules/CloudRules.tsx
  2. 3
      public/locales/en-US/grafana.json

@ -1,5 +1,4 @@
import { css } from '@emotion/css';
import pluralize from 'pluralize';
import { useMemo } from 'react';
import { useLocation } from 'react-router-dom-v5-compat';
@ -68,11 +67,9 @@ export const CloudRules = ({ namespaces, expandAll }: Props) => {
{dataSourcesLoading.length ? (
<LoadingPlaceholder
className={styles.loader}
text={t(
'alerting.list-view.section.loading-rules',
'Loading rules from {{numberOfSources}} {{sources}}',
{ numberOfSource: dataSourcesLoading.length, sources: pluralize('source', dataSourcesLoading.length) }
)}
text={t('alerting.list-view.section.loading-rules', 'Loading rules from {{count}} sources', {
count: dataSourcesLoading.length,
})}
/>
) : (
<div />

@ -1165,7 +1165,8 @@
"new-recording-rule": "New recording rule",
"title": "Grafana-managed"
},
"loading-rules": "Loading rules from {{numberOfSources}} {{sources}}"
"loading-rules_one": "Loading rules from {{count}} source",
"loading-rules_other": "Loading rules from {{count}} sources"
}
},
"log-record-viewer-by-timestamp": {

Loading…
Cancel
Save