Skip to content

Commit

Permalink
Monitoring: Add missing i18n for "Stacked"
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoto committed Mar 15, 2021
1 parent 4656769 commit f94f30e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/public/components/monitoring/query-browser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ const QueryBrowser_: React.FC<QueryBrowserProps> = ({
tickInterval,
timespan,
}) => {
const { t } = useTranslation();

// For the default time span, use the first of the suggested span options that is at least as long
// as defaultTimespan
const defaultSpanText = spans.find((s) => parsePrometheusDuration(s) >= defaultTimespan);
Expand Down Expand Up @@ -776,7 +778,7 @@ const QueryBrowser_: React.FC<QueryBrowserProps> = ({
<Checkbox
id="stacked"
isChecked={isStacked}
label="Stacked"
label={t('public~Stacked')}
onChange={(v) => setIsStacked(v)}
/>
)}
Expand Down

0 comments on commit f94f30e

Please sign in to comment.