Skip to content

Commit

Permalink
fix(aria): series type name for custom series #18054
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Oct 24, 2023
1 parent babe688 commit 6b581e7
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 19 deletions.
3 changes: 2 additions & 1 deletion src/i18n/langAR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ export default {
gauge: 'مقياس',
pictorialBar: 'مخطط مصوّر',
themeRiver: 'نمط خريطة النهر',
sunburst: 'مخطط شمسي'
sunburst: 'مخطط شمسي',
chart: 'مخطط'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langCS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
gauge: 'Indikátor',
pictorialBar: 'Obrázkový sloupcový graf',
themeRiver: 'Theme River Map',
sunburst: 'Vícevrstvý prstencový graf'
sunburst: 'Vícevrstvý prstencový graf',
chart: 'Graf'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langDE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export default {
gauge: 'Meßanzeige',
pictorialBar: 'Bildlicher Balken',
themeRiver: 'Thematische Flusskarte',
sunburst: 'Sonnenausbruch'
sunburst: 'Sonnenausbruch',
chart: 'Diagramm'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langEN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export default {
gauge: 'Gauge',
pictorialBar: 'Pictorial bar',
themeRiver: 'Theme River Map',
sunburst: 'Sunburst'
sunburst: 'Sunburst',
chart: 'Chart'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langFR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export default {
gauge: 'Jauge',
pictorialBar: 'Barres à images',
themeRiver: 'Stream Graph',
sunburst: 'Sunburst'
sunburst: 'Sunburst',
chart: 'Graphique'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langHU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export default {
gauge: 'Mérőeszköz',
pictorialBar: 'Képes sávdiagram',
themeRiver: 'Folyó témájú térkép',
sunburst: 'Napégés'
sunburst: 'Napégés',
chart: 'Diagram'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langIT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export default {
gauge: 'Gauge',
pictorialBar: 'Pictorial bar',
themeRiver: 'Theme River Map',
sunburst: 'Radiale'
sunburst: 'Radiale',
chart: 'Grafico'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langJA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export default {
gauge: 'ゲージ',
pictorialBar: '絵入り棒グラフ',
themeRiver: 'テーマリバー',
sunburst: 'サンバースト'
sunburst: 'サンバースト',
chart: 'チャート'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langKO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export default {
gauge: '계기',
pictorialBar: '픽토그램 차트',
themeRiver: '스트림 그래프',
sunburst: '선버스트 차트'
sunburst: '선버스트 차트',
chart: '차트'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langPL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
gauge: 'Wykres zegarowy',
pictorialBar: 'Wykres słupkowy obrazkowy',
themeRiver: 'Wykres rzeki tematycznej',
sunburst: 'Wykres hierarchiczny słonecznikowy'
sunburst: 'Wykres hierarchiczny słonecznikowy',
chart: 'Wykres'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langPT-br.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ export default {
gauge: 'Gauge',
pictorialBar: 'Pictorial bar',
themeRiver: 'Theme River Map',
sunburst: 'Sunburst'
sunburst: 'Sunburst',
chart: 'Gráfico'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langRO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
gauge: 'Calibru',
pictorialBar: 'Diagramă cu bare picturale',
themeRiver: 'Streamgraph',
sunburst: 'Diagramă rază de soare'
sunburst: 'Diagramă rază de soare',
chart: 'Diagramă'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langRU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export default {
gauge: 'Шкала',
pictorialBar: 'Столбец-картинка',
themeRiver: 'Тематическая река',
sunburst: 'Солнечные лучи'
sunburst: 'Солнечные лучи',
chart: 'диаграмма'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langSI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export default {
gauge: 'Števec',
pictorialBar: 'Stolpčni grafikon s podobo',
themeRiver: 'Tematski rečni grafikon',
sunburst: 'Večnivojski tortni grafikon'
sunburst: 'Večnivojski tortni grafikon',
chart: 'Grafikon'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langTR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export default {
gauge: 'Gösterge',
pictorialBar: 'Resimli Çubuk Grafiği',
themeRiver: 'Akış Haritası',
sunburst: 'Güeş Patlaması Tablosu'
sunburst: 'Güeş Patlaması Tablosu',
chart: 'Grafiği'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langUK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export default {
gauge: 'Шкала',
pictorialBar: 'Стовпчик-картинка',
themeRiver: 'Тематична ріка',
sunburst: 'Сонячне проміння'
sunburst: 'Сонячне проміння',
chart: 'діаграма'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langVI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ export default {
gauge: 'Biểu đồ cung tròn',
pictorialBar: 'Biểu diễn hình ảnh',
themeRiver: 'Bản đồ sông',
sunburst: 'Biểu đồ bậc'
sunburst: 'Biểu đồ bậc',
chart: 'đồ biểu'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/langZH.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ export default {
gauge: '仪表盘图',
pictorialBar: '象形柱图',
themeRiver: '主题河流图',
sunburst: '旭日图'
sunburst: '旭日图',
chart: '图表'
}
},
aria: {
Expand Down
3 changes: 2 additions & 1 deletion src/visual/aria.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ export default function ariaVisual(ecModel: GlobalModel, api: ExtensionAPI) {
}

function getSeriesTypeName(type: SeriesTypes) {
return ecModel.getLocaleModel().get(['series', 'typeNames'])[type] || '自定义图';
const typeNames = ecModel.getLocaleModel().get(['series', 'typeNames']);
return typeNames[type] || typeNames.chart;
}
}

0 comments on commit 6b581e7

Please sign in to comment.