code: function addLocalePackages() {
      var di = modules.findIndex(function(m) {
        return m.name === 'Date';
      });
      modules.splice(di + 1, 0, {
        name: 'Locales',
        comment: LOCALES_MODULE_COMMENT
      });
      getAllLocales().forEach(function(filePath) {
        var code = path.basename(filePath, '.js');
        var body = readFile(filePath);
        var name = body.match(/\s+([^*]+) locale definition/)[1];
        sourcePackages.push({
          name: name,
          code: code,
          body: body,
          type: 'locale',
          module: 'Locales',
          bodyWithComments: body,
          methodDependencies: ['addLocale']
        });
      });
    }
docs: --- Locales ---