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

Allow locale to contain a list of BCP47 tags #63

Merged
merged 2 commits into from
Dec 23, 2020

Conversation

Turbo87
Copy link
Contributor

@Turbo87 Turbo87 commented Oct 2, 2020

toLocaleString() allows the first argument to be a list of BCP47 tags (see https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString). This can be useful when passing in navigator.languages, so it should also be allowed for pretty-bytes. :)

@sindresorhus
Copy link
Owner

You need to update the readme too.

`toLocaleString()` allows the first argument to be a list of BCP47 tags (see https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString). This can be useful when passing in `navigator.languages`, so it should also be allowed for `pretty-bytes`. :)
@Turbo87
Copy link
Contributor Author

Turbo87 commented Oct 4, 2020

good catch! should be fixed now :)

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.

2 participants