Sha256: c756f481d65a9ce7699f8dffd69806ffec1b089e614913b1fee8e9875cd112e9

Contents?: true

Size: 357 Bytes

Versions: 3

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

module Localer
  class Data
    # Check missing translations
    # Returns true if no missing translations found, otherwise false
    class Checker < Service
      param :data

      def call
        data.each do |_locale, _key, value|
          return false if value.nil?
        end
        true
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
localer-0.2.0 lib/localer/data/checker.rb
localer-0.1.1 lib/localer/data/checker.rb
localer-0.1.0 lib/localer/data/checker.rb