Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

chore: Cleanup unused labels (#2682)

Lipis6f82a88b797d
diff --git a/src/charts.ts b/src/charts.ts
index 81d27f3194..48e21d46fa 100644
--- a/src/charts.ts
+++ b/src/charts.ts
@@ -12,11 +12,6 @@ const BAR_GAP = 12;
const BAR_HEIGHT = 256;
const GRID_OPACITY = 50;
-export const CHART_LABELS = {
- bar: "labels.chartTypeBar",
- line: "labels.chartTypeLine",
-};
-
export interface Spreadsheet {
title: string | null;
labels: string[] | null;
diff --git a/src/components/PasteChartDialog.tsx b/src/components/PasteChartDialog.tsx
index 5b82e4d418..3c1aeadef3 100644
--- a/src/components/PasteChartDialog.tsx
+++ b/src/components/PasteChartDialog.tsx
@@ -2,6 +2,7 @@ import oc from "open-color";
import React, { useLayoutEffect, useRef, useState } from "react";
import { ChartElements, renderSpreadsheet, Spreadsheet } from "../charts";
import { ChartType } from "../element/types";
+import { t } from "../i18n";
import { exportToSvg } from "../scene/export";
import { AppState, LibraryItem } from "../types";
import { Dialog } from "./Dialog";
@@ -98,7 +99,7 @@ export const PasteChartDialog = ({
<Dialog
maxWidth={500}
onCloseRequest={handleClose}
- title={"Paste chart"}
+ title={t("labels.pasteCharts")}
className={"PasteChartDialog"}
autofocus={false}
>
diff --git a/src/locales/en.json b/src/locales/en.json
index 4971131499..b48b10565b 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -1,6 +1,7 @@
{
"labels": {
"paste": "Paste",
+ "pasteCharts": "Paste charts",
"selectAll": "Select all",
"multiSelect": "Add element to selection",
"moveCanvas": "Move canvas",
@@ -90,9 +91,7 @@
"centerVertically": "Center vertically",
"centerHorizontally": "Center horizontally",
"distributeHorizontally": "Distribute horizontally",
- "distributeVertically": "Distribute vertically",
- "chartTypeBar": "Bar",
- "chartTypeLine": "Line"
+ "distributeVertically": "Distribute vertically"
},
"buttons": {
"clearReset": "Reset the canvas",
@@ -224,8 +223,6 @@
},
"stats": {
"angle": "Angle",
- "charts": "Charts",
- "current": "Current",
"element": "Element",
"elements": "Elements",
"height": "Height",