chore: Cleanup unused labels (#2682)
This commit is contained in:
parent
022f349dc6
commit
6f82a88b79
@ -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;
|
||||||
|
@ -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}
|
||||||
>
|
>
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user