The default implementation of label_for uses the fallback string.
A possible override when using the component in a Rails application could be:
class Helper < TinyAdmin::Support
class << self
def label_for(value, options: [])
options&.first ? ::I18n.t(options.first, default: value) : value
end
end
end
In this PR:
label_for
support method.The default implementation of
label_for
uses the fallback string. A possible override when using the component in a Rails application could be: