Alerting: Render duration in `<code>` block for better presentation for translated values (#104409)

pull/104116/head
Tom Ratcliffe 3 months ago committed by GitHub
parent 656d730eb2
commit 345e81b9b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      public/app/features/alerting/unified/GrafanaRuleQueryViewer.tsx
  2. 2
      public/locales/en-US/grafana.json

@ -127,7 +127,7 @@ export function QueryPreview({
i18nKey="alerting.query-preview.relative-time-range"
values={{ from: rangeUtil.secondsToHms(relativeTimeRange.from) }}
>
{'{{from}}'} to now
<code>{'{{from}}'}</code> to now
</Trans>
</Text>
);

@ -1728,7 +1728,7 @@
"min-interval": "Min. Interval = {{minInterval}}"
},
"query-preview": {
"relative-time-range": "{{from}} to now"
"relative-time-range": "<0>{{from}}</0> to now"
},
"queryAndExpressionsStep": {
"disableAdvancedOptions": {

Loading…
Cancel
Save