   locales.forEach (currentLocale) =>
     localeDir     = getLocaleDir(currentLocale)
     localeProps   = getLocaleProps(currentLocale)
-    localizedData = taskConfig.data(currentLocale)
+    localizedData = options.data(currentLocale)
 
     # Define targets, with unique options and files for each locale
     @config "nunjucks.#{currentLocale}",
 
       options:
-        paths                : taskConfig.nunjucksEnv
-        autoescape           : taskConfig.autoescape
+        paths                : options.nunjucksEnv
+        autoescape           : options.autoescape
         data                 : localizedData
         configureEnvironment : (env) ->
 


      files: [
        expand: true
        cwd: taskConfig.files.cwd
        src: taskConfig.files.src
        dest: join(taskConfig.files.dest, localeDir)
        ext: taskConfig.files.ext
        rename: (dest, src) =>
          src = if taskConfig.humanReadableUrls.enabled then humanReadableUrl(src, taskConfig.humanReadableUrls.exclude) else src
          join(dest, src)
      ]


  # Config
  # ======

  options =
    autoescape          : false
    data                : grunt.config('data')
    nunjucksEnv         : grunt.config('path.source.templates')
