Sha256: cba25bf33f59238d9ed2bc17f6f6aef1e794d30108c23e60028cf7d034920470

Contents?: true

Size: 580 Bytes

Versions: 16

Compression:

Stored size: 580 Bytes

Contents

# coding: utf-8
module I18n::Tasks::Reports
  class Base

    def initialize
      @task = I18n::Tasks::BaseTask.new
    end

    attr_reader :task

    MISSING_TYPES = {
        none:    {glyph: '✗', summary: 'key missing'},
        blank:   {glyph: '∅', summary: 'translation blank'},
        eq_base: {glyph: '=', summary: 'value same as base value'}
    }

    def missing_types
      MISSING_TYPES
    end

    def missing_title(recs)
      "Missing translations (#{recs.length})"
    end

    def unused_title(recs)
      "Unused keys (#{recs.length})"
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
i18n-tasks-0.2.19 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.18 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.17 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.15 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.14 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.13 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.12 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.11 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.10 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.9 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.8 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.7 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.6 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.5 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.4 lib/i18n/tasks/reports/base.rb
i18n-tasks-0.2.3 lib/i18n/tasks/reports/base.rb