Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions lib/localer/data.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# frozen_string_literal: true

require_relative "data/service"
require_relative "data/checker"
require_relative "data/processor"
require_relative "data/missing_translations"

module Localer
# Stores translations and provides
Expand All @@ -21,11 +19,18 @@ def initialize(*args)
end

def complete?
Checker.call(self)
each do |_locale, _key, value|
return false if value.nil?
end
true
end

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

def each
Expand Down
18 changes: 0 additions & 18 deletions lib/localer/data/checker.rb

This file was deleted.

18 changes: 0 additions & 18 deletions lib/localer/data/missing_translations.rb

This file was deleted.