     findOne: obj.findOne
 
   local_session = new ReactiveDict()
-
   for method of original
     do (method) ->
       obj[method] = (selector, options) ->

  return obj

TAPi18n.subscribe = (name) ->
  # parse arguments
  params = Array.prototype.slice.call(arguments, 1)
  callbacks = undefined
  if params.length
    lastParam = params[params.length - 1]
    if (typeof lastParam == "function")

                             typeof lastParam.onError == "function"))
      callbacks = params.pop()

  # We want the onReady/onError methods to be called only once (not for every language change)
  onReadyCalled = false;
  onErrorCalled = false;
  original_onReady = callbacks.onReady;
  callbacks.onReady = ->
    if onErrorCalled
      return

    local_session.set("ready", true)

    if original_onReady?
      original_onReady()

  if callbacks.onError?
    callbacks.onError = ->
      if onReadyCalled
        _.once callbacks.onError

  subscription = null
  subscription_computation = null
  subscribe = ->
