def to_h
      instance_variables.each_with_object({}) do |label, hash|
        object = instance_variable_get(label)
        # If it's a plural msgstr
        if object.is_a?(Array)
          object.each do |entry|
            hash[entry.type] = entry.to_s unless entry.nil?
          end
        else
          hash[object.type] = object.to_s unless object.nil?
        end
      end
    end
def to_h
      instance_variables.each_with_object({}) do |label, hash|
        object = instance_variable_get(label)
        # If it's a plural msgstr
        if object.is_a?(Array)
          object.each do |entry|
            hash[entry.type] = entry.to_s unless entry.nil?
          end
        else
          hash[object.type] = object.to_s unless object.nil?
        end
      end
    end
Convert entry to a hash key value

 @return [Hash]