feat(projects): format language-sensitive lists

This commit is contained in:
Rafael Bardini 2021-10-04 21:05:51 +02:00
parent 9f39fe16b6
commit aca7190f08
2 changed files with 3 additions and 3 deletions

View File

@ -46,8 +46,8 @@ Handlebars.registerHelper('icon', (name, fallback) =>
}),
)
Handlebars.registerHelper('join', (arr, separator) =>
arr.join(typeof separator === 'string' ? separator : ', '),
Handlebars.registerHelper('join', arr =>
Intl.ListFormat ? new Intl.ListFormat('en').format(arr) : arr.join(', '),
)
Handlebars.registerHelper('markdown', doc => micromark(doc))

View File

@ -386,7 +386,7 @@ blockquote > * + * {
</span>
</div>
<span>
<strong>Team lead, Designer</strong>
<strong>Team lead and Designer</strong>
at <strong>Smoogle</strong>
</span>
</header>