Skip to content

Commit

Permalink
Merge pull request #40 from davwheat/dw/format-numerics
Browse files Browse the repository at this point in the history
feat: format numbers in statwidgets
  • Loading branch information
askvortsov1 authored May 13, 2023
2 parents 82e59be + d83b798 commit 1a2d352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/forum/components/Category.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export default class Category extends Component<Attrs> {
items.add(
'discussionCount',
StatWidget.component({
count: this.tag.discussionCount(),
count: Intl.NumberFormat().format(this.tag.discussionCount()),
label: app.translator.trans('askvortsov-categories.forum.stat-widgets.discussion_label'),
icon: 'fas fa-file-alt',
}),
Expand All @@ -218,7 +218,7 @@ export default class Category extends Component<Attrs> {
items.add(
'postCount',
StatWidget.component({
count: this.tag.postCount(),
count: Intl.NumberFormat().format(this.tag.postCount()),
label: app.translator.trans('askvortsov-categories.forum.stat-widgets.post_label'),
icon: 'fas fa-comment',
}),
Expand Down

0 comments on commit 1a2d352

Please sign in to comment.