class I18nChecker::NotFound::Reporter::Default
Constants
- CHECK_COMPLETED
Public Instance Methods
report(result)
click to toggle source
# File lib/i18n_checker/not_found/reporter/default.rb, line 10 def report(result) return passed if result.empty? failed(result) end
Private Instance Methods
failed(result)
click to toggle source
# File lib/i18n_checker/not_found/reporter/default.rb, line 22 def failed(result) logger.info CHECK_COMPLETED.red logger.info "There are settings where translated text can not be found\n".red result.each_file do |file, locale_texts| logger.info file.cyan.to_s locale_texts.each do |locale_text| logger.info " line:#{locale_text.line}, column:#{locale_text.column} - #{locale_text.lang}.#{locale_text.text}" end end end
passed()
click to toggle source
# File lib/i18n_checker/not_found/reporter/default.rb, line 17 def passed logger.info CHECK_COMPLETED.green logger.info 'There was no translated text that can not be referenced'.green end