@@ -34,7 +34,7 @@ def call
34
34
35
35
attr_reader :form
36
36
37
- delegate :election , :bulletin_board , to : :form
37
+ delegate :election , :bulletin_board , :current_organization , to : :form
38
38
39
39
def questions
40
40
@questions ||= election . questions
@@ -73,8 +73,8 @@ def election_data
73
73
description : {
74
74
name : {
75
75
text : [ {
76
- value : election . title [ I18n . locale . to_s ] ,
77
- language : I18n . locale . to_s
76
+ value : election . title [ current_organization . default_locale . to_s ] ,
77
+ language : current_organization . default_locale . to_s
78
78
} ]
79
79
} ,
80
80
start_date : election . start_time ,
@@ -85,8 +85,8 @@ def election_data
85
85
object_id : answer . id . to_s ,
86
86
ballot_name : {
87
87
text : [ {
88
- value : answer . title [ I18n . locale . to_s ] ,
89
- language : I18n . locale . to_s
88
+ value : answer . title [ current_organization . default_locale . to_s ] ,
89
+ language : current_organization . default_locale . to_s
90
90
} ]
91
91
}
92
92
}
@@ -98,19 +98,19 @@ def election_data
98
98
object_id : question . id . to_s ,
99
99
sequence_order : question . weight ,
100
100
vote_variation : question . vote_variation ,
101
- name : question . title [ I18n . locale . to_s ] ,
101
+ name : question . title [ current_organization . default_locale . to_s ] ,
102
102
number_elected : question . answers . count ,
103
103
votes_allowed : 1 ,
104
104
ballot_title : {
105
105
text : [ {
106
- value : question . title [ I18n . locale . to_s ] ,
107
- language : I18n . locale . to_s
106
+ value : question . title [ current_organization . default_locale . to_s ] ,
107
+ language : current_organization . default_locale . to_s
108
108
} ]
109
109
} ,
110
110
ballot_subtitle : {
111
111
text : [ {
112
- value : question . description [ I18n . locale . to_s ] ,
113
- language : I18n . locale . to_s
112
+ value : question . description [ current_organization . default_locale . to_s ] ,
113
+ language : current_organization . default_locale . to_s
114
114
} ]
115
115
} ,
116
116
ballot_selections :
0 commit comments