class CopyTunerClient::TranslationLog
def translate_with_copy_tuner_hook(key = nil, **options)
def translate_with_copy_tuner_hook(key = nil, **options) scope = options[:scope] scope = scope.dup if scope.is_a?(Array) || scope.is_a?(String) result = translate_without_copy_tuner_hook(key, **options) if key.is_a?(Array) key.zip(result).each { |k, v| CopyTunerClient::TranslationLog.add(I18n.normalize_keys(nil, k, scope).join('.'), v) unless v.is_a?(Array) } else CopyTunerClient::TranslationLog.add(I18n.normalize_keys(nil, key, scope).join('.'), result) unless result.is_a?(Array) end result end