   searchCompleted: (query) =>
 
     List.trigger 'select:model',
-      name: 'Completed'
+      name: text.completed
       id: 'search'
       type: 'completed'
       permanent: yes

  searchAll: (query) =>

    List.trigger 'select:model',
      name: 'All Tasks'
      id: 'search'
      type: 'active'
      permanent: yes

List  = require '../models/list'
Task  = require '../models/task'
event = require '../utils/event'
Translate = require '../utils/translate'

text = {}

event.on 'load:language', ->
  text = Translate
    all: 'All Tasks'
    completed: 'Completed'

class Search

