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

      baseLocaleAsRoot  : true
      gettext           : grunt.config('i18n.gettext')

  gettext    = options.i18n.gettext
  baseLocale = options.i18n.baseLocale

  { getLocalesNames, getLocaleProps, getLocaleDir, getLangcode, getRegioncode, isoLocale } = new i18nTools(options.i18n.locales, baseLocale, options.i18n.baseLocaleAsRoot)

  locales      = getLocalesNames()

  buildDir     = options.files.dest
  templatesDir = options.files.cwd

  # =======================
  # Config l10n of Nunjucks
