UX: Translating poll chart types wasn't possible

This commit is contained in:
Gerhard Schlager 2020-04-28 14:29:42 +02:00
parent 198856f78d
commit 7177b9d771
2 changed files with 10 additions and 2 deletions

View File

@ -15,8 +15,14 @@ export default Controller.extend({
closedPollResult: "on_close",
staffPollResult: "staff_only",
pollChartTypes: [
{ name: BAR_CHART_TYPE.capitalize(), value: BAR_CHART_TYPE },
{ name: PIE_CHART_TYPE.capitalize(), value: PIE_CHART_TYPE }
{
name: I18n.t("poll.ui_builder.poll_chart_type.bar"),
value: BAR_CHART_TYPE
},
{
name: I18n.t("poll.ui_builder.poll_chart_type.pie"),
value: PIE_CHART_TYPE
}
],
pollType: null,

View File

@ -118,6 +118,8 @@ en:
label: Allowed groups
poll_chart_type:
label: Chart type
bar: Bar
pie: Pie
poll_config:
max: Max
min: Min