fix: add translation to tooltip text

98725/translation
Nick Richmond 6 months ago
parent f7e0710f53
commit e774500bf5
  1. 4
      public/app/features/explore/LimitedDataDisclaimer.tsx
  2. 5
      public/app/features/explore/Table/TableContainer.tsx
  3. 1
      public/locales/en-US/grafana.json
  4. 1
      public/locales/pseudo-LOCALE/grafana.json

@ -1,5 +1,5 @@
import { css } from '@emotion/css';
import React from 'react';
import React, { type ComponentProps } from 'react';
import { GrafanaTheme2 } from '@grafana/data';
import { Button, Icon, Tooltip, useStyles2 } from '@grafana/ui';
@ -7,7 +7,7 @@ import { Button, Icon, Tooltip, useStyles2 } from '@grafana/ui';
type Props = {
toggleShowAllSeries: () => void;
info: React.ReactNode;
tooltip: string;
tooltip: ComponentProps<typeof Tooltip>['content'];
buttonLabel: React.ReactNode;
};

@ -141,7 +141,10 @@ export class TableContainer extends PureComponent<Props, State> {
</Trans>
}
tooltip={
'Showing too many columns in a single table may impact performance and make data harder to read. Consider refining your queries.'
<Trans i18nKey={'table.container.show-all-series-tooltip'}>
Showing too many columns in a single table may impact performance and make data harder to
read. Consider refining your queries.
</Trans>
}
buttonLabel={<Trans i18nKey={'table.container.show-all-series'}>Show all columns</Trans>}
/>

@ -3219,6 +3219,7 @@
"table": {
"container": {
"show-all-series": "Show all columns",
"show-all-series-tooltip": "Showing too many columns in a single table may impact performance and make data harder to read. Consider refining your queries.",
"show-only-series": "Showing only {{MAX_NUMBER_OF_COLUMNS}} columns"
}
},

@ -3219,6 +3219,7 @@
"table": {
"container": {
"show-all-series": "Ŝĥőŵ äľľ čőľūmʼnş",
"show-all-series-tooltip": "Ŝĥőŵįʼnģ ŧőő mäʼny čőľūmʼnş įʼn ä şįʼnģľę ŧäþľę mäy įmpäčŧ pęřƒőřmäʼnčę äʼnđ mäĸę đäŧä ĥäřđęř ŧő řęäđ. Cőʼnşįđęř řęƒįʼnįʼnģ yőūř qūęřįęş.",
"show-only-series": "Ŝĥőŵįʼnģ őʼnľy {{MAX_NUMBER_OF_COLUMNS}} čőľūmʼnş"
}
},

Loading…
Cancel
Save