Sha256: 52c3ca4a7894aeee92ed453ec1a7940f26fd53505ecec9c4baf52dbccf364565

Contents?: true

Size: 635 Bytes

Versions: 20

Compression:

Stored size: 635 Bytes

Contents

# frozen_string_literal: true

module I18n::Tasks
  module Command
    module Commands
      module Interpolations
        include Command::Collection

        cmd :check_consistent_interpolations,
            pos: '[locale ...]',
            desc: t('i18n_tasks.cmd.desc.check_consistent_interpolations'),
            args: %i[locales out_format]

        def check_consistent_interpolations(opt = {})
          forest = i18n.inconsistent_interpolations(**opt.slice(:locales, :base_locale))
          print_forest forest, opt, :inconsistent_interpolations
          :exit1 unless forest.empty?
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/i18n-tasks-1.0.14/lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-1.0.13 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-1.0.12 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-1.0.11 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-1.0.10 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-1.0.9 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-1.0.8 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-1.0.7 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-1.0.6 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-1.0.5 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-1.0.4 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-1.0.3 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-1.0.2 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-1.0.1 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-1.0.0 lib/i18n/tasks/command/commands/interpolations.rb
i18n-youdao-tasks-0.9.37 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-0.9.37 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-0.9.36 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-0.9.35 lib/i18n/tasks/command/commands/interpolations.rb
i18n-tasks-0.9.34 lib/i18n/tasks/command/commands/interpolations.rb