module Transifex::ResourceComponents::TranslationComponents::Utilities
Private Instance Methods
compute_source_entity_hash(key, context = "")
click to toggle source
# File lib/transifex/resource_components/translation_components/utilities.rb, line 6 def compute_source_entity_hash(key, context = "") keys = '' if context.is_a?(Array) unless context.empty? keys = [key] + context else keys = [key, ''] end else keys = [key, context] end Digest::MD5.hexdigest(keys.join(':').encode("UTF-8")) end