Sha256: d9765ac81325de31a2854cd16f3090c9a0b6104155ed62ba0f896161af9ca1f4
Contents?: true
Size: 409 Bytes
Versions: 4
Compression:
Stored size: 409 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.symbolize_keys end step do params.translation = ::I18n.t(params.attribute, opts) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems