Skip to content

Comments

Allow locale to contain a list of BCP47 tags#63

Merged
sindresorhus merged 2 commits intosindresorhus:masterfrom
Turbo87:locales
Dec 23, 2020
Merged

Allow locale to contain a list of BCP47 tags#63
sindresorhus merged 2 commits intosindresorhus:masterfrom
Turbo87:locales

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