mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-15 14:48:41 +01:00
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:
parent
a45adbbb2e
commit
df77c462e8
14 changed files with 70 additions and 11 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue