     else
       grunt.task.run 'contrib-jade'
 
-
-
   getExtension = (filepath) ->
     path.extname filepath
 

    file.dest = file.orig.dest = dest

  addLocaleDirnameDest = (file, locale, outputExt) ->
    if ext = getExtension file.dest
      dest = path.join path.dirname(file.dest), locale, path.basename(file.dest, ext) + setExtension ext
    else
      if /(\/|\*+)$/i.test file.dest
        base = file.dest.split('/')
        dest = path.join path.join.apply(null, base.slice(0, -1)), locale, base.slice(-1)[0]
      else
        dest = path.join file.dest, locale


      ext = '.' + ext
    ext

  s = (file) -> 
    path.basename(file.src[0]).split('.').shift()

  addLocaleExtensionDest = (file, locale, outputExt) ->
    locale = locale.toLowerCase()
  
    if ext = getExtension file.dest
      dest = path.join path.dirname(file.dest), path.basename(file.dest, ext) + ".#{locale}"
    else
      dest = path.join file.dest, getBaseName(file) + ".#{locale}"

    if file.orig.ext
      dest += setExtension file.orig.ext
