Skip to content

Commit

Permalink
Merge pull request #12 from dontcallmedom/plural-singular
Browse files Browse the repository at this point in the history
Pluralize only when needed feature updates
  • Loading branch information
captainbrosset authored Jun 19, 2024
2 parents 0b940c7 + 8378ce1 commit e18e020
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/monthly.njk
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ layout: layout.njk
<h2><a href="{{ month.date | slugify }}">{{ month.date }} update</a></h2>
<p>
{% if month.features.high.length > 0 %}
{{ month.features.high.length }} features are now widely available.
{{ month.features.high.length }} feature{% if month.features.high.length > 1 %}s are{% else %} is{% endif %} now widely available.
{% endif %}
{% if month.features.low.length > 0 %}
{{ month.features.low.length }} features are newly available.
{{ month.features.low.length }} feature{% if month.features.low.length > 1 %}s are{% else %} is{% endif %} newly available.
{% endif %}
{% for browser in browsers %}
{% if month.features[browser.id].length > 0 %}
{{ month.features[browser.id].length }} features became available in {{ browser.name }}.
{{ month.features[browser.id].length }} feature{% if month.features[browser.id].length > 1 %}s{% endif %} became available in {{ browser.name }}.
{% endif %}
{% endfor %}
</p>
Expand Down

0 comments on commit e18e020

Please sign in to comment.