Provide locale setting on nimble-theme-provider #1293
Labels
enhancement
New feature or request
needs investigation
Further research is needed to identify solution
😯 Problem to Solve
The
nimble-theme-provider
element should have a way to specify a locale that can be used by various components for sorting and formatting. We should also consider having the default value oflocale
be determined by the browser.Some places where this could be used:
nimble-table
nimble-number-field
nimble-table
nimble-date-picker
This has been discussed in a few different places:
💁 Proposed Solution
Add a new property/attribute to the
nimble-theme-provider
that allows components to access the current locale of an application. This attribute can have a default value based on the application, but it should be configurable by an application using nimble.More investigation is still needed to solidify a recommendation on string sorting, such as for string column sorting in the table. We should consider how the
Collator
compares to the current implementation oflocaleCompare
.The text was updated successfully, but these errors were encountered: