File tree Expand file tree Collapse file tree 6 files changed +12
-8
lines changed
Expand file tree Collapse file tree 6 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class I18n
3030 end
3131
3232 f . when_on_server do
33- @server_data_cache [ :t ] [ attribute ] = ::I18n . t ( attribute , opts . with_indifferent_access )
33+ @server_data_cache [ :t ] [ attribute ] = ::I18n . t ( attribute , opts . symbolize_keys )
3434 end
3535 end
3636
@@ -60,7 +60,7 @@ class I18n
6060 @server_data_cache [ :l ] [ date_or_time . to_s ] ||= { }
6161
6262 @server_data_cache [ :l ] [ date_or_time . to_s ] [ format ] =
63- ::I18n . l ( date_or_time , opts . with_indifferent_access . merge ( format : format ) )
63+ ::I18n . l ( date_or_time , opts . with_indifferent_access . merge ( format : format ) . symbolize_keys )
6464 end
6565 end
6666
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ def date_or_time
1313 end
1414
1515 def opts
16- @opts ||= params . opts . with_indifferent_access . merge ( format : formatted_format ( params . format ) )
16+ @opts ||= params . opts . with_indifferent_access
17+ . merge ( format : formatted_format ( params . format ) )
18+ . symbolize_keys
1719 end
1820
1921 step do
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class Translate < Hyperstack::ServerOp
66 param :translation , default : nil
77
88 def opts
9- params . opts . with_indifferent_access
9+ params . opts . symbolize_keys
1010 end
1111
1212 step do
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class I18n
3030 end
3131
3232 f . when_on_server do
33- @server_data_cache [ :t ] [ attribute ] = ::I18n . t ( attribute , opts . with_indifferent_access )
33+ @server_data_cache [ :t ] [ attribute ] = ::I18n . t ( attribute , opts . symbolize_keys )
3434 end
3535 end
3636
@@ -60,7 +60,7 @@ class I18n
6060 @server_data_cache [ :l ] [ date_or_time . to_s ] ||= { }
6161
6262 @server_data_cache [ :l ] [ date_or_time . to_s ] [ format ] =
63- ::I18n . l ( date_or_time , opts . with_indifferent_access . merge ( format : format ) )
63+ ::I18n . l ( date_or_time , opts . with_indifferent_access . merge ( format : format ) . symbolize_keys )
6464 end
6565 end
6666
Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ def date_or_time
1515 end
1616
1717 def opts
18- @opts ||= params . opts . with_indifferent_access . merge ( format : formatted_format ( params . format ) )
18+ @opts ||= params . opts . with_indifferent_access
19+ . merge ( format : formatted_format ( params . format ) )
20+ . symbolize_keys
1921 end
2022
2123 step do
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class Translate < Hyperstack::ServerOp
88 param :translation , default : nil
99
1010 def opts
11- params . opts . with_indifferent_access
11+ params . opts . symbolize_keys
1212 end
1313
1414 step do
You can’t perform that action at this time.
0 commit comments