A date typed in the order you chose, not the browser's
Settings › Date format steered every date the app printed, but not one it asked for: `<input type="date">` renders in the browser's own locale and no page setting can move it, so DD-MM-YYYY tables sat above 08/22/2026 boxes. DateField takes over the typing half — a masked box whose segment order comes from the same prefs.dateFormat lib/format.js reads — and leaves the picking half to the browser, behind a calendar button. The value in and out stays ISO, so no caller changed. Native validation now also catches a full-but-impossible date; the old input let a half-typed one through as no date at all. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d4033dbcef
commit
f7caeaf907
14 files changed
+317
-26
No files matched your search
@@ -19,7 +19,8 @@
|
||||
"download": "Download",
|
||||
"empty": "—",
|
||||
"yes": "Ja",
|
||||
"no": "Nej"
|
||||
"no": "Nej",
|
||||
"dateUnits": { "y": "åååå", "m": "mm", "d": "dd" }
|
||||
},
|
||||
|
||||
"nav": {
|
||||
@@ -643,6 +644,10 @@
|
||||
},
|
||||
|
||||
"forms": {
|
||||
"common": {
|
||||
"pickDate": "Åbn kalender",
|
||||
"dateInvalid": "Indtast en gyldig dato i dette format."
|
||||
},
|
||||
"car": {
|
||||
"addTitle": "Tilføj en bil",
|
||||
"editTitle": "Rediger bil",
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
"download": "Download",
|
||||
"empty": "—",
|
||||
"yes": "Yes",
|
||||
"no": "No"
|
||||
"no": "No",
|
||||
"dateUnits": { "y": "yyyy", "m": "mm", "d": "dd" }
|
||||
},
|
||||
|
||||
"nav": {
|
||||
@@ -642,6 +643,10 @@
|
||||
},
|
||||
|
||||
"forms": {
|
||||
"common": {
|
||||
"pickDate": "Open calendar",
|
||||
"dateInvalid": "Enter a real date in this format."
|
||||
},
|
||||
"car": {
|
||||
"addTitle": "Add a car",
|
||||
"editTitle": "Edit car",
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
"download": "Pobierz",
|
||||
"empty": "—",
|
||||
"yes": "Tak",
|
||||
"no": "Nie"
|
||||
"no": "Nie",
|
||||
"dateUnits": { "y": "rrrr", "m": "mm", "d": "dd" }
|
||||
},
|
||||
|
||||
"nav": {
|
||||
@@ -657,6 +658,10 @@
|
||||
},
|
||||
|
||||
"forms": {
|
||||
"common": {
|
||||
"pickDate": "Otwórz kalendarz",
|
||||
"dateInvalid": "Wpisz istniejącą datę w tym formacie."
|
||||
},
|
||||
"car": {
|
||||
"addTitle": "Dodaj samochód",
|
||||
"editTitle": "Edytuj samochód",
|
||||
|
||||
Reference in new issue
Block a user