# File lib/ice_cube/null_i18n.rb, line 5
    def self.t(key, options = {})
      base = key.to_s.split('.').reduce(config) { |hash, current_key| hash[current_key] }

      base = base[options[:count] == 1 ? "one" : "other"] if options[:count]

      case base
      when Hash
        base.each_with_object({}) do |(k, v), hash|
          hash[k.is_a?(String) ? k.to_sym : k] = v
        end
      when Array
        base.each_with_index.each_with_object({}) do |(v, k), hash|
          hash[k] = v
        end
      else
        return base unless base.include?('%{')
        base % options
      end
    end