feat(ui): add a Date Format setting to choose language or browser dates (#6263)

* feat(ui): add a Date Format setting to choose language or browser dates

Since #6160 dates follow the selected UI language, which is wrong for users who run the UI in one language but want their own region's date format. The Personal page now has a Date Format select with "Match language" (default, current behavior) and "Match browser". The choice is kept in localStorage and read by useDateLocale, which returns no locale in browser mode so Intl uses the browser's own.

Six screens imported react-admin's DateField directly and so ignored the language setting (playlist, radio and missing files lists, album table, song and album info). They now use the common DateField wrapper, which also reads the record from the record context.

* feat(ui): add pt-BR translations for the Date Format setting
This commit is contained in:
Deluan Quintão 2026-10-18 01:00:24 -07:00 • committed by GitHub
commit df77c462e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 70 additions and 11 deletions

View file

@ -660,6 +660,11 @@
"options": {
"theme": "Tema",
"language": "Língua",
"dateFormat": "Formato de data",
"dateFormats": {
"language": "Igual à língua",
"browser": "Igual ao navegador"
},
"defaultView": "Tela inicial",
"desktop_notifications": "Notificações",
"lastfmScrobbling": "Enviar scrobbles para Last.fm",