Skip to content

Commit

Permalink
chore: Cleanup unused labels (excalidraw#2682)
Browse files Browse the repository at this point in the history
  • Loading branch information
lipis authored Dec 27, 2020
1 parent 022f349 commit 6f82a88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
5 changes: 0 additions & 5 deletions src/charts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/components/PasteChartDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -98,7 +99,7 @@ export const PasteChartDialog = ({
<Dialog
maxWidth={500}
onCloseRequest={handleClose}
title={"Paste chart"}
title={t("labels.pasteCharts")}
className={"PasteChartDialog"}
autofocus={false}
>
Expand Down
7 changes: 2 additions & 5 deletions src/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"labels": {
"paste": "Paste",
"pasteCharts": "Paste charts",
"selectAll": "Select all",
"multiSelect": "Add element to selection",
"moveCanvas": "Move canvas",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -224,8 +223,6 @@
},
"stats": {
"angle": "Angle",
"charts": "Charts",
"current": "Current",
"element": "Element",
"elements": "Elements",
"height": "Height",
Expand Down

0 comments on commit 6f82a88

Please sign in to comment.