chore: Cleanup unused labels (#2682)

This commit is contained in:
Lipis 2020-12-27 18:51:47 +02:00 committed by GitHub
parent 022f349dc6
commit 6f82a88b79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 11 deletions

View File

@ -12,11 +12,6 @@ const BAR_GAP = 12;
const BAR_HEIGHT = 256; const BAR_HEIGHT = 256;
const GRID_OPACITY = 50; const GRID_OPACITY = 50;
export const CHART_LABELS = {
bar: "labels.chartTypeBar",
line: "labels.chartTypeLine",
};
export interface Spreadsheet { export interface Spreadsheet {
title: string | null; title: string | null;
labels: string[] | null; labels: string[] | null;

View File

@ -2,6 +2,7 @@ import oc from "open-color";
import React, { useLayoutEffect, useRef, useState } from "react"; import React, { useLayoutEffect, useRef, useState } from "react";
import { ChartElements, renderSpreadsheet, Spreadsheet } from "../charts"; import { ChartElements, renderSpreadsheet, Spreadsheet } from "../charts";
import { ChartType } from "../element/types"; import { ChartType } from "../element/types";
import { t } from "../i18n";
import { exportToSvg } from "../scene/export"; import { exportToSvg } from "../scene/export";
import { AppState, LibraryItem } from "../types"; import { AppState, LibraryItem } from "../types";
import { Dialog } from "./Dialog"; import { Dialog } from "./Dialog";
@ -98,7 +99,7 @@ export const PasteChartDialog = ({
<Dialog <Dialog
maxWidth={500} maxWidth={500}
onCloseRequest={handleClose} onCloseRequest={handleClose}
title={"Paste chart"} title={t("labels.pasteCharts")}
className={"PasteChartDialog"} className={"PasteChartDialog"}
autofocus={false} autofocus={false}
> >

View File

@ -1,6 +1,7 @@
{ {
"labels": { "labels": {
"paste": "Paste", "paste": "Paste",
"pasteCharts": "Paste charts",
"selectAll": "Select all", "selectAll": "Select all",
"multiSelect": "Add element to selection", "multiSelect": "Add element to selection",
"moveCanvas": "Move canvas", "moveCanvas": "Move canvas",
@ -90,9 +91,7 @@
"centerVertically": "Center vertically", "centerVertically": "Center vertically",
"centerHorizontally": "Center horizontally", "centerHorizontally": "Center horizontally",
"distributeHorizontally": "Distribute horizontally", "distributeHorizontally": "Distribute horizontally",
"distributeVertically": "Distribute vertically", "distributeVertically": "Distribute vertically"
"chartTypeBar": "Bar",
"chartTypeLine": "Line"
}, },
"buttons": { "buttons": {
"clearReset": "Reset the canvas", "clearReset": "Reset the canvas",
@ -224,8 +223,6 @@
}, },
"stats": { "stats": {
"angle": "Angle", "angle": "Angle",
"charts": "Charts",
"current": "Current",
"element": "Element", "element": "Element",
"elements": "Elements", "elements": "Elements",
"height": "Height", "height": "Height",