From 6f82a88b797dfafec4468b24bba12814e74075aa Mon Sep 17 00:00:00 2001 From: Lipis Date: Sun, 27 Dec 2020 18:51:47 +0200 Subject: [PATCH] chore: Cleanup unused labels (#2682) --- src/charts.ts | 5 ----- src/components/PasteChartDialog.tsx | 3 ++- src/locales/en.json | 7 ++----- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/charts.ts b/src/charts.ts index 81d27f31..48e21d46 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 5b82e4d4..3c1aeade 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 = ({ diff --git a/src/locales/en.json b/src/locales/en.json index 49711314..b48b1056 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",