Skip to content

Commit

Permalink
Revert removal of lang.FormatNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
salixor authored and nicokaiser committed May 29, 2024
1 parent f128935 commit 4f26aa3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/album-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<h2>{{ .page.Title }}</h2>
<p>
{{ if gt .albumCount 0 }}
{{ T "albumCount" (dict "count" .albumCount "photoCount" (.imageCount | lang.Translate "photoCount")) }}
{{ T "albumCount" (dict "count" (.albumCount | lang.FormatNumber 0) "photoCount" (.imageCount | lang.FormatNumber 0 | lang.Translate "photoCount")) }}
{{ else }}
{{ T "photoCount" .imageCount }}
{{ T "photoCount" (.imageCount | lang.FormatNumber 0) }}
{{ end }}
</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/featured.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<h2>{{ .Title }}</h2>
<p>
{{ if gt $gallery.albumCount 0 }}
{{ T "albumCount" (dict "count" $gallery.albumCount "photoCount" ($gallery.imageCount | lang.Translate "photoCount")) }}
{{ T "albumCount" (dict "count" ($gallery.albumCount | lang.FormatNumber 0) "photoCount" ($gallery.imageCount | lang.FormatNumber 0 | lang.Translate "photoCount")) }}
{{ else }}
{{ T "photoCount" $gallery.imageCount }}
{{ T "photoCount" ($gallery.imageCount | lang.FormatNumber 0) }}
{{ end }}
</p>
</div>
Expand Down

0 comments on commit 4f26aa3

Please sign in to comment.