Merge pull request #10703 from AlexSCorey/10683-fixstrings

Marks dashboard chart axis labels for translation
This commit is contained in:
Alex Corey
2021-08-09 14:42:40 -04:00
committed by GitHub
8 changed files with 15210 additions and 14122 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -125,7 +125,7 @@ function LineChart({ id, data, height, pageContext, jobStatus }) {
.attr('x', 0 - height / 2) .attr('x', 0 - height / 2)
.attr('dy', '1em') .attr('dy', '1em')
.style('text-anchor', 'middle') .style('text-anchor', 'middle')
.text('Job Runs'); .text(t`Job Runs`);
// Add the X Axis // Add the X Axis
let ticks; let ticks;
@@ -165,7 +165,7 @@ function LineChart({ id, data, height, pageContext, jobStatus }) {
`translate(${width / 2} , ${height + margin.top + 20})` `translate(${width / 2} , ${height + margin.top + 20})`
) )
.style('text-anchor', 'middle') .style('text-anchor', 'middle')
.text('Date'); .text(t`Date`);
const vertical = svg const vertical = svg
.append('path') .append('path')
.attr('class', 'mouse-line') .attr('class', 'mouse-line')