Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let output = doc.map(mod => {
mod = clone(mod);
if (i18n[locale] && i18n[locale][mod.name]) {
mod.content = i18n[locale][mod.name];
}
return '## ' + mod.name + '\n\n' + mod.content;
});
output = output.join('\n\n');