Class: Localer::Data::MissingTranslations

Inherits:
Service
  • Object
show all
Defined in:
lib/localer/data/missing_translations.rb

Overview

A service that returns array of missing translations

Instance Method Summary collapse

Methods inherited from Service

call

Instance Method Details

#callObject



9
10
11
12
13
14
15
# File 'lib/localer/data/missing_translations.rb', line 9

def call
  missing = []
  data.each do |locale, key, value|
    missing.push("#{locale}#{key}") if value.nil?
  end
  missing
end