Sha256: 149a3542b8df84de21c931014cb1a6c02adf6e73624c9a6eee9e56cdd1658ff1
Contents?: true
Size: 418 Bytes
Versions: 7
Compression:
Stored size: 418 Bytes
Contents
module Hyperstack module Internal class I18n class Translate < Hyperstack::ServerOp param :acting_user, nils: true param :attribute param :opts param :translation, default: nil def opts params.opts.with_indifferent_access end step do params.translation = ::I18n.t(params.attribute, opts) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems