superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccwilli...@apache.org
Subject [incubator-superset] branch master updated: Add chart names translation (#6273)
Date Mon, 05 Nov 2018 20:47:37 GMT
This is an automated email from the ASF dual-hosted git repository.

ccwilliams pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 7373be7  Add chart names translation (#6273)
7373be7 is described below

commit 7373be71633df4ad07c29cf1a3bf07e3f6669c6c
Author: Krist Wongsuphasawat <krist.wongz@gmail.com>
AuthorDate: Mon Nov 5 12:47:32 2018 -0800

    Add chart names translation (#6273)
    
    * add translation for chart names
    
    * add translation for all chart names
    
    * add missing translation
---
 superset/assets/src/visualizations/BigNumber/BigNumberChartPlugin.js | 3 ++-
 .../src/visualizations/BigNumberTotal/BigNumberTotalChartPlugin.js   | 3 ++-
 superset/assets/src/visualizations/Calendar/CalendarChartPlugin.js   | 3 ++-
 superset/assets/src/visualizations/Chord/ChordChartPlugin.js         | 3 ++-
 .../assets/src/visualizations/CountryMap/CountryMapChartPlugin.js    | 3 ++-
 superset/assets/src/visualizations/EventFlow/EventFlowChartPlugin.js | 3 ++-
 superset/assets/src/visualizations/FilterBox/FilterBoxChartPlugin.js | 3 ++-
 .../src/visualizations/ForceDirected/ForceDirectedChartPlugin.js     | 3 ++-
 superset/assets/src/visualizations/Heatmap/HeatmapChartPlugin.js     | 3 ++-
 superset/assets/src/visualizations/Histogram/HistogramChartPlugin.js | 3 ++-
 superset/assets/src/visualizations/Horizon/HorizonChartPlugin.js     | 3 ++-
 superset/assets/src/visualizations/MapBox/MapBoxChartPlugin.js       | 3 ++-
 .../assets/src/visualizations/PairedTTest/PairedTTestChartPlugin.js  | 3 ++-
 .../ParallelCoordinates/ParallelCoordinatesChartPlugin.js            | 3 ++-
 superset/assets/src/visualizations/Partition/PartitionChartPlugin.js | 3 ++-
 .../assets/src/visualizations/PivotTable/PivotTableChartPlugin.js    | 3 ++-
 superset/assets/src/visualizations/Rose/RoseChartPlugin.js           | 3 ++-
 superset/assets/src/visualizations/Sankey/SankeyChartPlugin.js       | 3 ++-
 superset/assets/src/visualizations/Sunburst/SunburstChartPlugin.js   | 3 ++-
 superset/assets/src/visualizations/Table/TableChartPlugin.js         | 3 ++-
 superset/assets/src/visualizations/TimeTable/TimeTableChartPlugin.js | 3 ++-
 superset/assets/src/visualizations/Treemap/TreemapChartPlugin.js     | 3 ++-
 superset/assets/src/visualizations/WorldMap/WorldMapChartPlugin.js   | 3 ++-
 superset/assets/src/visualizations/deckgl/Multi/MultiChartPlugin.js  | 3 ++-
 .../assets/src/visualizations/deckgl/layers/Arc/ArcChartPlugin.js    | 3 ++-
 .../src/visualizations/deckgl/layers/Geojson/GeojsonChartPlugin.js   | 3 ++-
 .../assets/src/visualizations/deckgl/layers/Grid/GridChartPlugin.js  | 3 ++-
 .../assets/src/visualizations/deckgl/layers/Hex/HexChartPlugin.js    | 3 ++-
 .../assets/src/visualizations/deckgl/layers/Path/PathChartPlugin.js  | 3 ++-
 .../src/visualizations/deckgl/layers/Polygon/PolygonChartPlugin.js   | 3 ++-
 .../src/visualizations/deckgl/layers/Scatter/ScatterChartPlugin.js   | 3 ++-
 .../visualizations/deckgl/layers/Screengrid/ScreengridChartPlugin.js | 3 ++-
 superset/assets/src/visualizations/nvd3/Area/AreaChartPlugin.js      | 3 ++-
 superset/assets/src/visualizations/nvd3/Bar/BarChartPlugin.js        | 3 ++-
 .../assets/src/visualizations/nvd3/BoxPlot/BoxPlotChartPlugin.js     | 3 ++-
 superset/assets/src/visualizations/nvd3/Bubble/BubbleChartPlugin.js  | 3 ++-
 superset/assets/src/visualizations/nvd3/Bullet/BulletChartPlugin.js  | 3 ++-
 .../assets/src/visualizations/nvd3/Compare/CompareChartPlugin.js     | 5 +++--
 .../assets/src/visualizations/nvd3/DistBar/DistBarChartPlugin.js     | 5 +++--
 .../assets/src/visualizations/nvd3/DualLine/DualLineChartPlugin.js   | 3 ++-
 superset/assets/src/visualizations/nvd3/Line/LineChartPlugin.js      | 3 ++-
 .../assets/src/visualizations/nvd3/LineMulti/LineMultiChartPlugin.js | 3 ++-
 superset/assets/src/visualizations/nvd3/Pie/PieChartPlugin.js        | 3 ++-
 .../assets/src/visualizations/nvd3/TimePivot/TimePivotChartPlugin.js | 3 ++-
 superset/assets/src/visualizations/wordcloud/WordCloudChartPlugin.js | 3 ++-
 45 files changed, 92 insertions(+), 47 deletions(-)

diff --git a/superset/assets/src/visualizations/BigNumber/BigNumberChartPlugin.js b/superset/assets/src/visualizations/BigNumber/BigNumberChartPlugin.js
index 9690e9e..cbe5cf6 100644
--- a/superset/assets/src/visualizations/BigNumber/BigNumberChartPlugin.js
+++ b/superset/assets/src/visualizations/BigNumber/BigNumberChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Big Number with Trendline',
+  name: t('Big Number with Trendline'),
   description: '',
   thumbnail,
 });
diff --git a/superset/assets/src/visualizations/BigNumberTotal/BigNumberTotalChartPlugin.js
b/superset/assets/src/visualizations/BigNumberTotal/BigNumberTotalChartPlugin.js
index 91ec3da..808d3ff 100644
--- a/superset/assets/src/visualizations/BigNumberTotal/BigNumberTotalChartPlugin.js
+++ b/superset/assets/src/visualizations/BigNumberTotal/BigNumberTotalChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from '../BigNumber/transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Big Number',
+  name: t('Big Number'),
   description: '',
   thumbnail,
 });
diff --git a/superset/assets/src/visualizations/Calendar/CalendarChartPlugin.js b/superset/assets/src/visualizations/Calendar/CalendarChartPlugin.js
index 643f107..1c34419 100644
--- a/superset/assets/src/visualizations/Calendar/CalendarChartPlugin.js
+++ b/superset/assets/src/visualizations/Calendar/CalendarChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Calendar Heatmap',
+  name: t('Calendar Heatmap'),
   description: '',
   credits: ['https://github.com/wa0x6e/cal-heatmap'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/Chord/ChordChartPlugin.js b/superset/assets/src/visualizations/Chord/ChordChartPlugin.js
index 4ec6bc7..a3e16db 100644
--- a/superset/assets/src/visualizations/Chord/ChordChartPlugin.js
+++ b/superset/assets/src/visualizations/Chord/ChordChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Chord Diagram',
+  name: t('Chord Diagram'),
   description: '',
   credits: ['https://github.com/d3/d3-chord'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/CountryMap/CountryMapChartPlugin.js b/superset/assets/src/visualizations/CountryMap/CountryMapChartPlugin.js
index 396bef2..325df33 100644
--- a/superset/assets/src/visualizations/CountryMap/CountryMapChartPlugin.js
+++ b/superset/assets/src/visualizations/CountryMap/CountryMapChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Country Map',
+  name: t('Country Map'),
   description: '',
   credits: ['https://bl.ocks.org/john-guerra'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/EventFlow/EventFlowChartPlugin.js b/superset/assets/src/visualizations/EventFlow/EventFlowChartPlugin.js
index a8f5570..53effaa 100644
--- a/superset/assets/src/visualizations/EventFlow/EventFlowChartPlugin.js
+++ b/superset/assets/src/visualizations/EventFlow/EventFlowChartPlugin.js
@@ -1,9 +1,10 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Event Flow',
+  name: t('Event Flow'),
   description: '',
   credits: ['https://github.com/williaster/data-ui'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/FilterBox/FilterBoxChartPlugin.js b/superset/assets/src/visualizations/FilterBox/FilterBoxChartPlugin.js
index 11fd4a4..a3dc0af 100644
--- a/superset/assets/src/visualizations/FilterBox/FilterBoxChartPlugin.js
+++ b/superset/assets/src/visualizations/FilterBox/FilterBoxChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Filter Box',
+  name: t('Filter Box'),
   description: 'A multi filter, multi-choice filter box to make dashboards interactive',
   thumbnail,
 });
diff --git a/superset/assets/src/visualizations/ForceDirected/ForceDirectedChartPlugin.js
b/superset/assets/src/visualizations/ForceDirected/ForceDirectedChartPlugin.js
index 4cbf301..69ccb9f 100644
--- a/superset/assets/src/visualizations/ForceDirected/ForceDirectedChartPlugin.js
+++ b/superset/assets/src/visualizations/ForceDirected/ForceDirectedChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Force-directed Graph',
+  name: t('Force-directed Graph'),
   description: '',
   credits: ['http://bl.ocks.org/d3noob/5141278'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/Heatmap/HeatmapChartPlugin.js b/superset/assets/src/visualizations/Heatmap/HeatmapChartPlugin.js
index e25e21e..297e7f9 100644
--- a/superset/assets/src/visualizations/Heatmap/HeatmapChartPlugin.js
+++ b/superset/assets/src/visualizations/Heatmap/HeatmapChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Heatmap',
+  name: t('Heatmap'),
   description: '',
   credits: ['http://bl.ocks.org/mbostock/3074470'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/Histogram/HistogramChartPlugin.js b/superset/assets/src/visualizations/Histogram/HistogramChartPlugin.js
index f933bf7..ee714e6 100644
--- a/superset/assets/src/visualizations/Histogram/HistogramChartPlugin.js
+++ b/superset/assets/src/visualizations/Histogram/HistogramChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Histogram',
+  name: t('Histogram'),
   description: '',
   thumbnail,
 });
diff --git a/superset/assets/src/visualizations/Horizon/HorizonChartPlugin.js b/superset/assets/src/visualizations/Horizon/HorizonChartPlugin.js
index e87ed2b..8563e80 100644
--- a/superset/assets/src/visualizations/Horizon/HorizonChartPlugin.js
+++ b/superset/assets/src/visualizations/Horizon/HorizonChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Horizon Chart',
+  name: t('Horizon Chart'),
   description: '',
   credits: ['http://kmandov.github.io/d3-horizon-chart/'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/MapBox/MapBoxChartPlugin.js b/superset/assets/src/visualizations/MapBox/MapBoxChartPlugin.js
index 3d34088..24905b2 100644
--- a/superset/assets/src/visualizations/MapBox/MapBoxChartPlugin.js
+++ b/superset/assets/src/visualizations/MapBox/MapBoxChartPlugin.js
@@ -1,9 +1,10 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'MapBox',
+  name: t('MapBox'),
   description: '',
   credits: ['https://www.mapbox.com/mapbox-gl-js/api/'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/PairedTTest/PairedTTestChartPlugin.js b/superset/assets/src/visualizations/PairedTTest/PairedTTestChartPlugin.js
index 664d5f8..ce299ac 100644
--- a/superset/assets/src/visualizations/PairedTTest/PairedTTestChartPlugin.js
+++ b/superset/assets/src/visualizations/PairedTTest/PairedTTestChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Paired t-test Table',
+  name: t('Paired t-test Table'),
   description: '',
   thumbnail,
 });
diff --git a/superset/assets/src/visualizations/ParallelCoordinates/ParallelCoordinatesChartPlugin.js
b/superset/assets/src/visualizations/ParallelCoordinates/ParallelCoordinatesChartPlugin.js
index 50072c5..ac2907e 100644
--- a/superset/assets/src/visualizations/ParallelCoordinates/ParallelCoordinatesChartPlugin.js
+++ b/superset/assets/src/visualizations/ParallelCoordinates/ParallelCoordinatesChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Parallel Coordinates',
+  name: t('Parallel Coordinates'),
   description: '',
   credits: ['https://syntagmatic.github.io/parallel-coordinates'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/Partition/PartitionChartPlugin.js b/superset/assets/src/visualizations/Partition/PartitionChartPlugin.js
index b711a89..586f466 100644
--- a/superset/assets/src/visualizations/Partition/PartitionChartPlugin.js
+++ b/superset/assets/src/visualizations/Partition/PartitionChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Partition Chart',
+  name: t('Partition Chart'),
   description: '',
   thumbnail,
 });
diff --git a/superset/assets/src/visualizations/PivotTable/PivotTableChartPlugin.js b/superset/assets/src/visualizations/PivotTable/PivotTableChartPlugin.js
index 8d8598d..99c3150 100644
--- a/superset/assets/src/visualizations/PivotTable/PivotTableChartPlugin.js
+++ b/superset/assets/src/visualizations/PivotTable/PivotTableChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Pivot Table',
+  name: t('Pivot Table'),
   description: '',
   thumbnail,
 });
diff --git a/superset/assets/src/visualizations/Rose/RoseChartPlugin.js b/superset/assets/src/visualizations/Rose/RoseChartPlugin.js
index 71808bd..388290f 100644
--- a/superset/assets/src/visualizations/Rose/RoseChartPlugin.js
+++ b/superset/assets/src/visualizations/Rose/RoseChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Nightingale Rose Chart',
+  name: t('Nightingale Rose Chart'),
   description: '',
   thumbnail,
 });
diff --git a/superset/assets/src/visualizations/Sankey/SankeyChartPlugin.js b/superset/assets/src/visualizations/Sankey/SankeyChartPlugin.js
index c49a77e..92f6b7f 100644
--- a/superset/assets/src/visualizations/Sankey/SankeyChartPlugin.js
+++ b/superset/assets/src/visualizations/Sankey/SankeyChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Sankey Diagram',
+  name: t('Sankey Diagram'),
   description: '',
   credits: ['https://github.com/d3/d3-sankey'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/Sunburst/SunburstChartPlugin.js b/superset/assets/src/visualizations/Sunburst/SunburstChartPlugin.js
index 35c0d6f..2ba78e2 100644
--- a/superset/assets/src/visualizations/Sunburst/SunburstChartPlugin.js
+++ b/superset/assets/src/visualizations/Sunburst/SunburstChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Sunburst Chart',
+  name: t('Sunburst Chart'),
   description: '',
   credits: ['https://bl.ocks.org/kerryrodden/7090426'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/Table/TableChartPlugin.js b/superset/assets/src/visualizations/Table/TableChartPlugin.js
index b8d379e..4c4e78e 100644
--- a/superset/assets/src/visualizations/Table/TableChartPlugin.js
+++ b/superset/assets/src/visualizations/Table/TableChartPlugin.js
@@ -1,3 +1,4 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
@@ -5,7 +6,7 @@ import thumbnail from './images/thumbnail.png';
 import { ANNOTATION_TYPES } from '../../modules/AnnotationTypes';
 
 const metadata = new ChartMetadata({
-  name: 'Table',
+  name: t('Table'),
   description: '',
   canBeAnnotationTypes: [
     ANNOTATION_TYPES.EVENT,
diff --git a/superset/assets/src/visualizations/TimeTable/TimeTableChartPlugin.js b/superset/assets/src/visualizations/TimeTable/TimeTableChartPlugin.js
index aa29520..2060b70 100644
--- a/superset/assets/src/visualizations/TimeTable/TimeTableChartPlugin.js
+++ b/superset/assets/src/visualizations/TimeTable/TimeTableChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Time-series Table',
+  name: t('Time-series Table'),
   description: '',
   thumbnail,
 });
diff --git a/superset/assets/src/visualizations/Treemap/TreemapChartPlugin.js b/superset/assets/src/visualizations/Treemap/TreemapChartPlugin.js
index 078fe38..80ae89b 100644
--- a/superset/assets/src/visualizations/Treemap/TreemapChartPlugin.js
+++ b/superset/assets/src/visualizations/Treemap/TreemapChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Treemap',
+  name: t('Treemap'),
   description: '',
   credits: ['https://d3js.org'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/WorldMap/WorldMapChartPlugin.js b/superset/assets/src/visualizations/WorldMap/WorldMapChartPlugin.js
index c0dadfb..6150b99 100644
--- a/superset/assets/src/visualizations/WorldMap/WorldMapChartPlugin.js
+++ b/superset/assets/src/visualizations/WorldMap/WorldMapChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Word Cloud',
+  name: t('World Map'),
   description: '',
   credits: ['http://datamaps.github.io/'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/deckgl/Multi/MultiChartPlugin.js b/superset/assets/src/visualizations/deckgl/Multi/MultiChartPlugin.js
index 95f2bd5..067bfe2 100644
--- a/superset/assets/src/visualizations/deckgl/Multi/MultiChartPlugin.js
+++ b/superset/assets/src/visualizations/deckgl/Multi/MultiChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../core/models/ChartPlugin';
 import ChartMetadata from '../../core/models/ChartMetadata';
 import thumbnail from './images/thumbnail.png';
 import transformProps from '../transformProps';
 
 const metadata = new ChartMetadata({
-  name: 'deck.gl Multiple Layers',
+  name: t('deck.gl Multiple Layers'),
   description: '',
   credits: ['https://uber.github.io/deck.gl'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/deckgl/layers/Arc/ArcChartPlugin.js b/superset/assets/src/visualizations/deckgl/layers/Arc/ArcChartPlugin.js
index d6cb9b3..13db262 100644
--- a/superset/assets/src/visualizations/deckgl/layers/Arc/ArcChartPlugin.js
+++ b/superset/assets/src/visualizations/deckgl/layers/Arc/ArcChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../../core/models/ChartPlugin';
 import ChartMetadata from '../../../core/models/ChartMetadata';
 import thumbnail from './images/thumbnail.png';
 import transformProps from '../../transformProps';
 
 const metadata = new ChartMetadata({
-  name: 'deck.gl Arc',
+  name: t('deck.gl Arc'),
   description: '',
   credits: ['https://uber.github.io/deck.gl'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/deckgl/layers/Geojson/GeojsonChartPlugin.js
b/superset/assets/src/visualizations/deckgl/layers/Geojson/GeojsonChartPlugin.js
index 15895de..8e50906 100644
--- a/superset/assets/src/visualizations/deckgl/layers/Geojson/GeojsonChartPlugin.js
+++ b/superset/assets/src/visualizations/deckgl/layers/Geojson/GeojsonChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../../core/models/ChartPlugin';
 import ChartMetadata from '../../../core/models/ChartMetadata';
 import thumbnail from './images/thumbnail.png';
 import transformProps from '../../transformProps';
 
 const metadata = new ChartMetadata({
-  name: 'deck.gl Geojson',
+  name: t('deck.gl Geojson'),
   description: '',
   credits: ['https://uber.github.io/deck.gl'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/deckgl/layers/Grid/GridChartPlugin.js b/superset/assets/src/visualizations/deckgl/layers/Grid/GridChartPlugin.js
index 36ae452..9842b83 100644
--- a/superset/assets/src/visualizations/deckgl/layers/Grid/GridChartPlugin.js
+++ b/superset/assets/src/visualizations/deckgl/layers/Grid/GridChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../../core/models/ChartPlugin';
 import ChartMetadata from '../../../core/models/ChartMetadata';
 import thumbnail from './images/thumbnail.png';
 import transformProps from '../../transformProps';
 
 const metadata = new ChartMetadata({
-  name: 'deck.gl Grid',
+  name: t('deck.gl Grid'),
   description: '',
   credits: ['https://uber.github.io/deck.gl'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/deckgl/layers/Hex/HexChartPlugin.js b/superset/assets/src/visualizations/deckgl/layers/Hex/HexChartPlugin.js
index 9550107..5ff49bc 100644
--- a/superset/assets/src/visualizations/deckgl/layers/Hex/HexChartPlugin.js
+++ b/superset/assets/src/visualizations/deckgl/layers/Hex/HexChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../../core/models/ChartPlugin';
 import ChartMetadata from '../../../core/models/ChartMetadata';
 import thumbnail from './images/thumbnail.png';
 import transformProps from '../../transformProps';
 
 const metadata = new ChartMetadata({
-  name: 'deck.gl 3D Hexagon',
+  name: t('deck.gl 3D Hexagon'),
   description: '',
   credits: ['https://uber.github.io/deck.gl'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/deckgl/layers/Path/PathChartPlugin.js b/superset/assets/src/visualizations/deckgl/layers/Path/PathChartPlugin.js
index 422a06d..df18ec6 100644
--- a/superset/assets/src/visualizations/deckgl/layers/Path/PathChartPlugin.js
+++ b/superset/assets/src/visualizations/deckgl/layers/Path/PathChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../../core/models/ChartPlugin';
 import ChartMetadata from '../../../core/models/ChartMetadata';
 import thumbnail from './images/thumbnail.png';
 import transformProps from '../../transformProps';
 
 const metadata = new ChartMetadata({
-  name: 'deck.gl Path',
+  name: t('deck.gl Path'),
   description: '',
   credits: ['https://uber.github.io/deck.gl'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/deckgl/layers/Polygon/PolygonChartPlugin.js
b/superset/assets/src/visualizations/deckgl/layers/Polygon/PolygonChartPlugin.js
index e8e0d19..99c55ad 100644
--- a/superset/assets/src/visualizations/deckgl/layers/Polygon/PolygonChartPlugin.js
+++ b/superset/assets/src/visualizations/deckgl/layers/Polygon/PolygonChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../../core/models/ChartPlugin';
 import ChartMetadata from '../../../core/models/ChartMetadata';
 import thumbnail from './images/thumbnail.png';
 import transformProps from '../../transformProps';
 
 const metadata = new ChartMetadata({
-  name: 'deck.gl Polygon',
+  name: t('deck.gl Polygon'),
   description: '',
   credits: ['https://uber.github.io/deck.gl'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/deckgl/layers/Scatter/ScatterChartPlugin.js
b/superset/assets/src/visualizations/deckgl/layers/Scatter/ScatterChartPlugin.js
index d381e34..47c3b60 100644
--- a/superset/assets/src/visualizations/deckgl/layers/Scatter/ScatterChartPlugin.js
+++ b/superset/assets/src/visualizations/deckgl/layers/Scatter/ScatterChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../../core/models/ChartPlugin';
 import ChartMetadata from '../../../core/models/ChartMetadata';
 import thumbnail from './images/thumbnail.png';
 import transformProps from '../../transformProps';
 
 const metadata = new ChartMetadata({
-  name: 'deck.gl Scatterplot',
+  name: t('deck.gl Scatterplot'),
   description: '',
   credits: ['https://uber.github.io/deck.gl'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/deckgl/layers/Screengrid/ScreengridChartPlugin.js
b/superset/assets/src/visualizations/deckgl/layers/Screengrid/ScreengridChartPlugin.js
index 193fd7f..5c8351d 100644
--- a/superset/assets/src/visualizations/deckgl/layers/Screengrid/ScreengridChartPlugin.js
+++ b/superset/assets/src/visualizations/deckgl/layers/Screengrid/ScreengridChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../../core/models/ChartPlugin';
 import ChartMetadata from '../../../core/models/ChartMetadata';
 import thumbnail from './images/thumbnail.png';
 import transformProps from '../../transformProps';
 
 const metadata = new ChartMetadata({
-  name: 'deck.gl Screen Grid',
+  name: t('deck.gl Screen Grid'),
   description: '',
   credits: ['https://uber.github.io/deck.gl'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/nvd3/Area/AreaChartPlugin.js b/superset/assets/src/visualizations/nvd3/Area/AreaChartPlugin.js
index fcfdbde..2638734 100644
--- a/superset/assets/src/visualizations/nvd3/Area/AreaChartPlugin.js
+++ b/superset/assets/src/visualizations/nvd3/Area/AreaChartPlugin.js
@@ -1,3 +1,4 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../core/models/ChartPlugin';
 import ChartMetadata from '../../core/models/ChartMetadata';
 import transformProps from '../transformProps';
@@ -5,7 +6,7 @@ import thumbnail from './images/thumbnail.png';
 import { ANNOTATION_TYPES } from '../../../modules/AnnotationTypes';
 
 const metadata = new ChartMetadata({
-  name: 'Area Chart',
+  name: t('Area Chart'),
   description: '',
   credits: ['http://nvd3.org'],
   supportedAnnotationTypes: [
diff --git a/superset/assets/src/visualizations/nvd3/Bar/BarChartPlugin.js b/superset/assets/src/visualizations/nvd3/Bar/BarChartPlugin.js
index 6b88403..2faf567 100644
--- a/superset/assets/src/visualizations/nvd3/Bar/BarChartPlugin.js
+++ b/superset/assets/src/visualizations/nvd3/Bar/BarChartPlugin.js
@@ -1,3 +1,4 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../core/models/ChartPlugin';
 import ChartMetadata from '../../core/models/ChartMetadata';
 import transformProps from '../transformProps';
@@ -5,7 +6,7 @@ import thumbnail from './images/thumbnail.png';
 import { ANNOTATION_TYPES } from '../../../modules/AnnotationTypes';
 
 const metadata = new ChartMetadata({
-  name: 'Time-series Bar Chart',
+  name: t('Time-series Bar Chart'),
   description: 'A bar chart where the x axis is time',
   credits: ['http://nvd3.org'],
   supportedAnnotationTypes: [
diff --git a/superset/assets/src/visualizations/nvd3/BoxPlot/BoxPlotChartPlugin.js b/superset/assets/src/visualizations/nvd3/BoxPlot/BoxPlotChartPlugin.js
index 17904b4..baf45a0 100644
--- a/superset/assets/src/visualizations/nvd3/BoxPlot/BoxPlotChartPlugin.js
+++ b/superset/assets/src/visualizations/nvd3/BoxPlot/BoxPlotChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../core/models/ChartPlugin';
 import ChartMetadata from '../../core/models/ChartMetadata';
 import transformProps from '../transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Box Plot',
+  name: t('Box Plot'),
   description: '',
   credits: ['http://nvd3.org'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/nvd3/Bubble/BubbleChartPlugin.js b/superset/assets/src/visualizations/nvd3/Bubble/BubbleChartPlugin.js
index c2206bc..f00c52f 100644
--- a/superset/assets/src/visualizations/nvd3/Bubble/BubbleChartPlugin.js
+++ b/superset/assets/src/visualizations/nvd3/Bubble/BubbleChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../core/models/ChartPlugin';
 import ChartMetadata from '../../core/models/ChartMetadata';
 import transformProps from '../transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Bubble Chart',
+  name: t('Bubble Chart'),
   description: '',
   credits: ['http://nvd3.org'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/nvd3/Bullet/BulletChartPlugin.js b/superset/assets/src/visualizations/nvd3/Bullet/BulletChartPlugin.js
index 4a721c9..75b4c38 100644
--- a/superset/assets/src/visualizations/nvd3/Bullet/BulletChartPlugin.js
+++ b/superset/assets/src/visualizations/nvd3/Bullet/BulletChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../core/models/ChartPlugin';
 import ChartMetadata from '../../core/models/ChartMetadata';
 import transformProps from '../transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Bullet Chart',
+  name: t('Bullet Chart'),
   description: '',
   credits: ['http://nvd3.org'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/nvd3/Compare/CompareChartPlugin.js b/superset/assets/src/visualizations/nvd3/Compare/CompareChartPlugin.js
index 16a05b6..e4a94e5 100644
--- a/superset/assets/src/visualizations/nvd3/Compare/CompareChartPlugin.js
+++ b/superset/assets/src/visualizations/nvd3/Compare/CompareChartPlugin.js
@@ -1,11 +1,12 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../core/models/ChartPlugin';
 import ChartMetadata from '../../core/models/ChartMetadata';
 import transformProps from '../transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Time-series Percent Change',
-  description: 'A line chart component where you can compare the % change over time',
+  name: t('Time-series Percent Change'),
+  description: t('A line chart component where you can compare the % change over time'),
   credits: ['http://nvd3.org'],
   thumbnail,
 });
diff --git a/superset/assets/src/visualizations/nvd3/DistBar/DistBarChartPlugin.js b/superset/assets/src/visualizations/nvd3/DistBar/DistBarChartPlugin.js
index 56bf49f..3f7b09d 100644
--- a/superset/assets/src/visualizations/nvd3/DistBar/DistBarChartPlugin.js
+++ b/superset/assets/src/visualizations/nvd3/DistBar/DistBarChartPlugin.js
@@ -1,11 +1,12 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../core/models/ChartPlugin';
 import ChartMetadata from '../../core/models/ChartMetadata';
 import transformProps from '../transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Bar Chart',
-  description: 'A bar chart where the x axis is time',
+  name: t('Bar Chart'),
+  description: t('A bar chart where the x axis is time'),
   credits: ['http://nvd3.org'],
   thumbnail,
 });
diff --git a/superset/assets/src/visualizations/nvd3/DualLine/DualLineChartPlugin.js b/superset/assets/src/visualizations/nvd3/DualLine/DualLineChartPlugin.js
index dba757a..ec249de 100644
--- a/superset/assets/src/visualizations/nvd3/DualLine/DualLineChartPlugin.js
+++ b/superset/assets/src/visualizations/nvd3/DualLine/DualLineChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../core/models/ChartPlugin';
 import ChartMetadata from '../../core/models/ChartMetadata';
 import transformProps from '../transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Dual Line Chart',
+  name: t('Dual Line Chart'),
   description: '',
   credits: ['http://nvd3.org'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/nvd3/Line/LineChartPlugin.js b/superset/assets/src/visualizations/nvd3/Line/LineChartPlugin.js
index a1ea0d9..a7ba48a 100644
--- a/superset/assets/src/visualizations/nvd3/Line/LineChartPlugin.js
+++ b/superset/assets/src/visualizations/nvd3/Line/LineChartPlugin.js
@@ -1,3 +1,4 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../core/models/ChartPlugin';
 import ChartMetadata from '../../core/models/ChartMetadata';
 import transformProps from '../transformProps';
@@ -5,7 +6,7 @@ import thumbnail from './images/thumbnail.png';
 import { ANNOTATION_TYPES } from '../../../modules/AnnotationTypes';
 
 const metadata = new ChartMetadata({
-  name: 'Line Chart',
+  name: t('Line Chart'),
   description: '',
   credits: ['http://nvd3.org'],
   canBeAnnotationTypes: [
diff --git a/superset/assets/src/visualizations/nvd3/LineMulti/LineMultiChartPlugin.js b/superset/assets/src/visualizations/nvd3/LineMulti/LineMultiChartPlugin.js
index 1c7a85f..4f196fa 100644
--- a/superset/assets/src/visualizations/nvd3/LineMulti/LineMultiChartPlugin.js
+++ b/superset/assets/src/visualizations/nvd3/LineMulti/LineMultiChartPlugin.js
@@ -1,9 +1,10 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../core/models/ChartPlugin';
 import ChartMetadata from '../../core/models/ChartMetadata';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Multiple Line Charts',
+  name: t('Multiple Line Charts'),
   description: '',
   credits: ['http://nvd3.org'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/nvd3/Pie/PieChartPlugin.js b/superset/assets/src/visualizations/nvd3/Pie/PieChartPlugin.js
index 469c6be..b741445 100644
--- a/superset/assets/src/visualizations/nvd3/Pie/PieChartPlugin.js
+++ b/superset/assets/src/visualizations/nvd3/Pie/PieChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../core/models/ChartPlugin';
 import ChartMetadata from '../../core/models/ChartMetadata';
 import transformProps from '../transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Pie Chart',
+  name: t('Pie Chart'),
   description: '',
   credits: ['http://nvd3.org'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/nvd3/TimePivot/TimePivotChartPlugin.js b/superset/assets/src/visualizations/nvd3/TimePivot/TimePivotChartPlugin.js
index bed8710..7c4d279 100644
--- a/superset/assets/src/visualizations/nvd3/TimePivot/TimePivotChartPlugin.js
+++ b/superset/assets/src/visualizations/nvd3/TimePivot/TimePivotChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../../core/models/ChartPlugin';
 import ChartMetadata from '../../core/models/ChartMetadata';
 import transformProps from '../transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Time-series Period Pivot',
+  name: t('Time-series Period Pivot'),
   description: '',
   credits: ['http://nvd3.org'],
   thumbnail,
diff --git a/superset/assets/src/visualizations/wordcloud/WordCloudChartPlugin.js b/superset/assets/src/visualizations/wordcloud/WordCloudChartPlugin.js
index d0e3ca2..82db63d 100644
--- a/superset/assets/src/visualizations/wordcloud/WordCloudChartPlugin.js
+++ b/superset/assets/src/visualizations/wordcloud/WordCloudChartPlugin.js
@@ -1,10 +1,11 @@
+import { t } from '@superset-ui/translation';
 import ChartPlugin from '../core/models/ChartPlugin';
 import ChartMetadata from '../core/models/ChartMetadata';
 import transformProps from './transformProps';
 import thumbnail from './images/thumbnail.png';
 
 const metadata = new ChartMetadata({
-  name: 'Word Cloud',
+  name: t('Word Cloud'),
   description: '',
   credits: ['https://github.com/jasondavies/d3-cloud'],
   thumbnail,


Mime
View raw message