navidrome/ui/src/utils
Deluan Quintão be8ec15168
feat(ui): format dates using the selected language (#6160)
Dates were rendered with the browser locale, ignoring the language chosen in
Personal settings, so a user browsing in German still saw US-style dates. All
date rendering now resolves its locale through a useDateLocale hook that returns
the selected language, augmented with the region from navigator.languages when
the language carries none (Intl reads a bare "en" as en-US). Applied to
DateField, the rated/loved tooltips, the mobile user list and album release
dates; the three inline timestamp tooltips now share a formatDateTime helper.

Closes #229
2026-09-19 14:07:42 -04:00
..
calculateReplayGain.js fix(ui): show effective dB of track when playing (#3293) 2024-09-21 16:46:14 -04:00
formatters.js feat(ui): format dates using the selected language (#6160) 2026-09-19 14:07:42 -04:00
formatters.test.js test: fix locale-dependent tests by making formatNumber locale-aware (#4619) 2025-11-06 14:34:00 -05:00
index.js feat(ui): add Play Artist's Top Songs button (#4204) 2025-06-09 19:09:04 -04:00
intersperse.js Reformat code with Prettier's new rules. 2023-12-18 15:12:24 -05:00
notifications.js Fix formatting 2020-11-21 02:03:54 -05:00
openInNewTab.js Implement Last.fm account linking UI 2021-06-23 11:01:58 -04:00
thumbhash.js feat(artwork): new artwork pipeline with background resolution and Low Quality Image Placeholders (#5847) 2026-08-09 15:03:27 -04:00
thumbhash.test.js feat(artwork): new artwork pipeline with background resolution and Low Quality Image Placeholders (#5847) 2026-08-09 15:03:27 -04:00
urls.js fix(ui): use div for fragment, check lastfm url for artist page (#4980) 2026-02-04 17:34:26 -05:00
urls.test.js fix(ui): use div for fragment, check lastfm url for artist page (#4980) 2026-02-04 17:34:26 -05:00
validations.js feat: add Rated At field - #4653 (#4660) 2025-11-24 23:18:05 -05:00
validations.test.js feat: add Rated At field - #4653 (#4660) 2025-11-24 23:18:05 -05:00