mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 15:52:23 +08:00
Alerting: Fix wrong interpolation in translation (#103514)
fix wrong interpolation in transalation
This commit is contained in:
@ -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": {
|
||||
|
Reference in New Issue
Block a user