Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

count: format toLocaleString #173

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

mb-wali
Copy link
Contributor

@mb-wali mb-wali commented Jan 18, 2021

Applied for Count & BucketAggregation
closes #169

Applied for Count & BucketAggregation
Copy link
Member

@zzacharo zzacharo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mb-wali Thanks a lot for the PR!

@@ -123,7 +123,7 @@ const ValueElement = (props) => {
} = props;
const label = bucket.label
? bucket.label
: `${keyField} (${bucket.doc_count})`;
: `${keyField} (${bucket.doc_count.toLocaleString('en-US')})`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess is fine for now to stick to en-Us locale but we should definitely integrate proper internationalization for this!

@zzacharo
Copy link
Member

Merging for now until #61 is addressed!

@zzacharo zzacharo merged commit b5d0b56 into inveniosoftware:master Jan 19, 2021
@mb-wali mb-wali deleted the count/number branch January 22, 2021 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Count: number format
2 participants