Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def state_column
'canceled' => :blue,
'cart' => :graphite_light,
}[order.state] || :yellow
component('ui/badge').new(name: order.state.humanize, color:)
component('ui/badge').new(name: I18n.t("spree.order_state.#{order.state}"), color:)
end
}
end
Expand Down Expand Up @@ -171,7 +171,7 @@ def payment_column
{
header: :payment,
data: ->(order) do
component('ui/badge').new(name: order.payment_state.humanize, color: order.paid? ? :green : :yellow) if order.payment_state?
component('ui/badge').new(name: I18n.t("spree.payment_states.#{order.payment_state}"), color: order.paid? ? :green : :yellow) if order.payment_state?
end
}
end
Expand All @@ -180,7 +180,7 @@ def shipment_column
{
header: :shipment,
data: ->(order) do
component('ui/badge').new(name: order.shipment_state.humanize, color: order.shipped? ? :green : :yellow) if order.shipment_state?
component('ui/badge').new(name: I18n.t("spree.shipment_states.#{order.shipment_state}"), color: order.shipped? ? :green : :yellow) if order.shipment_state?
end
}
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def renderable_tabs
end

def title
model_class.model_name.human.pluralize
I18n.t("activerecord.models.#{model_class.model_name.i18n_key}", count: 2)
end

def search_params
Expand Down