   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) ->
 

  # Config
  # ======

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

            getLangcode(locale)

        preprocessData: (data) ->
          pagepath     = humanReadableUrl(@src[0].replace(templatesDir, ''), options.humanReadableUrls.exclude)
          breadcrumb   = crumble(pagepath)
          matterData   = grunt.file.readJSON(options.files.matter)
          pageProps    = (get(matterData, breadcrumb) or {}).props

          set data, 'site.__matter__', matterData
