Sha256: 95e315f30caf08633a9966cb4e5bb4ecbd1a12103d44f48b6f25ca1309770dee
Contents?: true
Size: 578 Bytes
Versions: 56
Compression:
Stored size: 578 Bytes
Contents
require 'fast_gettext/translation_repository/base' module FastGettext module TranslationRepository # This should be used in a TranslationRepository::Chain, so tat untranslated keys can be found # Responsibility: # - log every translation call class Logger < Base attr_accessor :callback def initialize(name,options={}) super self.callback = options[:callback] end def [](key) callback.call(key) nil end def plural(*keys) callback.call(keys) [] end end end end
Version data entries
56 entries across 56 versions & 2 rubygems