mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 14:35:41 +00:00
efd85ffde3
* feat(tracklist): play count, last played, and BPM columns (#516) Adds three opt-in columns to Album / Playlist / Favorites tracklists, plus the same fields in the Song Info modal. Picks up Navidrome's existing `playCount` / `played` / `bpm` from the Subsonic response — no new API calls. - `SubsonicSong` gains `playCount`, `played`, `bpm` (already populated by Navidrome's Subsonic API, just unmapped in the TS model). - `albumTrackListHelpers.COLUMNS`, `PL_COLUMNS` (PlaylistDetail), and `FAV_COLUMNS` (Favorites) get the three new entries. Genre also added to the playlist column set for parity with the other two lists. - Render uses `.track-duration` (12px tabular, centered, muted) for the numeric stats and `.track-genre` (11px text, muted) for the relative last-played timestamp via the existing `formatLastSeen` helper. - Sort logic extended in `playlistDisplayedSongs`, `useAlbumDetailSort`, and `useFavoritesSongFiltering` for the three new keys. - `SongInfoModal` gets matching rows (BPM / Play count / Last played). - `useTracklistColumns.gridTemplate` / `gridMinWidth` fall back to the ColDef's `defaultWidth` when a visible column has no saved width (newly added column on an old prefs blob would otherwise emit `undefinedpx` and collapse the row layout until reset-to-defaults). - BPM cells skip the rendering when Navidrome returns 0 (default for untagged files) — show `—` instead of `0`. - i18n: `albumDetail.trackPlayCount / trackLastPlayed / trackBpm` and `songInfo.playCount / lastPlayed / bpm` in all 9 locales. Suggested by jbigginswyl (#516). * docs(changelog): tracklist Plays / Last played / BPM columns (#730)
51 lines
1.7 KiB
TypeScript
51 lines
1.7 KiB
TypeScript
export const albumDetail = {
|
||
back: 'Back',
|
||
orbitDoubleClickHint: 'Double-click to add this track to the Orbit queue',
|
||
playAll: 'Play All',
|
||
shareAlbum: 'Share album',
|
||
enqueue: 'Enqueue',
|
||
enqueueTooltip: 'Add entire album to queue',
|
||
artistBio: 'Artist Bio',
|
||
download: 'Download (ZIP)',
|
||
downloading: 'Loading…',
|
||
cacheOffline: 'Make available offline',
|
||
offlineCached: 'Available offline',
|
||
offlineDownloading: 'Caching… ({{n}}/{{total}})',
|
||
removeOffline: 'Remove offline cache',
|
||
offlineStorageFull: 'Offline storage full (limit: {{mb}} MB). Free up space by deleting an album from your Offline Library, or increase the limit in Settings.',
|
||
offlineStorageGoToLibrary: 'Offline Library',
|
||
offlineStorageGoToSettings: 'Settings',
|
||
favoriteAdd: 'Add to Favorites',
|
||
favoriteRemove: 'Remove from Favorites',
|
||
favorite: 'Favorite',
|
||
noBio: 'No biography available.',
|
||
moreByArtist: 'More by {{artist}}',
|
||
tracksCount: '{{n}} Tracks',
|
||
goToArtist: 'Go to {{artist}}',
|
||
moreLabelAlbums: 'More albums on {{label}}',
|
||
trackTitle: 'Title',
|
||
trackAlbum: 'Album',
|
||
trackArtist: 'Artist',
|
||
trackGenre: 'Genre',
|
||
trackPlayCount: 'Plays',
|
||
trackLastPlayed: 'Last played',
|
||
trackBpm: 'BPM',
|
||
trackFormat: 'Format',
|
||
trackFavorite: 'Favorite',
|
||
trackRating: 'Rating',
|
||
trackDuration: 'Duration',
|
||
trackTotal: 'Total',
|
||
columns: 'Columns',
|
||
resetColumns: 'Reset to defaults',
|
||
notFound: 'Album not found.',
|
||
bioModal: 'Artist Biography',
|
||
bioClose: 'Close',
|
||
ratingLabel: 'Rating',
|
||
enlargeCover: 'Enlarge',
|
||
filterSongs: 'Filter songs…',
|
||
sortNatural: 'Natural',
|
||
sortByTitle: 'A–Z (Title)',
|
||
sortByArtist: 'A–Z (Artist)',
|
||
sortByAlbum: 'A–Z (Album)',
|
||
};
|