Skip to content

Commit

Permalink
Refs #36575 - [WIP] Avoid i18n during startup
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Nov 16, 2023
1 parent 7493355 commit dd01d0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/services/input_type/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ def self.attributes(*attrs)

def self.api_params_for_input_group(context)
attributes.each do |attr|
# TODO: humanized_name is translated, but that can't work
context.param attr, String, required: false,
desc: format(N_('%{input_type_attr_name}, used when input type is %{input_type}'), input_type_attr_name: attr.to_s.humanize, input_type: humanized_name)
desc: format(N_('%{input_type_attr_name}, used when input type is %{input_type}'),
input_type_attr_name: ->() { attr.to_s.humanize },
input_type: ->() { humanized_name })
end
end

Expand Down

0 comments on commit dd01d0e

Please sign in to comment.