Sha256: 17b6397a2accc79fb7355d0109eb3747b75981c5c14d99b86db749d0dbf9c5ee

Contents?: true

Size: 394 Bytes

Versions: 18

Compression:

Stored size: 394 Bytes

Contents

module Datacaster
  module ContextNodes
    class I18n < Datacaster::ContextNode
      def initialize(base, i18n_value)
        super(base)
        @i18n_value = i18n_value
      end

      private

      def create_runtime(parent)
        Runtimes::I18n.new(parent)
      end

      def transform_errors(errors)
        @i18n_value.with_args(runtime.args) * errors
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
datacaster-4.1.0 lib/datacaster/context_nodes/i18n.rb
datacaster-4.0.1 lib/datacaster/context_nodes/i18n.rb
datacaster-3.3.1 lib/datacaster/context_nodes/i18n.rb
datacaster-3.3.0 lib/datacaster/context_nodes/i18n.rb
datacaster-3.2.7 lib/datacaster/context_nodes/i18n.rb
datacaster-3.2.6 lib/datacaster/context_nodes/i18n.rb
datacaster-3.2.5 lib/datacaster/context_nodes/i18n.rb
datacaster-3.2.4 lib/datacaster/context_nodes/i18n.rb
datacaster-3.2.3 lib/datacaster/context_nodes/i18n.rb
datacaster-3.2.2 lib/datacaster/context_nodes/i18n.rb
datacaster-3.2.1 lib/datacaster/context_nodes/i18n.rb
datacaster-3.2.0 lib/datacaster/context_nodes/i18n.rb
datacaster-3.1.5 lib/datacaster/context_nodes/i18n.rb
datacaster-3.1.3 lib/datacaster/context_nodes/i18n.rb
datacaster-3.1.2 lib/datacaster/context_nodes/i18n.rb
datacaster-3.1.1 lib/datacaster/context_nodes/i18n.rb
datacaster-3.1.0 lib/datacaster/context_nodes/i18n.rb
datacaster-3.0.0 lib/datacaster/context_nodes/i18n.rb