Sha256: 21bd65c96710e141e7b7344ec8ac7eaa3de177676c6814c28c48ca4ffad20d15
Contents?: true
Size: 657 Bytes
Versions: 6
Compression:
Stored size: 657 Bytes
Contents
module I18n::Tasks module Command module Commands module Health include Command::Collection cmd :health, args: '[locale ...]', desc: t('i18n_tasks.cmd.desc.health'), opt: cmd_opts(:locales, :out_format) def health(opt = {}) forest = i18n.data_forest(opt[:locales]) stats = i18n.forest_stats(forest) if stats[:key_count].zero? raise CommandError.new t('i18n_tasks.health.no_keys_detected') end terminal_report.forest_stats forest, stats missing opt unused opt end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems