Comments (2)
I am happy to be part of and discussion that might need to be had about this.
from uswds.
so I have been thinking about this more and I think the better solution would be to leverage Date.prototype.toLocaleString. The component could them read the language defined by the user and there would be no need to manually parse attributes like I suggested above.
const MONTH_LABELS = Array.from({ length: 12 }).map((_, i) => {
return new Date(0, i).toLocaleString("es", { month: "long" });
});
const DAY_OF_WEEK_LABELS = Array.from({ length: 7 }).map((_, i) => {
return new Date(0, 0, i).toLocaleString("es", {
weekday: "long",
});
});
from uswds.
Related Issues (20)
- USWDS - Layout Grid: Performance enhancement through partials. HOT 1
- USWDS - Feature: Make Alert dismissible/collapsible
- USWDS - Bug: shadow function is missing
- USWDS - Validation: Remove unused references HOT 1
- USWDS - Bug: Banner may fail 508 testing HOT 3
- USWDS - Feature: Hero add support for image none
- USWDS - Bug: Remove focus on text in validation component
- Concerns with ethnicity data collection HOT 2
- Begin converting system tokens
- USWDS - Bug: Button Specificity Problem
- USWDS - Bug: Table header cells in table body do not get header styling HOT 2
- USWDS - Bug: Cancel File Input Browsing HOT 2
- USWDS - Component lifecycle: Add discussion template
- USWDS - Bug: 508 - Unable to focus on the clear mark for the search field HOT 4
- USWDS - Bug: Mobile software keyboard not dismissed after selecting option in Time picker and Combo box component
- USWDS - Feature Request: Step Indicator styles break for processes with many steps HOT 1
- Research adaptive/alternate input modalities for disabled web users
- Accessibility Checklists: Re-audit components (peer review)
- USWDS - Feature: Add screen reader testing prompt for link component
- USWDS: Release 3.8.0 tasks HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uswds.