A cross platform Audiobookshelf client for Android and iOS
Dart
Localize basically the whole app
Barnabas9c1b43399cc2
diff --git a/.gitignore b/.gitignoreindex 0be5e117..9a9741bc 100644--- a/.gitignore+++ b/.gitignore@@ -55,3 +55,6 @@ android/key.properties# Tests (local only)/test/++# Battery profiling output+/battery-reports/diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arbindex 00a9a356..3522cf1b 100644--- a/lib/l10n/app_en.arb+++ b/lib/l10n/app_en.arb@@ -739,11 +739,14 @@"welcomeQueueModesTitle": "Queue modes","welcomeQueueModeOff": "Off - playback stops when a book finishes","welcomeQueueModeManual": "Manual - auto-plays the next card in your queue",- "welcomeQueueModeAuto": "Auto Absorb - automatically finds and plays the next book in a series",+ "welcomeQueueModeAuto": "Series - automatically finds and plays the next book in a series","welcomeManagingQueueTitle": "Managing your queue",+ "welcomeManagingCoverTap": "Tap the cover art to play/pause (toggleable in Settings)",+ "welcomeManagingSwipeUp": "Swipe up on a card to open the full screen player, swipe down to dismiss",+ "welcomeManagingSwipeRight": "Swipe right on any book in a list sheet to quickly add it to your queue","welcomeManagingReorder": "Tap the reorder icon to drag cards into your preferred order or swipe to remove","welcomeManagingAdd": "Add books manually from any book's detail sheet",- "welcomeManagingFinish": "When a book finishes, choose to listen again, remove it, or let it auto-release",+ "welcomeManagingRemoveFinished": "Finished books are automatically removed from your queue","welcomeMergeLibrariesTitle": "Merge libraries","welcomeMergeLibrariesBody": "Enable in Settings to show all your libraries together in one queue","welcomeDownloadsTitle": "Downloads & Offline",@@ -779,5 +782,824 @@"audible": "Audible","iTunes": "iTunes",- "openLibrary": "Open Library"+ "openLibrary": "Open Library",++ "root": "Root",+ "coverPlayPause": "Cover play/pause",+ "coverPlayPauseOnSubtitle": "On - tap cover art to play/pause",+ "coverPlayPauseOffSubtitle": "Off - dedicated play/pause button in controls",+ "queueModeMergedSubtitle": "Playback stops, manual queue, or auto-absorbs next item",+ "queueModeSeriesLabel": "Series",+ "queueModeShowLabel": "Show",+ "queueModeInfoSeries": "Series",+ "queueModeInfoSeriesDesc": "Automatically plays the next book in a series or the next episode in a podcast show.",+ "resetButtonGridQuestion": "Reset button grid?",+ "resetButtonGridContent": "This will restore the default button layout, order, and toggle settings.",+ "reset": "Reset",+ "buttonGridReset": "Button grid reset",+ "resetButtonGrid": "Reset button grid",+ "chapterBarrierOnRewind": "Chapter barrier on rewind",+ "chapterBarrierInfoTitle": "Chapter barrier",+ "chapterBarrierInfoContent": "When skipping back, the playback will snap to the start of the current chapter instead of crossing into the previous one.\n\nDouble-tap the skip back button within 2 seconds to break through the barrier.",+ "chapterBarrierOnRewindOnSubtitle": "On - rewind snaps to chapter start",+ "chapterBarrierOnRewindOffSubtitle": "Off - rewind crosses chapter boundaries",+ "autoRewindOnSubtitleFormat": "On -{min}s to {max}s based on pause length",+ "@autoRewindOnSubtitleFormat": { "placeholders": { "min": { "type": "String" }, "max": { "type": "String" } } },+ "rewindOnSessionStart": "Rewind on session start",+ "rewindOnSessionStartInfoContent": "Normal auto-rewind triggers when you resume from a pause within an active session. This setting adds a rewind when starting a completely new session - for example after the app was closed, playback was stopped, or you open the app fresh.\n\nWhen enabled, playback rewinds by the full max rewind amount at the start of every new session so you can re-hear where you left off.",+ "rewindOnSessionStartOnSubtitle": "On - rewinds {seconds}s when starting a new session",+ "@rewindOnSessionStartOnSubtitle": { "placeholders": { "seconds": { "type": "String" } } },+ "rewindActivationDelayValue": "{seconds}s+",+ "@rewindActivationDelayValue": { "placeholders": { "seconds": { "type": "String" } } },+ "rewindRangeValue": "{min}s – {max}s",+ "@rewindRangeValue": { "placeholders": { "min": { "type": "String" }, "max": { "type": "String" } } },+ "rewindSecondsPause": "{seconds}s pause",+ "@rewindSecondsPause": { "placeholders": { "seconds": { "type": "String" } } },+ "rewindMinPause": "{minutes} min pause",+ "@rewindMinPause": { "placeholders": { "minutes": { "type": "String" } } },+ "rewindHrPause": "{hours} hr pause",+ "@rewindHrPause": { "placeholders": { "hours": { "type": "String" } } },+ "rewindOneHrPause": "1 hr pause",+ "speedValue": "{speed}x",+ "@speedValue": { "placeholders": { "speed": { "type": "String" } } },+ "secondsValue": "{seconds}s",+ "@secondsValue": { "placeholders": { "seconds": { "type": "String" } } },+ "minutesValue": "{minutes} min",+ "@minutesValue": { "placeholders": { "minutes": { "type": "int" } } },+ "chimeBeforeSleep": "Chime before sleep",+ "chimeBeforeSleepOnSubtitle": "Plays a gentle bell when the timer is about to end",+ "chimeBeforeSleepOffSubtitle": "No sound warning before sleep",+ "windDownDuration": "Wind-down duration",+ "windDownDurationSubtitle": "Fade and chime start {seconds}s before sleep",+ "@windDownDurationSubtitle": { "placeholders": { "seconds": { "type": "int" } } },+ "fadeVolumeOnSubtitleDynamic": "Gradually lowers volume over the last {seconds}s",+ "@fadeVolumeOnSubtitleDynamic": { "placeholders": { "seconds": { "type": "int" } } },+ "autoSleepTimerEnabledSubtitle": "{start} – {end} · {duration}",+ "@autoSleepTimerEnabledSubtitle": { "placeholders": { "start": { "type": "String" }, "end": { "type": "String" }, "duration": { "type": "String" } } },+ "endOfChapterShort": "End of chapter",+ "endOfChapterOnSubtitle": "Stop at the end of the current chapter",+ "endOfChapterOffSubtitle": "Use a timed sleep timer",+ "showExplicitBadge": "Show explicit badge",+ "showExplicitBadgeOnSubtitle": "Explicit items show an \"E\" badge",+ "showExplicitBadgeOffSubtitle": "Off - explicit badge hidden",+ "libraryFallback": "Library",+ "preReleaseUpdatesInfoTitle": "Pre-release Updates",+ "preReleaseUpdatesInfoContent": "When enabled, the update checker will also notify you about alpha and pre-release builds from GitHub. These may be less stable but include the latest features and fixes.",+ "includePreReleases": "Include pre-releases",+ "includePreReleasesOnSubtitle": "On - checking for alpha & pre-release builds",+ "includePreReleasesOffSubtitle": "Off - stable releases only",+ "setTooltip": "Set",+ "saveAbsorbBackup": "Save Absorb backup",+ "checkForUpdate": "Check for update",+ "onLatestVersion": "You're on the latest version",+ "updateAvailable": "Update available",+ "preReleaseAvailable": "Pre-release available",+ "updateDialogContent": "A new {kind} of Absorb is available: {latest}\n\nYou are on {current}.",+ "@updateDialogContent": { "placeholders": { "kind": { "type": "String" }, "latest": { "type": "String" }, "current": { "type": "String" } } },+ "updateKindPreRelease": "pre-release",+ "updateKindVersion": "version",+ "downloadButton": "Download",+ "libraryCountOne": "{count} library",+ "@libraryCountOne": { "placeholders": { "count": { "type": "int" } } },+ "libraryCountOther": "{count} libraries",+ "@libraryCountOther": { "placeholders": { "count": { "type": "int" } } },+ "serverVersionLabel": "Server {version}",+ "@serverVersionLabel": { "placeholders": { "version": { "type": "String" } } },+ "appVersionServerSuffix": " · Server {version}",+ "@appVersionServerSuffix": { "placeholders": { "version": { "type": "String" } } },+ "backupDateFormat": "{month}/{day}/{year}",+ "@backupDateFormat": { "placeholders": { "month": { "type": "int" }, "day": { "type": "int" }, "year": { "type": "int" } } },+ "backupDetailsSeparator": " · ",++ "bookmarksSortedByPositionReversed": "Sorted by position (reversed)",+ "bookmarksJumpShortContent": "\"{title}\" at {position}",+ "@bookmarksJumpShortContent": { "placeholders": { "title": { "type": "String" }, "position": { "type": "String" } } },+ "deleteBookmarkQuestion": "Delete bookmark?",+ "bookmarkAtPosition": "Bookmark at {position}",+ "@bookmarkAtPosition": { "placeholders": { "position": { "type": "String" } } },+ "cardIconsOnlyChip": "Icons only",+ "cardMoreInGridChip": "\"More\" in grid",+ "cardLayoutHidden": "Hidden",+ "speed": "Speed",+ "details": "Details",+ "episodeDetailsLabel": "Episode Details",+ "bookDetailsLabel": "Book Details",+ "equalizerShort": "EQ",+ "equalizerLabel": "Equalizer",+ "cast": "Cast",+ "castingToDevice": "Casting to {device}",+ "@castingToDevice": { "placeholders": { "device": { "type": "String" } } },+ "castToDeviceNamed": "Cast to {device}",+ "@castToDeviceNamed": { "placeholders": { "device": { "type": "String" } } },+ "historyShort": "History",+ "atPosition": "at {position}",+ "@atPosition": { "placeholders": { "position": { "type": "String" } } },++ "chaptersChip": "{count} chapters",+ "@chaptersChip": { "placeholders": { "count": { "type": "int" } } },+ "chapterNumber": "Chapter {number}",+ "@chapterNumber": { "placeholders": { "number": { "type": "int" } } },+ "kbpsValue": "{value} kbps",+ "@kbpsValue": { "placeholders": { "value": { "type": "int" } } },+ "resetMayNotHaveSynced": "Reset may not have synced - check your server",+ "failedToDownloadEbook": "Failed to download ebook ({code})",+ "@failedToDownloadEbook": { "placeholders": { "code": { "type": "int" } } },+ "serverReturnedErrorPage": "Server returned an error page instead of the ebook file",+ "ebookSaved": "Saved: {filename}",+ "@ebookSaved": { "placeholders": { "filename": { "type": "String" } } },+ "errorSavingEbook": "Error saving ebook: {error}",+ "@errorSavingEbook": { "placeholders": { "error": { "type": "String" } } },+ "failedToSaveError": "Failed to save: {error}",+ "@failedToSaveError": { "placeholders": { "error": { "type": "String" } } },++ "adminBackupsLabel": "Backups",+ "adminListeningNow": "Listening Now",+ "adminLibraries": "Libraries",+ "adminLibraryShows": "shows",+ "adminLibraryBooks": "books",+ "adminLibraryFolders": "folders",+ "adminLibrarySize": "size",+ "adminLibraryDuration": "duration",+ "adminMatchAction": "Match",+ "adminMatchingStarted": "Matching started for {name}",+ "@adminMatchingStarted": { "placeholders": { "name": { "type": "String" } } },+ "adminMatchFailed": "Failed",+ "adminScanFailed": "Failed to scan {name}",+ "@adminScanFailed": { "placeholders": { "name": { "type": "String" } } },+ "adminPurgeCacheFailed": "Failed",++ "adminUsersRootBadge": "root",+ "adminUsersAdminBadge": "admin",+ "adminUsersDisabledBadge": "disabled",+ "adminUsersEditUserTooltip": "Edit user",+ "adminUsersOnlineNow": "Online now",+ "adminUsersLastSeen": "Last seen {time}",+ "@adminUsersLastSeen": { "placeholders": { "time": { "type": "String" } } },+ "adminUsersNever": "Never",+ "adminUsersTotal": "Total",+ "adminUsersNoReadingActivity": "No reading activity",+ "adminUsersLoadingDots": "Loading...",+ "adminUsersLoadMoreSessions": "Load more sessions",+ "adminUsersNoRecentSessions": "No recent sessions",+ "adminUsersLibraryProgress": "Library Progress",+ "adminUsersLoadMoreRemaining": "Load More ({count} remaining)",+ "@adminUsersLoadMoreRemaining": { "placeholders": { "count": { "type": "int" } } },+ "adminUsersMonthsAgo": "{count}mo ago",+ "@adminUsersMonthsAgo": { "placeholders": { "count": { "type": "int" } } },+ "adminUsersNewUser": "New User",+ "adminUsersEditUser": "Edit User",+ "adminUsersUsername": "Username",+ "adminUsersEnterUsername": "Enter username",+ "adminUsersPassword": "Password",+ "adminUsersNewPassword": "New Password",+ "adminUsersEnterPassword": "Enter password",+ "adminUsersLeaveBlankToKeep": "Leave blank to keep current",+ "adminUsersAccountType": "Account Type",+ "adminUsersTypeGuest": "Guest",+ "adminUsersTypeUser": "User",+ "adminUsersTypeAdmin": "Admin",+ "adminUsersStatus": "Status",+ "adminUsersAccountActive": "Account Active",+ "adminUsersAccountActiveSub": "Disabled accounts cannot log in",+ "adminUsersLocked": "Locked",+ "adminUsersLockedSub": "Prevents password changes",+ "adminUsersPermissions": "Permissions",+ "adminUsersPermDownload": "Download",+ "adminUsersPermUpdate": "Update",+ "adminUsersPermUpdateSub": "Edit metadata and library items",+ "adminUsersPermDelete": "Delete",+ "adminUsersPermUpload": "Upload",+ "adminUsersPermExplicit": "Explicit Content",+ "adminUsersLibraryAccess": "Library Access",+ "adminUsersAccessAllLibraries": "Access All Libraries",+ "adminUsersCreateUser": "Create User",+ "adminUsersSaveChanges": "Save Changes",+ "adminUsersUsernameRequired": "Username is required",+ "adminUsersPasswordRequired": "Password is required",+ "adminUsersUserCreated": "User created",+ "adminUsersUserUpdated": "User updated",+ "adminUsersFailedCreate": "Failed to create user",+ "adminUsersFailedUpdate": "Failed to update user",+ "adminUsersThisUser": "this user",+ "adminUsersDeleteUserTitle": "Delete User?",+ "adminUsersDeleteUserContent": "Permanently delete {name}?",+ "@adminUsersDeleteUserContent": { "placeholders": { "name": { "type": "String" } } },+ "adminUsersUserDeleted": "{name} deleted",+ "@adminUsersUserDeleted": { "placeholders": { "name": { "type": "String" } } },+ "adminUsersFailedDelete": "Failed to delete user",+ "adminUsersByAuthor": "by {author}",+ "@adminUsersByAuthor": { "placeholders": { "author": { "type": "String" } } },+ "adminUsersListened": "Listened",+ "adminUsersStartedAtPosition": "Started at position",+ "adminUsersEndedAtPosition": "Ended at position",+ "adminUsersTotalDuration": "Total duration",+ "adminUsersStarted": "Started",+ "adminUsersUpdated": "Updated",+ "adminUsersClient": "Client",+ "adminUsersDevice": "Device",+ "adminUsersOs": "OS",+ "adminUsersPlayMethod": "Play method",+ "adminUsersPlayDirect": "Direct play",+ "adminUsersPlayDirectStream": "Direct stream",+ "adminUsersPlayTranscode": "Transcode",+ "adminUsersPlayLocal": "Local",++ "adminPodcastsCheckNewEpisodesTitle": "Check for New Episodes",+ "adminPodcastsCheckNewEpisodesContent": "This will check RSS feeds for all podcasts and download any new episodes found (if auto-download is enabled).",+ "adminPodcastsCheckNewEpisodesSubtitle": "Scan RSS feed and download new episodes",+ "adminPodcastsCheck": "Check",+ "adminPodcastsCheckingForNew": "Checking for new episodes\u2026",+ "adminPodcastsCheckingForNewDots": "Checking for new episodes...",+ "adminPodcastsFailedCheckEpisodes": "Failed to check episodes",+ "adminPodcastsCheckFeedsTooltip": "Check feeds for new episodes",+ "adminPodcastsNoPodcastsYet": "No podcasts yet",+ "adminPodcastsTapPlusHint": "Tap + to search and add shows",+ "adminPodcastsEpisodesCount": "{count} episodes",+ "@adminPodcastsEpisodesCount": { "placeholders": { "count": { "type": "int" } } },+ "adminPodcastsAddPodcast": "Add Podcast",+ "adminPodcastsCouldNotFindFeed": "Could not find podcast feed",+ "adminPodcastsSearchHint": "Search for podcasts\u2026",+ "adminPodcastsSearchItunesHint": "Search iTunes...",+ "adminPodcastsNoPodcastsFound": "No podcasts found",+ "adminPodcastsRelToday": "Today",+ "adminPodcastsWeeksAgo": "{count}w ago",+ "@adminPodcastsWeeksAgo": { "placeholders": { "count": { "type": "int" } } },+ "adminPodcastsMonthsAgo": "{count}mo ago",+ "@adminPodcastsMonthsAgo": { "placeholders": { "count": { "type": "int" } } },+ "adminPodcastsYearsAgo": "{count}y ago",+ "@adminPodcastsYearsAgo": { "placeholders": { "count": { "type": "int" } } },+ "adminPodcastsUpdated": "Updated {when}",+ "@adminPodcastsUpdated": { "placeholders": { "when": { "type": "String" } } },+ "adminPodcastsGenreAll": "All",+ "adminPodcastsGenreArts": "Arts",+ "adminPodcastsGenreComedy": "Comedy",+ "adminPodcastsGenreEducation": "Education",+ "adminPodcastsGenreTvFilm": "TV & Film",+ "adminPodcastsGenreMusic": "Music",+ "adminPodcastsGenreNews": "News",+ "adminPodcastsGenreReligion": "Religion",+ "adminPodcastsGenreScience": "Science",+ "adminPodcastsGenreSports": "Sports",+ "adminPodcastsGenreTechnology": "Technology",+ "adminPodcastsGenreBusiness": "Business",+ "adminPodcastsGenreFiction": "Fiction",+ "adminPodcastsGenreSocietyCulture": "Society & Culture",+ "adminPodcastsGenreHealthFitness": "Health & Fitness",+ "adminPodcastsGenreTrueCrime": "True Crime",+ "adminPodcastsGenreHistory": "History",+ "adminPodcastsGenreKidsFamily": "Kids & Family",+ "adminPodcastsPodcastFallback": "Podcast",+ "adminPodcastsEpisodeFallback": "Episode",+ "adminPodcastsNoFeedFound": "No feed URL found",+ "adminPodcastsNoFeedAvailable": "No feed URL available",+ "adminPodcastsAddedToLibrary": "{title} added to library",+ "@adminPodcastsAddedToLibrary": { "placeholders": { "title": { "type": "String" } } },+ "adminPodcastsFailedToAdd": "Failed to add {title}",+ "@adminPodcastsFailedToAdd": { "placeholders": { "title": { "type": "String" } } },+ "adminPodcastsEpisodesInFeed": "{count} episodes in feed",+ "@adminPodcastsEpisodesInFeed": { "placeholders": { "count": { "type": "int" } } },+ "adminPodcastsMoreEpisodes": "+ {count} more episodes",+ "@adminPodcastsMoreEpisodes": { "placeholders": { "count": { "type": "int" } } },+ "adminPodcastsAdding": "Adding\u2026",+ "adminPodcastsAddToLibrary": "Add to Library",+ "adminPodcastsRemoveShowTitle": "Remove Show?",+ "adminPodcastsRemoveShowContent": "Remove \"{title}\" and all its episodes from the server? This cannot be undone.",+ "@adminPodcastsRemoveShowContent": { "placeholders": { "title": { "type": "String" } } },+ "adminPodcastsRemovedShow": "Removed \"{title}\"",+ "@adminPodcastsRemovedShow": { "placeholders": { "title": { "type": "String" } } },+ "adminPodcastsFailedRemoveShow": "Failed to remove show",+ "adminPodcastsRemoveShowTooltip": "Remove show",+ "adminPodcastsSelectMultipleTooltip": "Select multiple",+ "adminPodcastsDownloadedCount": "{count} downloaded",+ "@adminPodcastsDownloadedCount": { "placeholders": { "count": { "type": "int" } } },+ "adminPodcastsTabDownloaded": "Downloaded",+ "adminPodcastsTabFeed": "Feed",+ "adminPodcastsTabSettings": "Settings",+ "adminPodcastsDownloadingEpisode": "Downloading \"{title}\"",+ "@adminPodcastsDownloadingEpisode": { "placeholders": { "title": { "type": "String" } } },+ "adminPodcastsFailedDownload": "Failed to download",+ "adminPodcastsDeleteEpisodeTitle": "Delete Episode?",+ "adminPodcastsDeleteEpisodeContent": "Delete \"{title}\"?",+ "@adminPodcastsDeleteEpisodeContent": { "placeholders": { "title": { "type": "String" } } },+ "adminPodcastsDeleted": "Deleted",+ "adminPodcastsFailed": "Failed",+ "adminPodcastsDeleteEpisodesTitle": "Delete Episodes?",+ "adminPodcastsDeleteEpisodesContent": "Delete {count} episode(s) from the server?",+ "@adminPodcastsDeleteEpisodesContent": { "placeholders": { "count": { "type": "int" } } },+ "adminPodcastsDeletedEpisodes": "Deleted {count} episode(s)",+ "@adminPodcastsDeletedEpisodes": { "placeholders": { "count": { "type": "int" } } },+ "adminPodcastsBrowseFeedToDownload": "Browse feed to download",+ "adminPodcastsDownloadingDots": "Downloading...",+ "adminPodcastsDeleteEpisodesCount": "Delete {count} episode(s)",+ "@adminPodcastsDeleteEpisodesCount": { "placeholders": { "count": { "type": "int" } } },+ "adminPodcastsDownloadingCount": "Downloading {count} episode(s)",+ "@adminPodcastsDownloadingCount": { "placeholders": { "count": { "type": "int" } } },+ "adminPodcastsDownloadEpisodesCount": "Download {count} episode(s)",+ "@adminPodcastsDownloadEpisodesCount": { "placeholders": { "count": { "type": "int" } } },+ "adminPodcastsLookForEpisodesAfter": "Look for episodes after",+ "adminPodcastsSelectDate": "Select date",+ "adminPodcastsMaxEpisodes": "Max episodes to download",+ "adminPodcastsNoNewEpisodesAfter": "No new episodes found after {date}",+ "@adminPodcastsNoNewEpisodesAfter": { "placeholders": { "date": { "type": "String" } } },+ "adminPodcastsFoundNewEpisodes": "Found {count} new episode(s) - downloading",+ "@adminPodcastsFoundNewEpisodes": { "placeholders": { "count": { "type": "int" } } },+ "adminPodcastsFailedToCheckNew": "Failed to check for new episodes",+ "adminPodcastsCheckAndDownload": "Check & Download",+ "adminPodcastsMatchPodcast": "Match Podcast",+ "adminPodcastsMatchPodcastSubtitle": "Search iTunes to update cover and metadata",+ "adminPodcastsAutoDownloadNewEpisodes": "Auto-Download New Episodes",+ "adminPodcastsAutoDownloadOnSubtitle": "Server downloads new episodes automatically",+ "adminPodcastsAutoDownloadOffSubtitle": "New episodes are not auto-downloaded",+ "adminPodcastsFailedAutoDownloadUpdate": "Failed to update auto-download setting",+ "adminPodcastsCheckSchedule": "Check Schedule",+ "adminPodcastsFrequency": "Frequency",+ "adminPodcastsFreqHourly": "Hourly",+ "adminPodcastsFreqDaily": "Daily",+ "adminPodcastsFreqWeekly": "Weekly",+ "adminPodcastsDay": "Day",+ "adminPodcastsTime": "Time",+ "adminPodcastsDaySun": "Sun",+ "adminPodcastsDayMon": "Mon",+ "adminPodcastsDayTue": "Tue",+ "adminPodcastsDayWed": "Wed",+ "adminPodcastsDayThu": "Thu",+ "adminPodcastsDayFri": "Fri",+ "adminPodcastsDaySat": "Sat",+ "adminPodcastsFeedUrl": "Feed URL",+ "adminPodcastsBack": "Back",+ "adminPodcastsRootOnly": "Root Only",+ "adminPodcastsDeleting": "Deleting...",+ "adminPodcastsDeleteEpisode": "Delete Episode",+ "adminPodcastsSeasonChip": "Season {season}",+ "@adminPodcastsSeasonChip": { "placeholders": { "season": { "type": "String" } } },+ "adminPodcastsEpChip": "Ep. {number}",+ "@adminPodcastsEpChip": { "placeholders": { "number": { "type": "String" } } },+ "adminPodcastsApplyingMatch": "Applying match...",+ "adminPodcastsNoResults": "No results",+ "adminPodcastsPodcastMatched": "Podcast matched and updated",+ "adminPodcastsFailedMatch": "Failed to match podcast",++ "episodeListEpisodeFallback": "Episode",+ "episodeListUnknownPodcast": "Unknown Podcast",+ "episodeListMarkedFinished": "{count, plural, =1{1 episode marked as finished} other{{count} episodes marked as finished}}",+ "@episodeListMarkedFinished": { "placeholders": { "count": { "type": "int" } } },+ "episodeListMarkedUnfinished": "{count, plural, =1{1 episode marked as unfinished} other{{count} episodes marked as unfinished}}",+ "@episodeListMarkedUnfinished": { "placeholders": { "count": { "type": "int" } } },+ "episodeListUnsubscribeFromNewEpisodes": "Unsubscribe from New Episodes",+ "episodeListSubscribeToNewEpisodes": "Subscribe to New Episodes",+ "episodeListSubscribeTitle": "Subscribe to this podcast?",+ "episodeListSubscribeContent": "New episodes will be automatically downloaded and added to your absorbing queue when they appear on the server.",+ "episodeListSubscribe": "Subscribe",+ "episodeListShowFinishedEpisodes": "Show Finished Episodes",+ "episodeListHideFinishedEpisodes": "Hide Finished Episodes",+ "episodeListPlaysNewerToOlder": "Plays newer to older episodes",+ "episodeListPlaysOlderToNewer": "Plays older to newer episodes",+ "episodeListEpisodeCount": "{count, plural, =1{1 episode} other{{count} episodes}}",+ "@episodeListEpisodeCount": { "placeholders": { "count": { "type": "int" } } },+ "episodeListAutoDownloadChip": "Auto-Download",+ "episodeListSubscribedChip": "Subscribed",+ "episodeListExplicitChip": "Explicit",+ "episodeListSortNewest": "Newest",+ "episodeListSortOldest": "Oldest",+ "episodeListAddedToAbsorbing": "Added \"{title}\" to Absorbing",+ "@episodeListAddedToAbsorbing": { "placeholders": { "title": { "type": "String" } } },++ "episodeDetailEpisodeFallback": "Episode",+ "episodeDetailMarkedNotFinished": "Marked as not finished",+ "episodeDetailMarkedFinishedNice": "Marked as finished - nice!",+ "episodeDetailMarkAbsorbedContent": "This will set your progress to 100% for this episode.",+ "episodeDetailResetProgressContent": "This will erase all progress for this episode and set it back to the beginning. This can't be undone.",+ "episodeDetailToday": "Today",+ "episodeDetailYesterday": "Yesterday",+ "episodeDetailDaysAgo": "{count}d ago",+ "@episodeDetailDaysAgo": { "placeholders": { "count": { "type": "int" } } },+ "episodeDetailWeeksAgo": "{count}w ago",+ "@episodeDetailWeeksAgo": { "placeholders": { "count": { "type": "int" } } },+ "episodeDetailDurationHm": "{hours}h {minutes}m",+ "@episodeDetailDurationHm": { "placeholders": { "hours": { "type": "int" }, "minutes": { "type": "int" } } },+ "episodeDetailDurationM": "{minutes}m",+ "@episodeDetailDurationM": { "placeholders": { "minutes": { "type": "int" } } },+ "episodeDetailResume": "Resume",+ "episodeDetailPlayEpisode": "Play Episode",+ "episodeDetailEpisodeNumber": "Episode {number}",+ "@episodeDetailEpisodeNumber": { "placeholders": { "number": { "type": "String" } } },+ "episodeDetailSeasonNumber": "Season {number}",+ "@episodeDetailSeasonNumber": { "placeholders": { "number": { "type": "String" } } },++ "editMetadataUpdatedFromMatch": "Metadata updated from match",+ "editMetadataConfirmMatch": "This will update the server metadata for this book using:\n\n\"{title}\"\n\nAll fields and the cover will be overwritten on the server.",+ "@editMetadataConfirmMatch": { "placeholders": { "title": { "type": "String" } } },+ "editMetadataConfirmMatchWithAuthor": "This will update the server metadata for this book using:\n\n\"{title}\" by {author}\n\nAll fields and the cover will be overwritten on the server.",+ "@editMetadataConfirmMatchWithAuthor": { "placeholders": { "title": { "type": "String" }, "author": { "type": "String" } } },++ "seriesBooksFindMissingTitle": "Find Missing Books",+ "seriesBooksFindMissingContent": "This searches Audible to find books in this series that may be missing from your library.\n\nBooks are matched by ASIN first (depending on whether your server has ASINs for its books), then falls back to title matching. Results may not be perfectly accurate.",+ "seriesBooksCouldNotFindOnAudible": "Could not find this series on Audible",+ "seriesBooksMarkAllNotFinishedContent": "{count, plural, =1{This will clear the finished status for the 1 book in this series.} other{This will clear the finished status for all {count} books in this series.}}",+ "@seriesBooksMarkAllNotFinishedContent": { "placeholders": { "count": { "type": "int" } } },+ "seriesBooksFullyAbsorbContent": "{count, plural, =1{This will mark the 1 book in this series as finished.} other{This will mark all {count} books in this series as finished.}}",+ "@seriesBooksFullyAbsorbContent": { "placeholders": { "count": { "type": "int" } } },+ "seriesBooksUnmarkAll": "Unmark All",+ "seriesBooksShowAllBooks": "Show all books",+ "seriesBooksGroupBySubSeries": "Group by sub-series",+ "seriesBooksLoadingSubSeries": "Loading sub-series...",+ "seriesBooksBookCount": "{count, plural, =1{1 book} other{{count} books}}",+ "@seriesBooksBookCount": { "placeholders": { "count": { "type": "int" } } },+ "seriesBooksDone": "Done",+ "seriesBooksExplicitBadge": "E",++ "expandedCardStreaming": "Streaming",+ "expandedCardDeviceFallback": "Device",++ "bookmarksScreenPositionInBook": "{position} in {bookTitle}",+ "@bookmarksScreenPositionInBook": { "placeholders": { "position": { "type": "String" }, "bookTitle": { "type": "String" } } },+ "bookmarksScreenClose": "Close",+ "bookmarksScreenSortNewest": "Newest",+ "bookmarksScreenSortPosition": "Position",++ "statsScreenStreakDays": "{count}d",+ "@statsScreenStreakDays": { "placeholders": { "count": { "type": "int" } } },+ "statsScreenSessionCountOne": "{count} session",+ "@statsScreenSessionCountOne": { "placeholders": { "count": { "type": "int" } } },+ "statsScreenSessionCountOther": "{count} sessions",+ "@statsScreenSessionCountOther": { "placeholders": { "count": { "type": "int" } } },+ "statsScreenDayMon": "Mon",+ "statsScreenDayTue": "Tue",+ "statsScreenDayWed": "Wed",+ "statsScreenDayThu": "Thu",+ "statsScreenDayFri": "Fri",+ "statsScreenDaySat": "Sat",+ "statsScreenDaySun": "Sun",+ "statsScreenDurationHm": "{h}h {m}m",+ "@statsScreenDurationHm": { "placeholders": { "h": { "type": "int" }, "m": { "type": "int" } } },+ "statsScreenDurationM": "{m}m",+ "@statsScreenDurationM": { "placeholders": { "m": { "type": "int" } } },+ "statsScreenDurationLessThanMin": "<1m",+ "statsScreenDurationZero": "0m",+ "statsScreenDurationShortH": "{h}h",+ "@statsScreenDurationShortH": { "placeholders": { "h": { "type": "int" } } },+ "statsScreenDurationShortM": "{m}m",+ "@statsScreenDurationShortM": { "placeholders": { "m": { "type": "int" } } },+ "statsScreenCouldNotLoadItem": "Could not load item",+ "statsScreenCouldNotFindEpisode": "Could not find episode",+ "statsScreenByAuthor": "by {author}",+ "@statsScreenByAuthor": { "placeholders": { "author": { "type": "String" } } },+ "statsScreenListened": "Listened",+ "statsScreenStartedAtPosition": "Started at position",+ "statsScreenEndedAtPosition": "Ended at position",+ "statsScreenTotalDuration": "Total duration",+ "statsScreenStarted": "Started",+ "statsScreenUpdated": "Updated",+ "statsScreenClient": "Client",+ "statsScreenDevice": "Device",+ "statsScreenOs": "OS",+ "statsScreenPlayMethod": "Play method",+ "statsScreenLoading": "Loading...",+ "statsScreenJumpToSessionStart": "Jump to session start ({position})",+ "@statsScreenJumpToSessionStart": { "placeholders": { "position": { "type": "String" } } },+ "statsScreenPlayMethodDirect": "Direct play",+ "statsScreenPlayMethodDirectStream": "Direct stream",+ "statsScreenPlayMethodTranscode": "Transcode",+ "statsScreenPlayMethodLocal": "Local",+ "statsScreenAmLabel": "AM",+ "statsScreenPmLabel": "PM",+ "statsScreenDateAtTime": "{month} {day}, {year} at {hour}:{minute} {ampm}",+ "@statsScreenDateAtTime": { "placeholders": { "month": { "type": "String" }, "day": { "type": "int" }, "year": { "type": "int" }, "hour": { "type": "int" }, "minute": { "type": "String" }, "ampm": { "type": "String" } } },+ "statsScreenMonthJan": "Jan",+ "statsScreenMonthFeb": "Feb",+ "statsScreenMonthMar": "Mar",+ "statsScreenMonthApr": "Apr",+ "statsScreenMonthMay": "May",+ "statsScreenMonthJun": "Jun",+ "statsScreenMonthJul": "Jul",+ "statsScreenMonthAug": "Aug",+ "statsScreenMonthSep": "Sep",+ "statsScreenMonthOct": "Oct",+ "statsScreenMonthNov": "Nov",+ "statsScreenMonthDec": "Dec",++ "upcomingReleasesTitle": "Upcoming Releases",+ "upcomingReleasesRescanTitle": "Rescan?",+ "upcomingReleasesRescanContent": "These results are {days} days old. Release dates may have changed - would you like to rescan?",+ "@upcomingReleasesRescanContent": { "placeholders": { "days": { "type": "int" } } },+ "upcomingReleasesNotNow": "Not now",+ "upcomingReleasesRescan": "Rescan",+ "upcomingReleasesRescanReleaseDate": "Rescan Release Date",+ "upcomingReleasesRescanning": "Rescanning...",+ "upcomingReleasesUpdatedWithDate": "Updated - {date}",+ "@upcomingReleasesUpdatedWithDate": { "placeholders": { "date": { "type": "String" } } },+ "upcomingReleasesNoReleaseDateFound": "No release date found",+ "upcomingReleasesRescanFailed": "Rescan failed",+ "upcomingReleasesDateChip": "Date",+ "upcomingReleasesCheckingSeries": "Checking {name}... ({processed}/{total})",+ "@upcomingReleasesCheckingSeries": { "placeholders": { "name": { "type": "String" }, "processed": { "type": "int" }, "total": { "type": "int" } } },+ "upcomingReleasesLoadingSeries": "Loading series...",+ "upcomingReleasesScannedToday": "(scanned today)",+ "upcomingReleasesScannedYesterday": "(scanned yesterday)",+ "upcomingReleasesScannedDaysAgo": "(scanned {days} days ago)",+ "@upcomingReleasesScannedDaysAgo": { "placeholders": { "days": { "type": "int" } } },+ "upcomingReleasesUpcomingCount": "{count} upcoming",+ "@upcomingReleasesUpcomingCount": { "placeholders": { "count": { "type": "int" } } },+ "upcomingReleasesRecentCount": "{count} recent",+ "@upcomingReleasesRecentCount": { "placeholders": { "count": { "type": "int" } } },+ "upcomingReleasesNoneFound": "No upcoming or recent releases found",+ "upcomingReleasesAcrossSeries": "{summary} across {count} series",+ "@upcomingReleasesAcrossSeries": { "placeholders": { "summary": { "type": "String" }, "count": { "type": "int" } } },+ "upcomingReleasesCheckedSeries": "Checked {count} series on Audible",+ "@upcomingReleasesCheckedSeries": { "placeholders": { "count": { "type": "int" } } },+ "upcomingReleasesDateFormat": "{month} {day}, {year}",+ "@upcomingReleasesDateFormat": { "placeholders": { "month": { "type": "String" }, "day": { "type": "int" }, "year": { "type": "int" } } },+ "upcomingReleasesSequenceLabel": "#{sequence}",+ "@upcomingReleasesSequenceLabel": { "placeholders": { "sequence": { "type": "String" } } },+ "upcomingReleasesBadgeUpcoming": "UPCOMING",+ "upcomingReleasesBadgeAdded": "ADDED",+ "upcomingReleasesBadgeMissing": "MISSING",++ "homeScreenEpisodeFallback": "Episode",+ "libraryScreenUnknownTitle": "Unknown Title",++ "playlistDetailDefaultName": "Playlist",+ "playlistDetailItemCount": "{count} items",+ "@playlistDetailItemCount": { "placeholders": { "count": { "type": "int" } } },+ "playlistDetailUnfinished": "Unfinished",+ "playlistDetailRemoveFromPlaylist": "Remove from playlist",+ "playlistDetailDone": "Done",+ "playlistDetailItemsMarkedFinished": "{count} items marked finished",+ "@playlistDetailItemsMarkedFinished": { "placeholders": { "count": { "type": "int" } } },+ "playlistDetailItemsMarkedUnfinished": "{count} items marked unfinished",+ "@playlistDetailItemsMarkedUnfinished": { "placeholders": { "count": { "type": "int" } } },+ "playlistDetailItemsRemoved": "{count} items removed",+ "@playlistDetailItemsRemoved": { "placeholders": { "count": { "type": "int" } } },+ "playlistDetailAddedToAbsorbing": "Added \"{title}\" to Absorbing",+ "@playlistDetailAddedToAbsorbing": { "placeholders": { "title": { "type": "String" } } },++ "collectionDetailDefaultName": "Collection",+ "collectionDetailBookCount": "{count} books",+ "@collectionDetailBookCount": { "placeholders": { "count": { "type": "int" } } },+ "collectionDetailDone": "Done",+ "collectionDetailAddedToAbsorbing": "Added \"{title}\" to Absorbing",+ "@collectionDetailAddedToAbsorbing": { "placeholders": { "title": { "type": "String" } } },++ "audibleSeriesNoBooksFound": "No books found on Audible",+ "audibleSeriesFailedToLoad": "Failed to load series from Audible",+ "audibleSeriesSummary": "{total} on Audible · {missing} missing",+ "@audibleSeriesSummary": { "placeholders": { "total": { "type": "int" }, "missing": { "type": "int" } } },+ "audibleSeriesSummaryWithUpcoming": "{total} on Audible · {missing} missing · {upcoming} upcoming",+ "@audibleSeriesSummaryWithUpcoming": { "placeholders": { "total": { "type": "int" }, "missing": { "type": "int" }, "upcoming": { "type": "int" } } },+ "audibleSeriesFilterMissing": "Missing ({count})",+ "@audibleSeriesFilterMissing": { "placeholders": { "count": { "type": "int" } } },+ "audibleSeriesFilterUpcoming": "Upcoming ({count})",+ "@audibleSeriesFilterUpcoming": { "placeholders": { "count": { "type": "int" } } },+ "audibleSeriesFilterAll": "All ({count})",+ "@audibleSeriesFilterAll": { "placeholders": { "count": { "type": "int" } } },+ "audibleSeriesSearching": "Searching Audible...",+ "audibleSeriesCompleteSeries": "You have the complete series!",+ "audibleSeriesNoUpcoming": "No upcoming releases found",+ "audibleSeriesUpcomingBadge": "UPCOMING",+ "audibleSeriesAbridged": "Abridged",+ "audibleSeriesRegionTitle": "Audible Region",+ "audibleSeriesOpenOnAudible": "Open on Audible",+ "audibleSeriesAddToCalendar": "Add to Calendar",+ "audibleSeriesCouldNotOpenAudible": "Could not open Audible",+ "audibleSeriesCouldNotOpenCalendar": "Could not open calendar",+ "audibleSeriesCalendarDescription": "New audiobook release in the {seriesName} series",+ "@audibleSeriesCalendarDescription": { "placeholders": { "seriesName": { "type": "String" } } },++ "authorBooksGroupBySeries": "Group by series",+ "authorBooksList": "List",+ "authorBooksGrid": "Grid",+ "authorBooksBookCount": "{count} books",+ "@authorBooksBookCount": { "placeholders": { "count": { "type": "int" } } },++ "metadataLookupCover": "Cover",+ "metadataLookupChooseFields": "Choose Fields to Apply",+ "metadataLookupApplyFields": "Apply {count} fields",+ "@metadataLookupApplyFields": { "placeholders": { "count": { "type": "int" } } },+ "metadataLookupFieldsSavedLocally": "{count} fields saved locally",+ "@metadataLookupFieldsSavedLocally": { "placeholders": { "count": { "type": "int" } } },+ "metadataLookupOverrideLocalDisplay": "Override local display",++ "equalizerPresetFlat": "Flat",+ "equalizerPresetVoiceBoost": "Voice Boost",+ "equalizerPresetBassBoost": "Bass Boost",+ "equalizerPresetTrebleBoost": "Treble Boost",+ "equalizerPresetPodcast": "Podcast",+ "equalizerPresetAudiobook": "Audiobook",+ "equalizerPresetReduceNoise": "Reduce Noise",+ "equalizerPresetLoudness": "Loudness",+ "equalizerEditingSavedNamed": "Editing saved EQ for \"{title}\"",+ "@equalizerEditingSavedNamed": { "placeholders": { "title": { "type": "String" } } },+ "equalizerEditingSavedGeneric": "Editing saved EQ",+ "equalizerPerBookEq": "Per-book EQ",++ "notesDeleteNoteQuestion": "Delete note?",+ "notesDeleteNoteContent": "Delete \"{title}\"?",+ "@notesDeleteNoteContent": { "placeholders": { "title": { "type": "String" } } },+ "notesExport": "Export",+ "notesNewNote": "New note",++ "librarySortFilterUpcomingReleases": "Upcoming Releases",+ "librarySortFilterUpcomingReleasesSubtitle": "Scan Audible for new releases in your series",++ "sleepTimerSheetChaptersLeft": "{count, plural, =1{1 chapter left} other{{count} chapters left}}",+ "@sleepTimerSheetChaptersLeft": { "placeholders": { "count": { "type": "int" } } },+ "sleepTimerSheetAddMinutesChip": "+{minutes}m",+ "@sleepTimerSheetAddMinutesChip": { "placeholders": { "minutes": { "type": "int" } } },+ "sleepTimerSheetAddChaptersChip": "+{count} ch",+ "@sleepTimerSheetAddChaptersChip": { "placeholders": { "count": { "type": "int" } } },+ "sleepTimerSheetMinShort": "{minutes}m",+ "@sleepTimerSheetMinShort": { "placeholders": { "minutes": { "type": "int" } } },+ "sleepTimerSheetSecondsShort": "{seconds}s",+ "@sleepTimerSheetSecondsShort": { "placeholders": { "seconds": { "type": "int" } } },+ "sleepTimerSheetMinSecShort": "{minutes}m {seconds}s",+ "@sleepTimerSheetMinSecShort": { "placeholders": { "minutes": { "type": "int" }, "seconds": { "type": "int" } } },+ "sleepTimerSheetChaptersValue": "{count, plural, =1{1 chapter} other{{count} chapters}}",+ "@sleepTimerSheetChaptersValue": { "placeholders": { "count": { "type": "int" } } },+ "sleepTimerSheetChaptersChip": "{count} ch",+ "@sleepTimerSheetChaptersChip": { "placeholders": { "count": { "type": "int" } } },+ "sleepTimerSheetStartChapterSleep": "{count, plural, =1{Sleep after 1 chapter} other{Sleep after {count} chapters}}",+ "@sleepTimerSheetStartChapterSleep": { "placeholders": { "count": { "type": "int" } } },+ "sleepTimerSheetRewindOnSleep": "Rewind on sleep",+ "sleepTimerSheetShake": "Shake",+ "sleepTimerSheetAddsMinutes": "Adds {minutes} min",+ "@sleepTimerSheetAddsMinutes": { "placeholders": { "minutes": { "type": "int" } } },+ "sleepTimerSheetAddsOneChapter": "Adds 1 chapter",+ "sleepTimerSheetResetsToFull": "Resets to full duration",++ "collectionPickerCollectionFallback": "Collection",+ "collectionPickerNameWithCount": "{name} ({count})",+ "@collectionPickerNameWithCount": { "placeholders": { "name": { "type": "String" }, "count": { "type": "int" } } },++ "playlistPickerPlaylistFallback": "Playlist",+ "playlistPickerNameWithCount": "{name} ({count})",+ "@playlistPickerNameWithCount": { "placeholders": { "name": { "type": "String" }, "count": { "type": "int" } } },++ "cardChaptersPlayFromChapterTitle": "Play from chapter?",+ "cardChaptersPlayFromChapterContent": "Start playing from \"{title}\"?",+ "@cardChaptersPlayFromChapterContent": { "placeholders": { "title": { "type": "String" } } },+ "cardChaptersPlay": "Play",++ "absorbingSharedToday": "Today",+ "absorbingSharedYesterday": "Yesterday",+ "absorbingSharedMonday": "Monday",+ "absorbingSharedTuesday": "Tuesday",+ "absorbingSharedWednesday": "Wednesday",+ "absorbingSharedThursday": "Thursday",+ "absorbingSharedFriday": "Friday",+ "absorbingSharedSaturday": "Saturday",+ "absorbingSharedSunday": "Sunday",+ "absorbingSharedAm": "AM",+ "absorbingSharedPm": "PM",++ "sectionDetailAddedToAbsorbing": "Added \"{title}\" to Absorbing",+ "@sectionDetailAddedToAbsorbing": { "placeholders": { "title": { "type": "String" } } },+ "sectionDetailDoneBadge": "Done",++ "homeCustomizeAddGenreTitle": "Add Genre Section",+ "homeCustomizeAddGenreSubtitle": "Pick a genre to show on your home screen",++ "homeSectionDoneBadge": "Done",++ "tipsSheetQuickBookmarksTitle": "Quick Bookmarks",+ "tipsSheetQuickBookmarksDesc": "Long-press the bookmark button on any card to instantly drop a bookmark at your current position without opening the bookmark sheet.",+ "tipsSheetEditBookmarksTitle": "Edit Bookmarks",+ "tipsSheetEditBookmarksDesc": "Long-press any bookmark in the bookmark sheet to edit its title and add notes.",+ "tipsSheetCoverPlayPauseTitle": "Cover Play/Pause",+ "tipsSheetCoverPlayPauseDesc": "Tap the cover art on any card to play or pause. Toggle this in Settings under Absorbing Cards. A faint pause icon shows when playing so you know it's tappable.",+ "tipsSheetFullScreenPlayerTitle": "Full Screen Player",+ "tipsSheetFullScreenPlayerDesc": "Swipe up on any absorbing card to open the full screen player. Swipe down to dismiss it.",+ "tipsSheetQuickAddAbsorbingTitle": "Quick Add to Absorbing",+ "tipsSheetQuickAddAbsorbingDesc": "Swipe right on any book in a list sheet (series, author, search results) to instantly add it to your absorbing queue.",+ "tipsSheetShakeExtendSleepTitle": "Shake to Extend Sleep",+ "tipsSheetShakeExtendSleepDesc": "If you have a sleep timer running and shake your phone, it'll add extra minutes. Configure the amount in Settings under Sleep Timer.",+ "tipsSheetSeriesNavigationTitle": "Series Navigation",+ "tipsSheetSeriesNavigationDesc": "Tap the series name in any book's detail popup to see all books in the series, sorted in reading order with sequence badges on each cover.",+ "tipsSheetSwipeBetweenBooksTitle": "Swipe Between Books",+ "tipsSheetSwipeBetweenBooksDesc": "On the Absorbing screen, swipe left and right to switch between your in-progress books. The dots at the top show which book you're viewing.",+ "tipsSheetTapToSeekTitle": "Tap to Seek",+ "tipsSheetTapToSeekDesc": "Tap anywhere on the chapter or book progress bar to jump directly to that position. You can also drag the bars for fine-grained control.",+ "tipsSheetSpeedAdjustedTimeTitle": "Speed-Adjusted Time",+ "tipsSheetSpeedAdjustedTimeDesc": "Time remaining and chapter times automatically adjust based on your playback speed. Listening at 1.5x? The time shown reflects how long it'll actually take you.",+ "tipsSheetPlaybackHistoryTitle": "Playback History",+ "tipsSheetPlaybackHistoryDesc": "Tap the History button on any card to see a timeline of every play, pause, seek, and speed change. Tap any event to jump back to that position.",+ "tipsSheetAutoRewindTitle": "Auto-Rewind",+ "tipsSheetAutoRewindDesc": "When you resume after a pause, Absorb automatically rewinds a few seconds so you don't lose your place. The rewind amount scales with how long you were away. Configure it in Settings.",+ "tipsSheetSeriesQueueModeTitle": "Series Queue Mode",+ "tipsSheetSeriesQueueModeDesc": "When you finish a book that's part of a series, Absorb can automatically play the next book. Set queue mode to \"Series\" in Settings.",+ "tipsSheetOfflineModeTitle": "Offline Mode",+ "tipsSheetOfflineModeDesc": "Tap the airplane button on the Absorbing screen to enter offline mode. This stops syncing, saves data, and only shows your downloaded books. Great for flights or low signal areas.",+ "tipsSheetStopPlaybackTitle": "Stop Playback",+ "tipsSheetStopPlaybackDesc": "The Stop button in the Absorbing header ends your listening session and saves your progress. Your progress syncs automatically in the background.",+ "tipsSheetDownloadOfflineTitle": "Download for Offline",+ "tipsSheetDownloadOfflineDesc": "Tap the download button in any book's detail popup to save it for offline listening. Downloaded books are available in offline mode without any internet connection.",+ "tipsSheetCustomizeHomeTitle": "Customize Home",+ "tipsSheetCustomizeHomeDesc": "Tap the edit button in the top right of the Home screen to rearrange, hide, or show sections. Drag sections into your preferred order.",+ "tipsSheetPlaylistsTitle": "Playlists",+ "tipsSheetPlaylistsDesc": "Create and manage playlists on your Audiobookshelf server and they'll appear as sections on your Home screen. Add books to playlists from any book's detail popup.",+ "tipsSheetCollectionsTitle": "Collections",+ "tipsSheetCollectionsDesc": "Collections group related books together and show up as Home sections. Root admins can add books and edit collections from the detail popup.",++ "bookCardUnknownTitle": "Unknown Title",+ "bookCardExplicitBadge": "E",+ "bookCardDone": "Done",+ "bookCardSaved": "Saved",++ "episodeRowEpisode": "Episode",+ "episodeRowToday": "Today",+ "episodeRowYesterday": "Yesterday",+ "episodeRowDaysAgo": "{count}d ago",+ "@episodeRowDaysAgo": { "placeholders": { "count": { "type": "int" } } },+ "episodeRowWeeksAgo": "{count}w ago",+ "@episodeRowWeeksAgo": { "placeholders": { "count": { "type": "int" } } },+ "episodeRowDurationHm": "{hours}h {minutes}m",+ "@episodeRowDurationHm": { "placeholders": { "hours": { "type": "int" }, "minutes": { "type": "int" } } },+ "episodeRowDurationM": "{minutes}m",+ "@episodeRowDurationM": { "placeholders": { "minutes": { "type": "int" } } },+ "episodeRowSeasonShort": "S{number}",+ "@episodeRowSeasonShort": { "placeholders": { "number": { "type": "String" } } },+ "episodeRowEpisodeShort": "E{number}",+ "@episodeRowEpisodeShort": { "placeholders": { "number": { "type": "String" } } },++ "librarySearchResultsExplicitBadge": "E",+ "librarySearchResultsDone": "Done",+ "librarySearchResultsSaved": "Saved",+ "librarySearchResultsSequence": "#{number}",+ "@librarySearchResultsSequence": { "placeholders": { "number": { "type": "String" } } },+ "librarySearchResultsUnknownSeries": "Unknown Series",+ "librarySearchResultsUnknownEpisode": "Unknown Episode",+ "librarySearchResultsBookCount": "{count, plural, =1{1 book} other{{count} books}}",+ "@librarySearchResultsBookCount": { "placeholders": { "count": { "type": "int" } } },++ "libraryGridTilesExplicitBadge": "E",+ "libraryGridTilesDone": "Done",+ "libraryGridTilesSaved": "Saved",+ "libraryGridTilesSequence": "#{number}",+ "@libraryGridTilesSequence": { "placeholders": { "number": { "type": "String" } } },+ "libraryGridTilesUnknownSeries": "Unknown Series",++ "seriesCardUnknownSeries": "Unknown Series",+ "seriesCardBookCount": "{count, plural, =1{1 book} other{{count} books}}",+ "@seriesCardBookCount": { "placeholders": { "count": { "type": "int" } } },++ "cardProgressFineScrubbing": "Fine Scrubbing",+ "cardProgressQuarterSpeed": "Quarter Speed",+ "cardProgressHalfSpeed": "Half Speed",+ "cardProgressChapterPrefix": "Chapter {number}",+ "@cardProgressChapterPrefix": { "placeholders": { "number": { "type": "String" } } },++ "cardEdgeProgressFineScrubbing": "Fine Scrubbing",+ "cardEdgeProgressQuarterSpeed": "Quarter Speed",+ "cardEdgeProgressHalfSpeed": "Half Speed",++ "authSessionExpired": "Session expired. Please log in again.",+ "authCannotReachServer": "Cannot reach server at {url}",+ "@authCannotReachServer": { "placeholders": { "url": { "type": "String" } } },+ "authInvalidUsernameOrPassword": "Invalid username or password",+ "authLoginFailedDetail": "Login failed - check your server address and credentials",+ "authUnexpectedServerResponse": "Unexpected server response",+ "authSsoUnexpectedResponse": "SSO returned an unexpected response",+ "authSwitchedToLocalServer": "Switched to local server",+ "authSwitchedToRemoteServer": "Switched to remote server",++ "lpDeletedFinishedDownload": "Deleted finished download",+ "lpSubscribedPodcastDownloading": "{showTitle}: {count, plural, =1{1 new episode downloading} other{{count} new episodes downloading}}",+ "@lpSubscribedPodcastDownloading": { "placeholders": { "showTitle": { "type": "String" }, "count": { "type": "int" } } },+ "lpQueueDownloadingItems": "{count, plural, =1{Queue: downloading 1 item} other{Queue: downloading {count} items}}",+ "@lpQueueDownloadingItems": { "placeholders": { "count": { "type": "int" } } },+ "lpDownloadingBooks": "{count, plural, =1{Downloading 1 book} other{Downloading {count} books}}",+ "@lpDownloadingBooks": { "placeholders": { "count": { "type": "int" } } },+ "lpDownloadingEpisodes": "{count, plural, =1{Downloading 1 episode} other{Downloading {count} episodes}}",+ "@lpDownloadingEpisodes": { "placeholders": { "count": { "type": "int" } } },++ "downloadNotifProgressChannelName": "Download Progress",+ "downloadNotifProgressChannelDesc": "Shows progress during audiobook downloads",+ "downloadNotifAlertChannelName": "Download Alerts",+ "downloadNotifAlertChannelDesc": "Notifications when downloads finish or fail",+ "downloadNotifDownloadingTitle": "Downloading\u2026",+ "downloadNotifActiveCount": "{count, plural, =1{1 download active} other{{count} downloads active}}",+ "@downloadNotifActiveCount": { "placeholders": { "count": { "type": "int" } } },+ "downloadNotifSlotTitle": "Downloading: {title}",+ "@downloadNotifSlotTitle": { "placeholders": { "title": { "type": "String" } } },+ "downloadNotifStartingLabel": "Starting\u2026",+ "downloadNotifCompleteTitle": "Download Complete",+ "downloadNotifCompleteBody": "{title} is ready to listen offline",+ "@downloadNotifCompleteBody": { "placeholders": { "title": { "type": "String" } } },+ "downloadNotifFailedTitle": "Download Failed",++ "upcomingNotifChannelName": "Upcoming Release Scan",+ "upcomingNotifChannelDesc": "Shows progress while scanning for upcoming releases",+ "upcomingNotifScanTitle": "Scanning for upcoming releases",+ "upcomingNotifStartingScan": "Starting scan\u2026",+ "upcomingNotifCheckingSeries": "Checking {seriesName}\u2026 ({current}/{total})",+ "@upcomingNotifCheckingSeries": { "placeholders": { "seriesName": { "type": "String" }, "current": { "type": "int" }, "total": { "type": "int" } } },+ "upcomingNotifFoundTitle": "Upcoming releases found!",+ "upcomingNotifFoundBody": "{books} upcoming across {series, plural, =1{1 series} other{{series} series}}",+ "@upcomingNotifFoundBody": { "placeholders": { "books": { "type": "int" }, "series": { "type": "int" } } },++ "androidAutoTabContinue": "Continue",+ "androidAutoTabLibrary": "Library",+ "androidAutoTabDownloads": "Downloads",+ "androidAutoCatBooks": "Books",+ "androidAutoCatSeries": "Series",+ "androidAutoCatAuthors": "Authors"}diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dartindex a70a8a49..d9476c89 100644--- a/lib/l10n/app_localizations.dart+++ b/lib/l10n/app_localizations.dart@@ -3953,7 +3953,7 @@ abstract class AppLocalizations {/// No description provided for @welcomeQueueModeAuto.////// In en, this message translates to:- /// **'Auto Absorb - automatically finds and plays the next book in a series'**+ /// **'Series - automatically finds and plays the next book in a series'**String get welcomeQueueModeAuto;/// No description provided for @welcomeManagingQueueTitle.@@ -3962,6 +3962,24 @@ abstract class AppLocalizations {/// **'Managing your queue'**String get welcomeManagingQueueTitle;+ /// No description provided for @welcomeManagingCoverTap.+ ///+ /// In en, this message translates to:+ /// **'Tap the cover art to play/pause (toggleable in Settings)'**+ String get welcomeManagingCoverTap;++ /// No description provided for @welcomeManagingSwipeUp.+ ///+ /// In en, this message translates to:+ /// **'Swipe up on a card to open the full screen player, swipe down to dismiss'**+ String get welcomeManagingSwipeUp;++ /// No description provided for @welcomeManagingSwipeRight.+ ///+ /// In en, this message translates to:+ /// **'Swipe right on any book in a list sheet to quickly add it to your queue'**+ String get welcomeManagingSwipeRight;+/// No description provided for @welcomeManagingReorder.////// In en, this message translates to:@@ -3974,11 +3992,11 @@ abstract class AppLocalizations {/// **'Add books manually from any book\'s detail sheet'**String get welcomeManagingAdd;- /// No description provided for @welcomeManagingFinish.+ /// No description provided for @welcomeManagingRemoveFinished.////// In en, this message translates to:- /// **'When a book finishes, choose to listen again, remove it, or let it auto-release'**- String get welcomeManagingFinish;+ /// **'Finished books are automatically removed from your queue'**+ String get welcomeManagingRemoveFinished;/// No description provided for @welcomeMergeLibrariesTitle.///@@ -4159,6 +4177,3752 @@ abstract class AppLocalizations {/// In en, this message translates to:/// **'Open Library'**String get openLibrary;++ /// No description provided for @root.+ ///+ /// In en, this message translates to:+ /// **'Root'**+ String get root;++ /// No description provided for @coverPlayPause.+ ///+ /// In en, this message translates to:+ /// **'Cover play/pause'**+ String get coverPlayPause;++ /// No description provided for @coverPlayPauseOnSubtitle.+ ///+ /// In en, this message translates to:+ /// **'On - tap cover art to play/pause'**+ String get coverPlayPauseOnSubtitle;++ /// No description provided for @coverPlayPauseOffSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Off - dedicated play/pause button in controls'**+ String get coverPlayPauseOffSubtitle;++ /// No description provided for @queueModeMergedSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Playback stops, manual queue, or auto-absorbs next item'**+ String get queueModeMergedSubtitle;++ /// No description provided for @queueModeSeriesLabel.+ ///+ /// In en, this message translates to:+ /// **'Series'**+ String get queueModeSeriesLabel;++ /// No description provided for @queueModeShowLabel.+ ///+ /// In en, this message translates to:+ /// **'Show'**+ String get queueModeShowLabel;++ /// No description provided for @queueModeInfoSeries.+ ///+ /// In en, this message translates to:+ /// **'Series'**+ String get queueModeInfoSeries;++ /// No description provided for @queueModeInfoSeriesDesc.+ ///+ /// In en, this message translates to:+ /// **'Automatically plays the next book in a series or the next episode in a podcast show.'**+ String get queueModeInfoSeriesDesc;++ /// No description provided for @resetButtonGridQuestion.+ ///+ /// In en, this message translates to:+ /// **'Reset button grid?'**+ String get resetButtonGridQuestion;++ /// No description provided for @resetButtonGridContent.+ ///+ /// In en, this message translates to:+ /// **'This will restore the default button layout, order, and toggle settings.'**+ String get resetButtonGridContent;++ /// No description provided for @reset.+ ///+ /// In en, this message translates to:+ /// **'Reset'**+ String get reset;++ /// No description provided for @buttonGridReset.+ ///+ /// In en, this message translates to:+ /// **'Button grid reset'**+ String get buttonGridReset;++ /// No description provided for @resetButtonGrid.+ ///+ /// In en, this message translates to:+ /// **'Reset button grid'**+ String get resetButtonGrid;++ /// No description provided for @chapterBarrierOnRewind.+ ///+ /// In en, this message translates to:+ /// **'Chapter barrier on rewind'**+ String get chapterBarrierOnRewind;++ /// No description provided for @chapterBarrierInfoTitle.+ ///+ /// In en, this message translates to:+ /// **'Chapter barrier'**+ String get chapterBarrierInfoTitle;++ /// No description provided for @chapterBarrierInfoContent.+ ///+ /// In en, this message translates to:+ /// **'When skipping back, the playback will snap to the start of the current chapter instead of crossing into the previous one.\n\nDouble-tap the skip back button within 2 seconds to break through the barrier.'**+ String get chapterBarrierInfoContent;++ /// No description provided for @chapterBarrierOnRewindOnSubtitle.+ ///+ /// In en, this message translates to:+ /// **'On - rewind snaps to chapter start'**+ String get chapterBarrierOnRewindOnSubtitle;++ /// No description provided for @chapterBarrierOnRewindOffSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Off - rewind crosses chapter boundaries'**+ String get chapterBarrierOnRewindOffSubtitle;++ /// No description provided for @autoRewindOnSubtitleFormat.+ ///+ /// In en, this message translates to:+ /// **'On -{min}s to {max}s based on pause length'**+ String autoRewindOnSubtitleFormat(String min, String max);++ /// No description provided for @rewindOnSessionStart.+ ///+ /// In en, this message translates to:+ /// **'Rewind on session start'**+ String get rewindOnSessionStart;++ /// No description provided for @rewindOnSessionStartInfoContent.+ ///+ /// In en, this message translates to:+ /// **'Normal auto-rewind triggers when you resume from a pause within an active session. This setting adds a rewind when starting a completely new session - for example after the app was closed, playback was stopped, or you open the app fresh.\n\nWhen enabled, playback rewinds by the full max rewind amount at the start of every new session so you can re-hear where you left off.'**+ String get rewindOnSessionStartInfoContent;++ /// No description provided for @rewindOnSessionStartOnSubtitle.+ ///+ /// In en, this message translates to:+ /// **'On - rewinds {seconds}s when starting a new session'**+ String rewindOnSessionStartOnSubtitle(String seconds);++ /// No description provided for @rewindActivationDelayValue.+ ///+ /// In en, this message translates to:+ /// **'{seconds}s+'**+ String rewindActivationDelayValue(String seconds);++ /// No description provided for @rewindRangeValue.+ ///+ /// In en, this message translates to:+ /// **'{min}s – {max}s'**+ String rewindRangeValue(String min, String max);++ /// No description provided for @rewindSecondsPause.+ ///+ /// In en, this message translates to:+ /// **'{seconds}s pause'**+ String rewindSecondsPause(String seconds);++ /// No description provided for @rewindMinPause.+ ///+ /// In en, this message translates to:+ /// **'{minutes} min pause'**+ String rewindMinPause(String minutes);++ /// No description provided for @rewindHrPause.+ ///+ /// In en, this message translates to:+ /// **'{hours} hr pause'**+ String rewindHrPause(String hours);++ /// No description provided for @rewindOneHrPause.+ ///+ /// In en, this message translates to:+ /// **'1 hr pause'**+ String get rewindOneHrPause;++ /// No description provided for @speedValue.+ ///+ /// In en, this message translates to:+ /// **'{speed}x'**+ String speedValue(String speed);++ /// No description provided for @secondsValue.+ ///+ /// In en, this message translates to:+ /// **'{seconds}s'**+ String secondsValue(String seconds);++ /// No description provided for @minutesValue.+ ///+ /// In en, this message translates to:+ /// **'{minutes} min'**+ String minutesValue(int minutes);++ /// No description provided for @chimeBeforeSleep.+ ///+ /// In en, this message translates to:+ /// **'Chime before sleep'**+ String get chimeBeforeSleep;++ /// No description provided for @chimeBeforeSleepOnSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Plays a gentle bell when the timer is about to end'**+ String get chimeBeforeSleepOnSubtitle;++ /// No description provided for @chimeBeforeSleepOffSubtitle.+ ///+ /// In en, this message translates to:+ /// **'No sound warning before sleep'**+ String get chimeBeforeSleepOffSubtitle;++ /// No description provided for @windDownDuration.+ ///+ /// In en, this message translates to:+ /// **'Wind-down duration'**+ String get windDownDuration;++ /// No description provided for @windDownDurationSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Fade and chime start {seconds}s before sleep'**+ String windDownDurationSubtitle(int seconds);++ /// No description provided for @fadeVolumeOnSubtitleDynamic.+ ///+ /// In en, this message translates to:+ /// **'Gradually lowers volume over the last {seconds}s'**+ String fadeVolumeOnSubtitleDynamic(int seconds);++ /// No description provided for @autoSleepTimerEnabledSubtitle.+ ///+ /// In en, this message translates to:+ /// **'{start} – {end} · {duration}'**+ String autoSleepTimerEnabledSubtitle(+ String start, String end, String duration);++ /// No description provided for @endOfChapterShort.+ ///+ /// In en, this message translates to:+ /// **'End of chapter'**+ String get endOfChapterShort;++ /// No description provided for @endOfChapterOnSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Stop at the end of the current chapter'**+ String get endOfChapterOnSubtitle;++ /// No description provided for @endOfChapterOffSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Use a timed sleep timer'**+ String get endOfChapterOffSubtitle;++ /// No description provided for @showExplicitBadge.+ ///+ /// In en, this message translates to:+ /// **'Show explicit badge'**+ String get showExplicitBadge;++ /// No description provided for @showExplicitBadgeOnSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Explicit items show an \"E\" badge'**+ String get showExplicitBadgeOnSubtitle;++ /// No description provided for @showExplicitBadgeOffSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Off - explicit badge hidden'**+ String get showExplicitBadgeOffSubtitle;++ /// No description provided for @libraryFallback.+ ///+ /// In en, this message translates to:+ /// **'Library'**+ String get libraryFallback;++ /// No description provided for @preReleaseUpdatesInfoTitle.+ ///+ /// In en, this message translates to:+ /// **'Pre-release Updates'**+ String get preReleaseUpdatesInfoTitle;++ /// No description provided for @preReleaseUpdatesInfoContent.+ ///+ /// In en, this message translates to:+ /// **'When enabled, the update checker will also notify you about alpha and pre-release builds from GitHub. These may be less stable but include the latest features and fixes.'**+ String get preReleaseUpdatesInfoContent;++ /// No description provided for @includePreReleases.+ ///+ /// In en, this message translates to:+ /// **'Include pre-releases'**+ String get includePreReleases;++ /// No description provided for @includePreReleasesOnSubtitle.+ ///+ /// In en, this message translates to:+ /// **'On - checking for alpha & pre-release builds'**+ String get includePreReleasesOnSubtitle;++ /// No description provided for @includePreReleasesOffSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Off - stable releases only'**+ String get includePreReleasesOffSubtitle;++ /// No description provided for @setTooltip.+ ///+ /// In en, this message translates to:+ /// **'Set'**+ String get setTooltip;++ /// No description provided for @saveAbsorbBackup.+ ///+ /// In en, this message translates to:+ /// **'Save Absorb backup'**+ String get saveAbsorbBackup;++ /// No description provided for @checkForUpdate.+ ///+ /// In en, this message translates to:+ /// **'Check for update'**+ String get checkForUpdate;++ /// No description provided for @onLatestVersion.+ ///+ /// In en, this message translates to:+ /// **'You\'re on the latest version'**+ String get onLatestVersion;++ /// No description provided for @updateAvailable.+ ///+ /// In en, this message translates to:+ /// **'Update available'**+ String get updateAvailable;++ /// No description provided for @preReleaseAvailable.+ ///+ /// In en, this message translates to:+ /// **'Pre-release available'**+ String get preReleaseAvailable;++ /// No description provided for @updateDialogContent.+ ///+ /// In en, this message translates to:+ /// **'A new {kind} of Absorb is available: {latest}\n\nYou are on {current}.'**+ String updateDialogContent(String kind, String latest, String current);++ /// No description provided for @updateKindPreRelease.+ ///+ /// In en, this message translates to:+ /// **'pre-release'**+ String get updateKindPreRelease;++ /// No description provided for @updateKindVersion.+ ///+ /// In en, this message translates to:+ /// **'version'**+ String get updateKindVersion;++ /// No description provided for @downloadButton.+ ///+ /// In en, this message translates to:+ /// **'Download'**+ String get downloadButton;++ /// No description provided for @libraryCountOne.+ ///+ /// In en, this message translates to:+ /// **'{count} library'**+ String libraryCountOne(int count);++ /// No description provided for @libraryCountOther.+ ///+ /// In en, this message translates to:+ /// **'{count} libraries'**+ String libraryCountOther(int count);++ /// No description provided for @serverVersionLabel.+ ///+ /// In en, this message translates to:+ /// **'Server {version}'**+ String serverVersionLabel(String version);++ /// No description provided for @appVersionServerSuffix.+ ///+ /// In en, this message translates to:+ /// **' · Server {version}'**+ String appVersionServerSuffix(String version);++ /// No description provided for @backupDateFormat.+ ///+ /// In en, this message translates to:+ /// **'{month}/{day}/{year}'**+ String backupDateFormat(int month, int day, int year);++ /// No description provided for @backupDetailsSeparator.+ ///+ /// In en, this message translates to:+ /// **' · '**+ String get backupDetailsSeparator;++ /// No description provided for @bookmarksSortedByPositionReversed.+ ///+ /// In en, this message translates to:+ /// **'Sorted by position (reversed)'**+ String get bookmarksSortedByPositionReversed;++ /// No description provided for @bookmarksJumpShortContent.+ ///+ /// In en, this message translates to:+ /// **'\"{title}\" at {position}'**+ String bookmarksJumpShortContent(String title, String position);++ /// No description provided for @deleteBookmarkQuestion.+ ///+ /// In en, this message translates to:+ /// **'Delete bookmark?'**+ String get deleteBookmarkQuestion;++ /// No description provided for @bookmarkAtPosition.+ ///+ /// In en, this message translates to:+ /// **'Bookmark at {position}'**+ String bookmarkAtPosition(String position);++ /// No description provided for @cardIconsOnlyChip.+ ///+ /// In en, this message translates to:+ /// **'Icons only'**+ String get cardIconsOnlyChip;++ /// No description provided for @cardMoreInGridChip.+ ///+ /// In en, this message translates to:+ /// **'\"More\" in grid'**+ String get cardMoreInGridChip;++ /// No description provided for @cardLayoutHidden.+ ///+ /// In en, this message translates to:+ /// **'Hidden'**+ String get cardLayoutHidden;++ /// No description provided for @speed.+ ///+ /// In en, this message translates to:+ /// **'Speed'**+ String get speed;++ /// No description provided for @details.+ ///+ /// In en, this message translates to:+ /// **'Details'**+ String get details;++ /// No description provided for @episodeDetailsLabel.+ ///+ /// In en, this message translates to:+ /// **'Episode Details'**+ String get episodeDetailsLabel;++ /// No description provided for @bookDetailsLabel.+ ///+ /// In en, this message translates to:+ /// **'Book Details'**+ String get bookDetailsLabel;++ /// No description provided for @equalizerShort.+ ///+ /// In en, this message translates to:+ /// **'EQ'**+ String get equalizerShort;++ /// No description provided for @equalizerLabel.+ ///+ /// In en, this message translates to:+ /// **'Equalizer'**+ String get equalizerLabel;++ /// No description provided for @cast.+ ///+ /// In en, this message translates to:+ /// **'Cast'**+ String get cast;++ /// No description provided for @castingToDevice.+ ///+ /// In en, this message translates to:+ /// **'Casting to {device}'**+ String castingToDevice(String device);++ /// No description provided for @castToDeviceNamed.+ ///+ /// In en, this message translates to:+ /// **'Cast to {device}'**+ String castToDeviceNamed(String device);++ /// No description provided for @historyShort.+ ///+ /// In en, this message translates to:+ /// **'History'**+ String get historyShort;++ /// No description provided for @atPosition.+ ///+ /// In en, this message translates to:+ /// **'at {position}'**+ String atPosition(String position);++ /// No description provided for @chaptersChip.+ ///+ /// In en, this message translates to:+ /// **'{count} chapters'**+ String chaptersChip(int count);++ /// No description provided for @chapterNumber.+ ///+ /// In en, this message translates to:+ /// **'Chapter {number}'**+ String chapterNumber(int number);++ /// No description provided for @kbpsValue.+ ///+ /// In en, this message translates to:+ /// **'{value} kbps'**+ String kbpsValue(int value);++ /// No description provided for @resetMayNotHaveSynced.+ ///+ /// In en, this message translates to:+ /// **'Reset may not have synced - check your server'**+ String get resetMayNotHaveSynced;++ /// No description provided for @failedToDownloadEbook.+ ///+ /// In en, this message translates to:+ /// **'Failed to download ebook ({code})'**+ String failedToDownloadEbook(int code);++ /// No description provided for @serverReturnedErrorPage.+ ///+ /// In en, this message translates to:+ /// **'Server returned an error page instead of the ebook file'**+ String get serverReturnedErrorPage;++ /// No description provided for @ebookSaved.+ ///+ /// In en, this message translates to:+ /// **'Saved: {filename}'**+ String ebookSaved(String filename);++ /// No description provided for @errorSavingEbook.+ ///+ /// In en, this message translates to:+ /// **'Error saving ebook: {error}'**+ String errorSavingEbook(String error);++ /// No description provided for @failedToSaveError.+ ///+ /// In en, this message translates to:+ /// **'Failed to save: {error}'**+ String failedToSaveError(String error);++ /// No description provided for @adminBackupsLabel.+ ///+ /// In en, this message translates to:+ /// **'Backups'**+ String get adminBackupsLabel;++ /// No description provided for @adminListeningNow.+ ///+ /// In en, this message translates to:+ /// **'Listening Now'**+ String get adminListeningNow;++ /// No description provided for @adminLibraries.+ ///+ /// In en, this message translates to:+ /// **'Libraries'**+ String get adminLibraries;++ /// No description provided for @adminLibraryShows.+ ///+ /// In en, this message translates to:+ /// **'shows'**+ String get adminLibraryShows;++ /// No description provided for @adminLibraryBooks.+ ///+ /// In en, this message translates to:+ /// **'books'**+ String get adminLibraryBooks;++ /// No description provided for @adminLibraryFolders.+ ///+ /// In en, this message translates to:+ /// **'folders'**+ String get adminLibraryFolders;++ /// No description provided for @adminLibrarySize.+ ///+ /// In en, this message translates to:+ /// **'size'**+ String get adminLibrarySize;++ /// No description provided for @adminLibraryDuration.+ ///+ /// In en, this message translates to:+ /// **'duration'**+ String get adminLibraryDuration;++ /// No description provided for @adminMatchAction.+ ///+ /// In en, this message translates to:+ /// **'Match'**+ String get adminMatchAction;++ /// No description provided for @adminMatchingStarted.+ ///+ /// In en, this message translates to:+ /// **'Matching started for {name}'**+ String adminMatchingStarted(String name);++ /// No description provided for @adminMatchFailed.+ ///+ /// In en, this message translates to:+ /// **'Failed'**+ String get adminMatchFailed;++ /// No description provided for @adminScanFailed.+ ///+ /// In en, this message translates to:+ /// **'Failed to scan {name}'**+ String adminScanFailed(String name);++ /// No description provided for @adminPurgeCacheFailed.+ ///+ /// In en, this message translates to:+ /// **'Failed'**+ String get adminPurgeCacheFailed;++ /// No description provided for @adminUsersRootBadge.+ ///+ /// In en, this message translates to:+ /// **'root'**+ String get adminUsersRootBadge;++ /// No description provided for @adminUsersAdminBadge.+ ///+ /// In en, this message translates to:+ /// **'admin'**+ String get adminUsersAdminBadge;++ /// No description provided for @adminUsersDisabledBadge.+ ///+ /// In en, this message translates to:+ /// **'disabled'**+ String get adminUsersDisabledBadge;++ /// No description provided for @adminUsersEditUserTooltip.+ ///+ /// In en, this message translates to:+ /// **'Edit user'**+ String get adminUsersEditUserTooltip;++ /// No description provided for @adminUsersOnlineNow.+ ///+ /// In en, this message translates to:+ /// **'Online now'**+ String get adminUsersOnlineNow;++ /// No description provided for @adminUsersLastSeen.+ ///+ /// In en, this message translates to:+ /// **'Last seen {time}'**+ String adminUsersLastSeen(String time);++ /// No description provided for @adminUsersNever.+ ///+ /// In en, this message translates to:+ /// **'Never'**+ String get adminUsersNever;++ /// No description provided for @adminUsersTotal.+ ///+ /// In en, this message translates to:+ /// **'Total'**+ String get adminUsersTotal;++ /// No description provided for @adminUsersNoReadingActivity.+ ///+ /// In en, this message translates to:+ /// **'No reading activity'**+ String get adminUsersNoReadingActivity;++ /// No description provided for @adminUsersLoadingDots.+ ///+ /// In en, this message translates to:+ /// **'Loading...'**+ String get adminUsersLoadingDots;++ /// No description provided for @adminUsersLoadMoreSessions.+ ///+ /// In en, this message translates to:+ /// **'Load more sessions'**+ String get adminUsersLoadMoreSessions;++ /// No description provided for @adminUsersNoRecentSessions.+ ///+ /// In en, this message translates to:+ /// **'No recent sessions'**+ String get adminUsersNoRecentSessions;++ /// No description provided for @adminUsersLibraryProgress.+ ///+ /// In en, this message translates to:+ /// **'Library Progress'**+ String get adminUsersLibraryProgress;++ /// No description provided for @adminUsersLoadMoreRemaining.+ ///+ /// In en, this message translates to:+ /// **'Load More ({count} remaining)'**+ String adminUsersLoadMoreRemaining(int count);++ /// No description provided for @adminUsersMonthsAgo.+ ///+ /// In en, this message translates to:+ /// **'{count}mo ago'**+ String adminUsersMonthsAgo(int count);++ /// No description provided for @adminUsersNewUser.+ ///+ /// In en, this message translates to:+ /// **'New User'**+ String get adminUsersNewUser;++ /// No description provided for @adminUsersEditUser.+ ///+ /// In en, this message translates to:+ /// **'Edit User'**+ String get adminUsersEditUser;++ /// No description provided for @adminUsersUsername.+ ///+ /// In en, this message translates to:+ /// **'Username'**+ String get adminUsersUsername;++ /// No description provided for @adminUsersEnterUsername.+ ///+ /// In en, this message translates to:+ /// **'Enter username'**+ String get adminUsersEnterUsername;++ /// No description provided for @adminUsersPassword.+ ///+ /// In en, this message translates to:+ /// **'Password'**+ String get adminUsersPassword;++ /// No description provided for @adminUsersNewPassword.+ ///+ /// In en, this message translates to:+ /// **'New Password'**+ String get adminUsersNewPassword;++ /// No description provided for @adminUsersEnterPassword.+ ///+ /// In en, this message translates to:+ /// **'Enter password'**+ String get adminUsersEnterPassword;++ /// No description provided for @adminUsersLeaveBlankToKeep.+ ///+ /// In en, this message translates to:+ /// **'Leave blank to keep current'**+ String get adminUsersLeaveBlankToKeep;++ /// No description provided for @adminUsersAccountType.+ ///+ /// In en, this message translates to:+ /// **'Account Type'**+ String get adminUsersAccountType;++ /// No description provided for @adminUsersTypeGuest.+ ///+ /// In en, this message translates to:+ /// **'Guest'**+ String get adminUsersTypeGuest;++ /// No description provided for @adminUsersTypeUser.+ ///+ /// In en, this message translates to:+ /// **'User'**+ String get adminUsersTypeUser;++ /// No description provided for @adminUsersTypeAdmin.+ ///+ /// In en, this message translates to:+ /// **'Admin'**+ String get adminUsersTypeAdmin;++ /// No description provided for @adminUsersStatus.+ ///+ /// In en, this message translates to:+ /// **'Status'**+ String get adminUsersStatus;++ /// No description provided for @adminUsersAccountActive.+ ///+ /// In en, this message translates to:+ /// **'Account Active'**+ String get adminUsersAccountActive;++ /// No description provided for @adminUsersAccountActiveSub.+ ///+ /// In en, this message translates to:+ /// **'Disabled accounts cannot log in'**+ String get adminUsersAccountActiveSub;++ /// No description provided for @adminUsersLocked.+ ///+ /// In en, this message translates to:+ /// **'Locked'**+ String get adminUsersLocked;++ /// No description provided for @adminUsersLockedSub.+ ///+ /// In en, this message translates to:+ /// **'Prevents password changes'**+ String get adminUsersLockedSub;++ /// No description provided for @adminUsersPermissions.+ ///+ /// In en, this message translates to:+ /// **'Permissions'**+ String get adminUsersPermissions;++ /// No description provided for @adminUsersPermDownload.+ ///+ /// In en, this message translates to:+ /// **'Download'**+ String get adminUsersPermDownload;++ /// No description provided for @adminUsersPermUpdate.+ ///+ /// In en, this message translates to:+ /// **'Update'**+ String get adminUsersPermUpdate;++ /// No description provided for @adminUsersPermUpdateSub.+ ///+ /// In en, this message translates to:+ /// **'Edit metadata and library items'**+ String get adminUsersPermUpdateSub;++ /// No description provided for @adminUsersPermDelete.+ ///+ /// In en, this message translates to:+ /// **'Delete'**+ String get adminUsersPermDelete;++ /// No description provided for @adminUsersPermUpload.+ ///+ /// In en, this message translates to:+ /// **'Upload'**+ String get adminUsersPermUpload;++ /// No description provided for @adminUsersPermExplicit.+ ///+ /// In en, this message translates to:+ /// **'Explicit Content'**+ String get adminUsersPermExplicit;++ /// No description provided for @adminUsersLibraryAccess.+ ///+ /// In en, this message translates to:+ /// **'Library Access'**+ String get adminUsersLibraryAccess;++ /// No description provided for @adminUsersAccessAllLibraries.+ ///+ /// In en, this message translates to:+ /// **'Access All Libraries'**+ String get adminUsersAccessAllLibraries;++ /// No description provided for @adminUsersCreateUser.+ ///+ /// In en, this message translates to:+ /// **'Create User'**+ String get adminUsersCreateUser;++ /// No description provided for @adminUsersSaveChanges.+ ///+ /// In en, this message translates to:+ /// **'Save Changes'**+ String get adminUsersSaveChanges;++ /// No description provided for @adminUsersUsernameRequired.+ ///+ /// In en, this message translates to:+ /// **'Username is required'**+ String get adminUsersUsernameRequired;++ /// No description provided for @adminUsersPasswordRequired.+ ///+ /// In en, this message translates to:+ /// **'Password is required'**+ String get adminUsersPasswordRequired;++ /// No description provided for @adminUsersUserCreated.+ ///+ /// In en, this message translates to:+ /// **'User created'**+ String get adminUsersUserCreated;++ /// No description provided for @adminUsersUserUpdated.+ ///+ /// In en, this message translates to:+ /// **'User updated'**+ String get adminUsersUserUpdated;++ /// No description provided for @adminUsersFailedCreate.+ ///+ /// In en, this message translates to:+ /// **'Failed to create user'**+ String get adminUsersFailedCreate;++ /// No description provided for @adminUsersFailedUpdate.+ ///+ /// In en, this message translates to:+ /// **'Failed to update user'**+ String get adminUsersFailedUpdate;++ /// No description provided for @adminUsersThisUser.+ ///+ /// In en, this message translates to:+ /// **'this user'**+ String get adminUsersThisUser;++ /// No description provided for @adminUsersDeleteUserTitle.+ ///+ /// In en, this message translates to:+ /// **'Delete User?'**+ String get adminUsersDeleteUserTitle;++ /// No description provided for @adminUsersDeleteUserContent.+ ///+ /// In en, this message translates to:+ /// **'Permanently delete {name}?'**+ String adminUsersDeleteUserContent(String name);++ /// No description provided for @adminUsersUserDeleted.+ ///+ /// In en, this message translates to:+ /// **'{name} deleted'**+ String adminUsersUserDeleted(String name);++ /// No description provided for @adminUsersFailedDelete.+ ///+ /// In en, this message translates to:+ /// **'Failed to delete user'**+ String get adminUsersFailedDelete;++ /// No description provided for @adminUsersByAuthor.+ ///+ /// In en, this message translates to:+ /// **'by {author}'**+ String adminUsersByAuthor(String author);++ /// No description provided for @adminUsersListened.+ ///+ /// In en, this message translates to:+ /// **'Listened'**+ String get adminUsersListened;++ /// No description provided for @adminUsersStartedAtPosition.+ ///+ /// In en, this message translates to:+ /// **'Started at position'**+ String get adminUsersStartedAtPosition;++ /// No description provided for @adminUsersEndedAtPosition.+ ///+ /// In en, this message translates to:+ /// **'Ended at position'**+ String get adminUsersEndedAtPosition;++ /// No description provided for @adminUsersTotalDuration.+ ///+ /// In en, this message translates to:+ /// **'Total duration'**+ String get adminUsersTotalDuration;++ /// No description provided for @adminUsersStarted.+ ///+ /// In en, this message translates to:+ /// **'Started'**+ String get adminUsersStarted;++ /// No description provided for @adminUsersUpdated.+ ///+ /// In en, this message translates to:+ /// **'Updated'**+ String get adminUsersUpdated;++ /// No description provided for @adminUsersClient.+ ///+ /// In en, this message translates to:+ /// **'Client'**+ String get adminUsersClient;++ /// No description provided for @adminUsersDevice.+ ///+ /// In en, this message translates to:+ /// **'Device'**+ String get adminUsersDevice;++ /// No description provided for @adminUsersOs.+ ///+ /// In en, this message translates to:+ /// **'OS'**+ String get adminUsersOs;++ /// No description provided for @adminUsersPlayMethod.+ ///+ /// In en, this message translates to:+ /// **'Play method'**+ String get adminUsersPlayMethod;++ /// No description provided for @adminUsersPlayDirect.+ ///+ /// In en, this message translates to:+ /// **'Direct play'**+ String get adminUsersPlayDirect;++ /// No description provided for @adminUsersPlayDirectStream.+ ///+ /// In en, this message translates to:+ /// **'Direct stream'**+ String get adminUsersPlayDirectStream;++ /// No description provided for @adminUsersPlayTranscode.+ ///+ /// In en, this message translates to:+ /// **'Transcode'**+ String get adminUsersPlayTranscode;++ /// No description provided for @adminUsersPlayLocal.+ ///+ /// In en, this message translates to:+ /// **'Local'**+ String get adminUsersPlayLocal;++ /// No description provided for @adminPodcastsCheckNewEpisodesTitle.+ ///+ /// In en, this message translates to:+ /// **'Check for New Episodes'**+ String get adminPodcastsCheckNewEpisodesTitle;++ /// No description provided for @adminPodcastsCheckNewEpisodesContent.+ ///+ /// In en, this message translates to:+ /// **'This will check RSS feeds for all podcasts and download any new episodes found (if auto-download is enabled).'**+ String get adminPodcastsCheckNewEpisodesContent;++ /// No description provided for @adminPodcastsCheckNewEpisodesSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Scan RSS feed and download new episodes'**+ String get adminPodcastsCheckNewEpisodesSubtitle;++ /// No description provided for @adminPodcastsCheck.+ ///+ /// In en, this message translates to:+ /// **'Check'**+ String get adminPodcastsCheck;++ /// No description provided for @adminPodcastsCheckingForNew.+ ///+ /// In en, this message translates to:+ /// **'Checking for new episodes…'**+ String get adminPodcastsCheckingForNew;++ /// No description provided for @adminPodcastsCheckingForNewDots.+ ///+ /// In en, this message translates to:+ /// **'Checking for new episodes...'**+ String get adminPodcastsCheckingForNewDots;++ /// No description provided for @adminPodcastsFailedCheckEpisodes.+ ///+ /// In en, this message translates to:+ /// **'Failed to check episodes'**+ String get adminPodcastsFailedCheckEpisodes;++ /// No description provided for @adminPodcastsCheckFeedsTooltip.+ ///+ /// In en, this message translates to:+ /// **'Check feeds for new episodes'**+ String get adminPodcastsCheckFeedsTooltip;++ /// No description provided for @adminPodcastsNoPodcastsYet.+ ///+ /// In en, this message translates to:+ /// **'No podcasts yet'**+ String get adminPodcastsNoPodcastsYet;++ /// No description provided for @adminPodcastsTapPlusHint.+ ///+ /// In en, this message translates to:+ /// **'Tap + to search and add shows'**+ String get adminPodcastsTapPlusHint;++ /// No description provided for @adminPodcastsEpisodesCount.+ ///+ /// In en, this message translates to:+ /// **'{count} episodes'**+ String adminPodcastsEpisodesCount(int count);++ /// No description provided for @adminPodcastsAddPodcast.+ ///+ /// In en, this message translates to:+ /// **'Add Podcast'**+ String get adminPodcastsAddPodcast;++ /// No description provided for @adminPodcastsCouldNotFindFeed.+ ///+ /// In en, this message translates to:+ /// **'Could not find podcast feed'**+ String get adminPodcastsCouldNotFindFeed;++ /// No description provided for @adminPodcastsSearchHint.+ ///+ /// In en, this message translates to:+ /// **'Search for podcasts…'**+ String get adminPodcastsSearchHint;++ /// No description provided for @adminPodcastsSearchItunesHint.+ ///+ /// In en, this message translates to:+ /// **'Search iTunes...'**+ String get adminPodcastsSearchItunesHint;++ /// No description provided for @adminPodcastsNoPodcastsFound.+ ///+ /// In en, this message translates to:+ /// **'No podcasts found'**+ String get adminPodcastsNoPodcastsFound;++ /// No description provided for @adminPodcastsRelToday.+ ///+ /// In en, this message translates to:+ /// **'Today'**+ String get adminPodcastsRelToday;++ /// No description provided for @adminPodcastsWeeksAgo.+ ///+ /// In en, this message translates to:+ /// **'{count}w ago'**+ String adminPodcastsWeeksAgo(int count);++ /// No description provided for @adminPodcastsMonthsAgo.+ ///+ /// In en, this message translates to:+ /// **'{count}mo ago'**+ String adminPodcastsMonthsAgo(int count);++ /// No description provided for @adminPodcastsYearsAgo.+ ///+ /// In en, this message translates to:+ /// **'{count}y ago'**+ String adminPodcastsYearsAgo(int count);++ /// No description provided for @adminPodcastsUpdated.+ ///+ /// In en, this message translates to:+ /// **'Updated {when}'**+ String adminPodcastsUpdated(String when);++ /// No description provided for @adminPodcastsGenreAll.+ ///+ /// In en, this message translates to:+ /// **'All'**+ String get adminPodcastsGenreAll;++ /// No description provided for @adminPodcastsGenreArts.+ ///+ /// In en, this message translates to:+ /// **'Arts'**+ String get adminPodcastsGenreArts;++ /// No description provided for @adminPodcastsGenreComedy.+ ///+ /// In en, this message translates to:+ /// **'Comedy'**+ String get adminPodcastsGenreComedy;++ /// No description provided for @adminPodcastsGenreEducation.+ ///+ /// In en, this message translates to:+ /// **'Education'**+ String get adminPodcastsGenreEducation;++ /// No description provided for @adminPodcastsGenreTvFilm.+ ///+ /// In en, this message translates to:+ /// **'TV & Film'**+ String get adminPodcastsGenreTvFilm;++ /// No description provided for @adminPodcastsGenreMusic.+ ///+ /// In en, this message translates to:+ /// **'Music'**+ String get adminPodcastsGenreMusic;++ /// No description provided for @adminPodcastsGenreNews.+ ///+ /// In en, this message translates to:+ /// **'News'**+ String get adminPodcastsGenreNews;++ /// No description provided for @adminPodcastsGenreReligion.+ ///+ /// In en, this message translates to:+ /// **'Religion'**+ String get adminPodcastsGenreReligion;++ /// No description provided for @adminPodcastsGenreScience.+ ///+ /// In en, this message translates to:+ /// **'Science'**+ String get adminPodcastsGenreScience;++ /// No description provided for @adminPodcastsGenreSports.+ ///+ /// In en, this message translates to:+ /// **'Sports'**+ String get adminPodcastsGenreSports;++ /// No description provided for @adminPodcastsGenreTechnology.+ ///+ /// In en, this message translates to:+ /// **'Technology'**+ String get adminPodcastsGenreTechnology;++ /// No description provided for @adminPodcastsGenreBusiness.+ ///+ /// In en, this message translates to:+ /// **'Business'**+ String get adminPodcastsGenreBusiness;++ /// No description provided for @adminPodcastsGenreFiction.+ ///+ /// In en, this message translates to:+ /// **'Fiction'**+ String get adminPodcastsGenreFiction;++ /// No description provided for @adminPodcastsGenreSocietyCulture.+ ///+ /// In en, this message translates to:+ /// **'Society & Culture'**+ String get adminPodcastsGenreSocietyCulture;++ /// No description provided for @adminPodcastsGenreHealthFitness.+ ///+ /// In en, this message translates to:+ /// **'Health & Fitness'**+ String get adminPodcastsGenreHealthFitness;++ /// No description provided for @adminPodcastsGenreTrueCrime.+ ///+ /// In en, this message translates to:+ /// **'True Crime'**+ String get adminPodcastsGenreTrueCrime;++ /// No description provided for @adminPodcastsGenreHistory.+ ///+ /// In en, this message translates to:+ /// **'History'**+ String get adminPodcastsGenreHistory;++ /// No description provided for @adminPodcastsGenreKidsFamily.+ ///+ /// In en, this message translates to:+ /// **'Kids & Family'**+ String get adminPodcastsGenreKidsFamily;++ /// No description provided for @adminPodcastsPodcastFallback.+ ///+ /// In en, this message translates to:+ /// **'Podcast'**+ String get adminPodcastsPodcastFallback;++ /// No description provided for @adminPodcastsEpisodeFallback.+ ///+ /// In en, this message translates to:+ /// **'Episode'**+ String get adminPodcastsEpisodeFallback;++ /// No description provided for @adminPodcastsNoFeedFound.+ ///+ /// In en, this message translates to:+ /// **'No feed URL found'**+ String get adminPodcastsNoFeedFound;++ /// No description provided for @adminPodcastsNoFeedAvailable.+ ///+ /// In en, this message translates to:+ /// **'No feed URL available'**+ String get adminPodcastsNoFeedAvailable;++ /// No description provided for @adminPodcastsAddedToLibrary.+ ///+ /// In en, this message translates to:+ /// **'{title} added to library'**+ String adminPodcastsAddedToLibrary(String title);++ /// No description provided for @adminPodcastsFailedToAdd.+ ///+ /// In en, this message translates to:+ /// **'Failed to add {title}'**+ String adminPodcastsFailedToAdd(String title);++ /// No description provided for @adminPodcastsEpisodesInFeed.+ ///+ /// In en, this message translates to:+ /// **'{count} episodes in feed'**+ String adminPodcastsEpisodesInFeed(int count);++ /// No description provided for @adminPodcastsMoreEpisodes.+ ///+ /// In en, this message translates to:+ /// **'+ {count} more episodes'**+ String adminPodcastsMoreEpisodes(int count);++ /// No description provided for @adminPodcastsAdding.+ ///+ /// In en, this message translates to:+ /// **'Adding…'**+ String get adminPodcastsAdding;++ /// No description provided for @adminPodcastsAddToLibrary.+ ///+ /// In en, this message translates to:+ /// **'Add to Library'**+ String get adminPodcastsAddToLibrary;++ /// No description provided for @adminPodcastsRemoveShowTitle.+ ///+ /// In en, this message translates to:+ /// **'Remove Show?'**+ String get adminPodcastsRemoveShowTitle;++ /// No description provided for @adminPodcastsRemoveShowContent.+ ///+ /// In en, this message translates to:+ /// **'Remove \"{title}\" and all its episodes from the server? This cannot be undone.'**+ String adminPodcastsRemoveShowContent(String title);++ /// No description provided for @adminPodcastsRemovedShow.+ ///+ /// In en, this message translates to:+ /// **'Removed \"{title}\"'**+ String adminPodcastsRemovedShow(String title);++ /// No description provided for @adminPodcastsFailedRemoveShow.+ ///+ /// In en, this message translates to:+ /// **'Failed to remove show'**+ String get adminPodcastsFailedRemoveShow;++ /// No description provided for @adminPodcastsRemoveShowTooltip.+ ///+ /// In en, this message translates to:+ /// **'Remove show'**+ String get adminPodcastsRemoveShowTooltip;++ /// No description provided for @adminPodcastsSelectMultipleTooltip.+ ///+ /// In en, this message translates to:+ /// **'Select multiple'**+ String get adminPodcastsSelectMultipleTooltip;++ /// No description provided for @adminPodcastsDownloadedCount.+ ///+ /// In en, this message translates to:+ /// **'{count} downloaded'**+ String adminPodcastsDownloadedCount(int count);++ /// No description provided for @adminPodcastsTabDownloaded.+ ///+ /// In en, this message translates to:+ /// **'Downloaded'**+ String get adminPodcastsTabDownloaded;++ /// No description provided for @adminPodcastsTabFeed.+ ///+ /// In en, this message translates to:+ /// **'Feed'**+ String get adminPodcastsTabFeed;++ /// No description provided for @adminPodcastsTabSettings.+ ///+ /// In en, this message translates to:+ /// **'Settings'**+ String get adminPodcastsTabSettings;++ /// No description provided for @adminPodcastsDownloadingEpisode.+ ///+ /// In en, this message translates to:+ /// **'Downloading \"{title}\"'**+ String adminPodcastsDownloadingEpisode(String title);++ /// No description provided for @adminPodcastsFailedDownload.+ ///+ /// In en, this message translates to:+ /// **'Failed to download'**+ String get adminPodcastsFailedDownload;++ /// No description provided for @adminPodcastsDeleteEpisodeTitle.+ ///+ /// In en, this message translates to:+ /// **'Delete Episode?'**+ String get adminPodcastsDeleteEpisodeTitle;++ /// No description provided for @adminPodcastsDeleteEpisodeContent.+ ///+ /// In en, this message translates to:+ /// **'Delete \"{title}\"?'**+ String adminPodcastsDeleteEpisodeContent(String title);++ /// No description provided for @adminPodcastsDeleted.+ ///+ /// In en, this message translates to:+ /// **'Deleted'**+ String get adminPodcastsDeleted;++ /// No description provided for @adminPodcastsFailed.+ ///+ /// In en, this message translates to:+ /// **'Failed'**+ String get adminPodcastsFailed;++ /// No description provided for @adminPodcastsDeleteEpisodesTitle.+ ///+ /// In en, this message translates to:+ /// **'Delete Episodes?'**+ String get adminPodcastsDeleteEpisodesTitle;++ /// No description provided for @adminPodcastsDeleteEpisodesContent.+ ///+ /// In en, this message translates to:+ /// **'Delete {count} episode(s) from the server?'**+ String adminPodcastsDeleteEpisodesContent(int count);++ /// No description provided for @adminPodcastsDeletedEpisodes.+ ///+ /// In en, this message translates to:+ /// **'Deleted {count} episode(s)'**+ String adminPodcastsDeletedEpisodes(int count);++ /// No description provided for @adminPodcastsBrowseFeedToDownload.+ ///+ /// In en, this message translates to:+ /// **'Browse feed to download'**+ String get adminPodcastsBrowseFeedToDownload;++ /// No description provided for @adminPodcastsDownloadingDots.+ ///+ /// In en, this message translates to:+ /// **'Downloading...'**+ String get adminPodcastsDownloadingDots;++ /// No description provided for @adminPodcastsDeleteEpisodesCount.+ ///+ /// In en, this message translates to:+ /// **'Delete {count} episode(s)'**+ String adminPodcastsDeleteEpisodesCount(int count);++ /// No description provided for @adminPodcastsDownloadingCount.+ ///+ /// In en, this message translates to:+ /// **'Downloading {count} episode(s)'**+ String adminPodcastsDownloadingCount(int count);++ /// No description provided for @adminPodcastsDownloadEpisodesCount.+ ///+ /// In en, this message translates to:+ /// **'Download {count} episode(s)'**+ String adminPodcastsDownloadEpisodesCount(int count);++ /// No description provided for @adminPodcastsLookForEpisodesAfter.+ ///+ /// In en, this message translates to:+ /// **'Look for episodes after'**+ String get adminPodcastsLookForEpisodesAfter;++ /// No description provided for @adminPodcastsSelectDate.+ ///+ /// In en, this message translates to:+ /// **'Select date'**+ String get adminPodcastsSelectDate;++ /// No description provided for @adminPodcastsMaxEpisodes.+ ///+ /// In en, this message translates to:+ /// **'Max episodes to download'**+ String get adminPodcastsMaxEpisodes;++ /// No description provided for @adminPodcastsNoNewEpisodesAfter.+ ///+ /// In en, this message translates to:+ /// **'No new episodes found after {date}'**+ String adminPodcastsNoNewEpisodesAfter(String date);++ /// No description provided for @adminPodcastsFoundNewEpisodes.+ ///+ /// In en, this message translates to:+ /// **'Found {count} new episode(s) - downloading'**+ String adminPodcastsFoundNewEpisodes(int count);++ /// No description provided for @adminPodcastsFailedToCheckNew.+ ///+ /// In en, this message translates to:+ /// **'Failed to check for new episodes'**+ String get adminPodcastsFailedToCheckNew;++ /// No description provided for @adminPodcastsCheckAndDownload.+ ///+ /// In en, this message translates to:+ /// **'Check & Download'**+ String get adminPodcastsCheckAndDownload;++ /// No description provided for @adminPodcastsMatchPodcast.+ ///+ /// In en, this message translates to:+ /// **'Match Podcast'**+ String get adminPodcastsMatchPodcast;++ /// No description provided for @adminPodcastsMatchPodcastSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Search iTunes to update cover and metadata'**+ String get adminPodcastsMatchPodcastSubtitle;++ /// No description provided for @adminPodcastsAutoDownloadNewEpisodes.+ ///+ /// In en, this message translates to:+ /// **'Auto-Download New Episodes'**+ String get adminPodcastsAutoDownloadNewEpisodes;++ /// No description provided for @adminPodcastsAutoDownloadOnSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Server downloads new episodes automatically'**+ String get adminPodcastsAutoDownloadOnSubtitle;++ /// No description provided for @adminPodcastsAutoDownloadOffSubtitle.+ ///+ /// In en, this message translates to:+ /// **'New episodes are not auto-downloaded'**+ String get adminPodcastsAutoDownloadOffSubtitle;++ /// No description provided for @adminPodcastsFailedAutoDownloadUpdate.+ ///+ /// In en, this message translates to:+ /// **'Failed to update auto-download setting'**+ String get adminPodcastsFailedAutoDownloadUpdate;++ /// No description provided for @adminPodcastsCheckSchedule.+ ///+ /// In en, this message translates to:+ /// **'Check Schedule'**+ String get adminPodcastsCheckSchedule;++ /// No description provided for @adminPodcastsFrequency.+ ///+ /// In en, this message translates to:+ /// **'Frequency'**+ String get adminPodcastsFrequency;++ /// No description provided for @adminPodcastsFreqHourly.+ ///+ /// In en, this message translates to:+ /// **'Hourly'**+ String get adminPodcastsFreqHourly;++ /// No description provided for @adminPodcastsFreqDaily.+ ///+ /// In en, this message translates to:+ /// **'Daily'**+ String get adminPodcastsFreqDaily;++ /// No description provided for @adminPodcastsFreqWeekly.+ ///+ /// In en, this message translates to:+ /// **'Weekly'**+ String get adminPodcastsFreqWeekly;++ /// No description provided for @adminPodcastsDay.+ ///+ /// In en, this message translates to:+ /// **'Day'**+ String get adminPodcastsDay;++ /// No description provided for @adminPodcastsTime.+ ///+ /// In en, this message translates to:+ /// **'Time'**+ String get adminPodcastsTime;++ /// No description provided for @adminPodcastsDaySun.+ ///+ /// In en, this message translates to:+ /// **'Sun'**+ String get adminPodcastsDaySun;++ /// No description provided for @adminPodcastsDayMon.+ ///+ /// In en, this message translates to:+ /// **'Mon'**+ String get adminPodcastsDayMon;++ /// No description provided for @adminPodcastsDayTue.+ ///+ /// In en, this message translates to:+ /// **'Tue'**+ String get adminPodcastsDayTue;++ /// No description provided for @adminPodcastsDayWed.+ ///+ /// In en, this message translates to:+ /// **'Wed'**+ String get adminPodcastsDayWed;++ /// No description provided for @adminPodcastsDayThu.+ ///+ /// In en, this message translates to:+ /// **'Thu'**+ String get adminPodcastsDayThu;++ /// No description provided for @adminPodcastsDayFri.+ ///+ /// In en, this message translates to:+ /// **'Fri'**+ String get adminPodcastsDayFri;++ /// No description provided for @adminPodcastsDaySat.+ ///+ /// In en, this message translates to:+ /// **'Sat'**+ String get adminPodcastsDaySat;++ /// No description provided for @adminPodcastsFeedUrl.+ ///+ /// In en, this message translates to:+ /// **'Feed URL'**+ String get adminPodcastsFeedUrl;++ /// No description provided for @adminPodcastsBack.+ ///+ /// In en, this message translates to:+ /// **'Back'**+ String get adminPodcastsBack;++ /// No description provided for @adminPodcastsRootOnly.+ ///+ /// In en, this message translates to:+ /// **'Root Only'**+ String get adminPodcastsRootOnly;++ /// No description provided for @adminPodcastsDeleting.+ ///+ /// In en, this message translates to:+ /// **'Deleting...'**+ String get adminPodcastsDeleting;++ /// No description provided for @adminPodcastsDeleteEpisode.+ ///+ /// In en, this message translates to:+ /// **'Delete Episode'**+ String get adminPodcastsDeleteEpisode;++ /// No description provided for @adminPodcastsSeasonChip.+ ///+ /// In en, this message translates to:+ /// **'Season {season}'**+ String adminPodcastsSeasonChip(String season);++ /// No description provided for @adminPodcastsEpChip.+ ///+ /// In en, this message translates to:+ /// **'Ep. {number}'**+ String adminPodcastsEpChip(String number);++ /// No description provided for @adminPodcastsApplyingMatch.+ ///+ /// In en, this message translates to:+ /// **'Applying match...'**+ String get adminPodcastsApplyingMatch;++ /// No description provided for @adminPodcastsNoResults.+ ///+ /// In en, this message translates to:+ /// **'No results'**+ String get adminPodcastsNoResults;++ /// No description provided for @adminPodcastsPodcastMatched.+ ///+ /// In en, this message translates to:+ /// **'Podcast matched and updated'**+ String get adminPodcastsPodcastMatched;++ /// No description provided for @adminPodcastsFailedMatch.+ ///+ /// In en, this message translates to:+ /// **'Failed to match podcast'**+ String get adminPodcastsFailedMatch;++ /// No description provided for @episodeListEpisodeFallback.+ ///+ /// In en, this message translates to:+ /// **'Episode'**+ String get episodeListEpisodeFallback;++ /// No description provided for @episodeListUnknownPodcast.+ ///+ /// In en, this message translates to:+ /// **'Unknown Podcast'**+ String get episodeListUnknownPodcast;++ /// No description provided for @episodeListMarkedFinished.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{1 episode marked as finished} other{{count} episodes marked as finished}}'**+ String episodeListMarkedFinished(int count);++ /// No description provided for @episodeListMarkedUnfinished.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{1 episode marked as unfinished} other{{count} episodes marked as unfinished}}'**+ String episodeListMarkedUnfinished(int count);++ /// No description provided for @episodeListUnsubscribeFromNewEpisodes.+ ///+ /// In en, this message translates to:+ /// **'Unsubscribe from New Episodes'**+ String get episodeListUnsubscribeFromNewEpisodes;++ /// No description provided for @episodeListSubscribeToNewEpisodes.+ ///+ /// In en, this message translates to:+ /// **'Subscribe to New Episodes'**+ String get episodeListSubscribeToNewEpisodes;++ /// No description provided for @episodeListSubscribeTitle.+ ///+ /// In en, this message translates to:+ /// **'Subscribe to this podcast?'**+ String get episodeListSubscribeTitle;++ /// No description provided for @episodeListSubscribeContent.+ ///+ /// In en, this message translates to:+ /// **'New episodes will be automatically downloaded and added to your absorbing queue when they appear on the server.'**+ String get episodeListSubscribeContent;++ /// No description provided for @episodeListSubscribe.+ ///+ /// In en, this message translates to:+ /// **'Subscribe'**+ String get episodeListSubscribe;++ /// No description provided for @episodeListShowFinishedEpisodes.+ ///+ /// In en, this message translates to:+ /// **'Show Finished Episodes'**+ String get episodeListShowFinishedEpisodes;++ /// No description provided for @episodeListHideFinishedEpisodes.+ ///+ /// In en, this message translates to:+ /// **'Hide Finished Episodes'**+ String get episodeListHideFinishedEpisodes;++ /// No description provided for @episodeListPlaysNewerToOlder.+ ///+ /// In en, this message translates to:+ /// **'Plays newer to older episodes'**+ String get episodeListPlaysNewerToOlder;++ /// No description provided for @episodeListPlaysOlderToNewer.+ ///+ /// In en, this message translates to:+ /// **'Plays older to newer episodes'**+ String get episodeListPlaysOlderToNewer;++ /// No description provided for @episodeListEpisodeCount.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{1 episode} other{{count} episodes}}'**+ String episodeListEpisodeCount(int count);++ /// No description provided for @episodeListAutoDownloadChip.+ ///+ /// In en, this message translates to:+ /// **'Auto-Download'**+ String get episodeListAutoDownloadChip;++ /// No description provided for @episodeListSubscribedChip.+ ///+ /// In en, this message translates to:+ /// **'Subscribed'**+ String get episodeListSubscribedChip;++ /// No description provided for @episodeListExplicitChip.+ ///+ /// In en, this message translates to:+ /// **'Explicit'**+ String get episodeListExplicitChip;++ /// No description provided for @episodeListSortNewest.+ ///+ /// In en, this message translates to:+ /// **'Newest'**+ String get episodeListSortNewest;++ /// No description provided for @episodeListSortOldest.+ ///+ /// In en, this message translates to:+ /// **'Oldest'**+ String get episodeListSortOldest;++ /// No description provided for @episodeListAddedToAbsorbing.+ ///+ /// In en, this message translates to:+ /// **'Added \"{title}\" to Absorbing'**+ String episodeListAddedToAbsorbing(String title);++ /// No description provided for @episodeDetailEpisodeFallback.+ ///+ /// In en, this message translates to:+ /// **'Episode'**+ String get episodeDetailEpisodeFallback;++ /// No description provided for @episodeDetailMarkedNotFinished.+ ///+ /// In en, this message translates to:+ /// **'Marked as not finished'**+ String get episodeDetailMarkedNotFinished;++ /// No description provided for @episodeDetailMarkedFinishedNice.+ ///+ /// In en, this message translates to:+ /// **'Marked as finished - nice!'**+ String get episodeDetailMarkedFinishedNice;++ /// No description provided for @episodeDetailMarkAbsorbedContent.+ ///+ /// In en, this message translates to:+ /// **'This will set your progress to 100% for this episode.'**+ String get episodeDetailMarkAbsorbedContent;++ /// No description provided for @episodeDetailResetProgressContent.+ ///+ /// In en, this message translates to:+ /// **'This will erase all progress for this episode and set it back to the beginning. This can\'t be undone.'**+ String get episodeDetailResetProgressContent;++ /// No description provided for @episodeDetailToday.+ ///+ /// In en, this message translates to:+ /// **'Today'**+ String get episodeDetailToday;++ /// No description provided for @episodeDetailYesterday.+ ///+ /// In en, this message translates to:+ /// **'Yesterday'**+ String get episodeDetailYesterday;++ /// No description provided for @episodeDetailDaysAgo.+ ///+ /// In en, this message translates to:+ /// **'{count}d ago'**+ String episodeDetailDaysAgo(int count);++ /// No description provided for @episodeDetailWeeksAgo.+ ///+ /// In en, this message translates to:+ /// **'{count}w ago'**+ String episodeDetailWeeksAgo(int count);++ /// No description provided for @episodeDetailDurationHm.+ ///+ /// In en, this message translates to:+ /// **'{hours}h {minutes}m'**+ String episodeDetailDurationHm(int hours, int minutes);++ /// No description provided for @episodeDetailDurationM.+ ///+ /// In en, this message translates to:+ /// **'{minutes}m'**+ String episodeDetailDurationM(int minutes);++ /// No description provided for @episodeDetailResume.+ ///+ /// In en, this message translates to:+ /// **'Resume'**+ String get episodeDetailResume;++ /// No description provided for @episodeDetailPlayEpisode.+ ///+ /// In en, this message translates to:+ /// **'Play Episode'**+ String get episodeDetailPlayEpisode;++ /// No description provided for @episodeDetailEpisodeNumber.+ ///+ /// In en, this message translates to:+ /// **'Episode {number}'**+ String episodeDetailEpisodeNumber(String number);++ /// No description provided for @episodeDetailSeasonNumber.+ ///+ /// In en, this message translates to:+ /// **'Season {number}'**+ String episodeDetailSeasonNumber(String number);++ /// No description provided for @editMetadataUpdatedFromMatch.+ ///+ /// In en, this message translates to:+ /// **'Metadata updated from match'**+ String get editMetadataUpdatedFromMatch;++ /// No description provided for @editMetadataConfirmMatch.+ ///+ /// In en, this message translates to:+ /// **'This will update the server metadata for this book using:\n\n\"{title}\"\n\nAll fields and the cover will be overwritten on the server.'**+ String editMetadataConfirmMatch(String title);++ /// No description provided for @editMetadataConfirmMatchWithAuthor.+ ///+ /// In en, this message translates to:+ /// **'This will update the server metadata for this book using:\n\n\"{title}\" by {author}\n\nAll fields and the cover will be overwritten on the server.'**+ String editMetadataConfirmMatchWithAuthor(String title, String author);++ /// No description provided for @seriesBooksFindMissingTitle.+ ///+ /// In en, this message translates to:+ /// **'Find Missing Books'**+ String get seriesBooksFindMissingTitle;++ /// No description provided for @seriesBooksFindMissingContent.+ ///+ /// In en, this message translates to:+ /// **'This searches Audible to find books in this series that may be missing from your library.\n\nBooks are matched by ASIN first (depending on whether your server has ASINs for its books), then falls back to title matching. Results may not be perfectly accurate.'**+ String get seriesBooksFindMissingContent;++ /// No description provided for @seriesBooksCouldNotFindOnAudible.+ ///+ /// In en, this message translates to:+ /// **'Could not find this series on Audible'**+ String get seriesBooksCouldNotFindOnAudible;++ /// No description provided for @seriesBooksMarkAllNotFinishedContent.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{This will clear the finished status for the 1 book in this series.} other{This will clear the finished status for all {count} books in this series.}}'**+ String seriesBooksMarkAllNotFinishedContent(int count);++ /// No description provided for @seriesBooksFullyAbsorbContent.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{This will mark the 1 book in this series as finished.} other{This will mark all {count} books in this series as finished.}}'**+ String seriesBooksFullyAbsorbContent(int count);++ /// No description provided for @seriesBooksUnmarkAll.+ ///+ /// In en, this message translates to:+ /// **'Unmark All'**+ String get seriesBooksUnmarkAll;++ /// No description provided for @seriesBooksShowAllBooks.+ ///+ /// In en, this message translates to:+ /// **'Show all books'**+ String get seriesBooksShowAllBooks;++ /// No description provided for @seriesBooksGroupBySubSeries.+ ///+ /// In en, this message translates to:+ /// **'Group by sub-series'**+ String get seriesBooksGroupBySubSeries;++ /// No description provided for @seriesBooksLoadingSubSeries.+ ///+ /// In en, this message translates to:+ /// **'Loading sub-series...'**+ String get seriesBooksLoadingSubSeries;++ /// No description provided for @seriesBooksBookCount.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{1 book} other{{count} books}}'**+ String seriesBooksBookCount(int count);++ /// No description provided for @seriesBooksDone.+ ///+ /// In en, this message translates to:+ /// **'Done'**+ String get seriesBooksDone;++ /// No description provided for @seriesBooksExplicitBadge.+ ///+ /// In en, this message translates to:+ /// **'E'**+ String get seriesBooksExplicitBadge;++ /// No description provided for @expandedCardStreaming.+ ///+ /// In en, this message translates to:+ /// **'Streaming'**+ String get expandedCardStreaming;++ /// No description provided for @expandedCardDeviceFallback.+ ///+ /// In en, this message translates to:+ /// **'Device'**+ String get expandedCardDeviceFallback;++ /// No description provided for @bookmarksScreenPositionInBook.+ ///+ /// In en, this message translates to:+ /// **'{position} in {bookTitle}'**+ String bookmarksScreenPositionInBook(String position, String bookTitle);++ /// No description provided for @bookmarksScreenClose.+ ///+ /// In en, this message translates to:+ /// **'Close'**+ String get bookmarksScreenClose;++ /// No description provided for @bookmarksScreenSortNewest.+ ///+ /// In en, this message translates to:+ /// **'Newest'**+ String get bookmarksScreenSortNewest;++ /// No description provided for @bookmarksScreenSortPosition.+ ///+ /// In en, this message translates to:+ /// **'Position'**+ String get bookmarksScreenSortPosition;++ /// No description provided for @statsScreenStreakDays.+ ///+ /// In en, this message translates to:+ /// **'{count}d'**+ String statsScreenStreakDays(int count);++ /// No description provided for @statsScreenSessionCountOne.+ ///+ /// In en, this message translates to:+ /// **'{count} session'**+ String statsScreenSessionCountOne(int count);++ /// No description provided for @statsScreenSessionCountOther.+ ///+ /// In en, this message translates to:+ /// **'{count} sessions'**+ String statsScreenSessionCountOther(int count);++ /// No description provided for @statsScreenDayMon.+ ///+ /// In en, this message translates to:+ /// **'Mon'**+ String get statsScreenDayMon;++ /// No description provided for @statsScreenDayTue.+ ///+ /// In en, this message translates to:+ /// **'Tue'**+ String get statsScreenDayTue;++ /// No description provided for @statsScreenDayWed.+ ///+ /// In en, this message translates to:+ /// **'Wed'**+ String get statsScreenDayWed;++ /// No description provided for @statsScreenDayThu.+ ///+ /// In en, this message translates to:+ /// **'Thu'**+ String get statsScreenDayThu;++ /// No description provided for @statsScreenDayFri.+ ///+ /// In en, this message translates to:+ /// **'Fri'**+ String get statsScreenDayFri;++ /// No description provided for @statsScreenDaySat.+ ///+ /// In en, this message translates to:+ /// **'Sat'**+ String get statsScreenDaySat;++ /// No description provided for @statsScreenDaySun.+ ///+ /// In en, this message translates to:+ /// **'Sun'**+ String get statsScreenDaySun;++ /// No description provided for @statsScreenDurationHm.+ ///+ /// In en, this message translates to:+ /// **'{h}h {m}m'**+ String statsScreenDurationHm(int h, int m);++ /// No description provided for @statsScreenDurationM.+ ///+ /// In en, this message translates to:+ /// **'{m}m'**+ String statsScreenDurationM(int m);++ /// No description provided for @statsScreenDurationLessThanMin.+ ///+ /// In en, this message translates to:+ /// **'<1m'**+ String get statsScreenDurationLessThanMin;++ /// No description provided for @statsScreenDurationZero.+ ///+ /// In en, this message translates to:+ /// **'0m'**+ String get statsScreenDurationZero;++ /// No description provided for @statsScreenDurationShortH.+ ///+ /// In en, this message translates to:+ /// **'{h}h'**+ String statsScreenDurationShortH(int h);++ /// No description provided for @statsScreenDurationShortM.+ ///+ /// In en, this message translates to:+ /// **'{m}m'**+ String statsScreenDurationShortM(int m);++ /// No description provided for @statsScreenCouldNotLoadItem.+ ///+ /// In en, this message translates to:+ /// **'Could not load item'**+ String get statsScreenCouldNotLoadItem;++ /// No description provided for @statsScreenCouldNotFindEpisode.+ ///+ /// In en, this message translates to:+ /// **'Could not find episode'**+ String get statsScreenCouldNotFindEpisode;++ /// No description provided for @statsScreenByAuthor.+ ///+ /// In en, this message translates to:+ /// **'by {author}'**+ String statsScreenByAuthor(String author);++ /// No description provided for @statsScreenListened.+ ///+ /// In en, this message translates to:+ /// **'Listened'**+ String get statsScreenListened;++ /// No description provided for @statsScreenStartedAtPosition.+ ///+ /// In en, this message translates to:+ /// **'Started at position'**+ String get statsScreenStartedAtPosition;++ /// No description provided for @statsScreenEndedAtPosition.+ ///+ /// In en, this message translates to:+ /// **'Ended at position'**+ String get statsScreenEndedAtPosition;++ /// No description provided for @statsScreenTotalDuration.+ ///+ /// In en, this message translates to:+ /// **'Total duration'**+ String get statsScreenTotalDuration;++ /// No description provided for @statsScreenStarted.+ ///+ /// In en, this message translates to:+ /// **'Started'**+ String get statsScreenStarted;++ /// No description provided for @statsScreenUpdated.+ ///+ /// In en, this message translates to:+ /// **'Updated'**+ String get statsScreenUpdated;++ /// No description provided for @statsScreenClient.+ ///+ /// In en, this message translates to:+ /// **'Client'**+ String get statsScreenClient;++ /// No description provided for @statsScreenDevice.+ ///+ /// In en, this message translates to:+ /// **'Device'**+ String get statsScreenDevice;++ /// No description provided for @statsScreenOs.+ ///+ /// In en, this message translates to:+ /// **'OS'**+ String get statsScreenOs;++ /// No description provided for @statsScreenPlayMethod.+ ///+ /// In en, this message translates to:+ /// **'Play method'**+ String get statsScreenPlayMethod;++ /// No description provided for @statsScreenLoading.+ ///+ /// In en, this message translates to:+ /// **'Loading...'**+ String get statsScreenLoading;++ /// No description provided for @statsScreenJumpToSessionStart.+ ///+ /// In en, this message translates to:+ /// **'Jump to session start ({position})'**+ String statsScreenJumpToSessionStart(String position);++ /// No description provided for @statsScreenPlayMethodDirect.+ ///+ /// In en, this message translates to:+ /// **'Direct play'**+ String get statsScreenPlayMethodDirect;++ /// No description provided for @statsScreenPlayMethodDirectStream.+ ///+ /// In en, this message translates to:+ /// **'Direct stream'**+ String get statsScreenPlayMethodDirectStream;++ /// No description provided for @statsScreenPlayMethodTranscode.+ ///+ /// In en, this message translates to:+ /// **'Transcode'**+ String get statsScreenPlayMethodTranscode;++ /// No description provided for @statsScreenPlayMethodLocal.+ ///+ /// In en, this message translates to:+ /// **'Local'**+ String get statsScreenPlayMethodLocal;++ /// No description provided for @statsScreenAmLabel.+ ///+ /// In en, this message translates to:+ /// **'AM'**+ String get statsScreenAmLabel;++ /// No description provided for @statsScreenPmLabel.+ ///+ /// In en, this message translates to:+ /// **'PM'**+ String get statsScreenPmLabel;++ /// No description provided for @statsScreenDateAtTime.+ ///+ /// In en, this message translates to:+ /// **'{month} {day}, {year} at {hour}:{minute} {ampm}'**+ String statsScreenDateAtTime(+ String month, int day, int year, int hour, String minute, String ampm);++ /// No description provided for @statsScreenMonthJan.+ ///+ /// In en, this message translates to:+ /// **'Jan'**+ String get statsScreenMonthJan;++ /// No description provided for @statsScreenMonthFeb.+ ///+ /// In en, this message translates to:+ /// **'Feb'**+ String get statsScreenMonthFeb;++ /// No description provided for @statsScreenMonthMar.+ ///+ /// In en, this message translates to:+ /// **'Mar'**+ String get statsScreenMonthMar;++ /// No description provided for @statsScreenMonthApr.+ ///+ /// In en, this message translates to:+ /// **'Apr'**+ String get statsScreenMonthApr;++ /// No description provided for @statsScreenMonthMay.+ ///+ /// In en, this message translates to:+ /// **'May'**+ String get statsScreenMonthMay;++ /// No description provided for @statsScreenMonthJun.+ ///+ /// In en, this message translates to:+ /// **'Jun'**+ String get statsScreenMonthJun;++ /// No description provided for @statsScreenMonthJul.+ ///+ /// In en, this message translates to:+ /// **'Jul'**+ String get statsScreenMonthJul;++ /// No description provided for @statsScreenMonthAug.+ ///+ /// In en, this message translates to:+ /// **'Aug'**+ String get statsScreenMonthAug;++ /// No description provided for @statsScreenMonthSep.+ ///+ /// In en, this message translates to:+ /// **'Sep'**+ String get statsScreenMonthSep;++ /// No description provided for @statsScreenMonthOct.+ ///+ /// In en, this message translates to:+ /// **'Oct'**+ String get statsScreenMonthOct;++ /// No description provided for @statsScreenMonthNov.+ ///+ /// In en, this message translates to:+ /// **'Nov'**+ String get statsScreenMonthNov;++ /// No description provided for @statsScreenMonthDec.+ ///+ /// In en, this message translates to:+ /// **'Dec'**+ String get statsScreenMonthDec;++ /// No description provided for @upcomingReleasesTitle.+ ///+ /// In en, this message translates to:+ /// **'Upcoming Releases'**+ String get upcomingReleasesTitle;++ /// No description provided for @upcomingReleasesRescanTitle.+ ///+ /// In en, this message translates to:+ /// **'Rescan?'**+ String get upcomingReleasesRescanTitle;++ /// No description provided for @upcomingReleasesRescanContent.+ ///+ /// In en, this message translates to:+ /// **'These results are {days} days old. Release dates may have changed - would you like to rescan?'**+ String upcomingReleasesRescanContent(int days);++ /// No description provided for @upcomingReleasesNotNow.+ ///+ /// In en, this message translates to:+ /// **'Not now'**+ String get upcomingReleasesNotNow;++ /// No description provided for @upcomingReleasesRescan.+ ///+ /// In en, this message translates to:+ /// **'Rescan'**+ String get upcomingReleasesRescan;++ /// No description provided for @upcomingReleasesRescanReleaseDate.+ ///+ /// In en, this message translates to:+ /// **'Rescan Release Date'**+ String get upcomingReleasesRescanReleaseDate;++ /// No description provided for @upcomingReleasesRescanning.+ ///+ /// In en, this message translates to:+ /// **'Rescanning...'**+ String get upcomingReleasesRescanning;++ /// No description provided for @upcomingReleasesUpdatedWithDate.+ ///+ /// In en, this message translates to:+ /// **'Updated - {date}'**+ String upcomingReleasesUpdatedWithDate(String date);++ /// No description provided for @upcomingReleasesNoReleaseDateFound.+ ///+ /// In en, this message translates to:+ /// **'No release date found'**+ String get upcomingReleasesNoReleaseDateFound;++ /// No description provided for @upcomingReleasesRescanFailed.+ ///+ /// In en, this message translates to:+ /// **'Rescan failed'**+ String get upcomingReleasesRescanFailed;++ /// No description provided for @upcomingReleasesDateChip.+ ///+ /// In en, this message translates to:+ /// **'Date'**+ String get upcomingReleasesDateChip;++ /// No description provided for @upcomingReleasesCheckingSeries.+ ///+ /// In en, this message translates to:+ /// **'Checking {name}... ({processed}/{total})'**+ String upcomingReleasesCheckingSeries(String name, int processed, int total);++ /// No description provided for @upcomingReleasesLoadingSeries.+ ///+ /// In en, this message translates to:+ /// **'Loading series...'**+ String get upcomingReleasesLoadingSeries;++ /// No description provided for @upcomingReleasesScannedToday.+ ///+ /// In en, this message translates to:+ /// **'(scanned today)'**+ String get upcomingReleasesScannedToday;++ /// No description provided for @upcomingReleasesScannedYesterday.+ ///+ /// In en, this message translates to:+ /// **'(scanned yesterday)'**+ String get upcomingReleasesScannedYesterday;++ /// No description provided for @upcomingReleasesScannedDaysAgo.+ ///+ /// In en, this message translates to:+ /// **'(scanned {days} days ago)'**+ String upcomingReleasesScannedDaysAgo(int days);++ /// No description provided for @upcomingReleasesUpcomingCount.+ ///+ /// In en, this message translates to:+ /// **'{count} upcoming'**+ String upcomingReleasesUpcomingCount(int count);++ /// No description provided for @upcomingReleasesRecentCount.+ ///+ /// In en, this message translates to:+ /// **'{count} recent'**+ String upcomingReleasesRecentCount(int count);++ /// No description provided for @upcomingReleasesNoneFound.+ ///+ /// In en, this message translates to:+ /// **'No upcoming or recent releases found'**+ String get upcomingReleasesNoneFound;++ /// No description provided for @upcomingReleasesAcrossSeries.+ ///+ /// In en, this message translates to:+ /// **'{summary} across {count} series'**+ String upcomingReleasesAcrossSeries(String summary, int count);++ /// No description provided for @upcomingReleasesCheckedSeries.+ ///+ /// In en, this message translates to:+ /// **'Checked {count} series on Audible'**+ String upcomingReleasesCheckedSeries(int count);++ /// No description provided for @upcomingReleasesDateFormat.+ ///+ /// In en, this message translates to:+ /// **'{month} {day}, {year}'**+ String upcomingReleasesDateFormat(String month, int day, int year);++ /// No description provided for @upcomingReleasesSequenceLabel.+ ///+ /// In en, this message translates to:+ /// **'#{sequence}'**+ String upcomingReleasesSequenceLabel(String sequence);++ /// No description provided for @upcomingReleasesBadgeUpcoming.+ ///+ /// In en, this message translates to:+ /// **'UPCOMING'**+ String get upcomingReleasesBadgeUpcoming;++ /// No description provided for @upcomingReleasesBadgeAdded.+ ///+ /// In en, this message translates to:+ /// **'ADDED'**+ String get upcomingReleasesBadgeAdded;++ /// No description provided for @upcomingReleasesBadgeMissing.+ ///+ /// In en, this message translates to:+ /// **'MISSING'**+ String get upcomingReleasesBadgeMissing;++ /// No description provided for @homeScreenEpisodeFallback.+ ///+ /// In en, this message translates to:+ /// **'Episode'**+ String get homeScreenEpisodeFallback;++ /// No description provided for @libraryScreenUnknownTitle.+ ///+ /// In en, this message translates to:+ /// **'Unknown Title'**+ String get libraryScreenUnknownTitle;++ /// No description provided for @playlistDetailDefaultName.+ ///+ /// In en, this message translates to:+ /// **'Playlist'**+ String get playlistDetailDefaultName;++ /// No description provided for @playlistDetailItemCount.+ ///+ /// In en, this message translates to:+ /// **'{count} items'**+ String playlistDetailItemCount(int count);++ /// No description provided for @playlistDetailUnfinished.+ ///+ /// In en, this message translates to:+ /// **'Unfinished'**+ String get playlistDetailUnfinished;++ /// No description provided for @playlistDetailRemoveFromPlaylist.+ ///+ /// In en, this message translates to:+ /// **'Remove from playlist'**+ String get playlistDetailRemoveFromPlaylist;++ /// No description provided for @playlistDetailDone.+ ///+ /// In en, this message translates to:+ /// **'Done'**+ String get playlistDetailDone;++ /// No description provided for @playlistDetailItemsMarkedFinished.+ ///+ /// In en, this message translates to:+ /// **'{count} items marked finished'**+ String playlistDetailItemsMarkedFinished(int count);++ /// No description provided for @playlistDetailItemsMarkedUnfinished.+ ///+ /// In en, this message translates to:+ /// **'{count} items marked unfinished'**+ String playlistDetailItemsMarkedUnfinished(int count);++ /// No description provided for @playlistDetailItemsRemoved.+ ///+ /// In en, this message translates to:+ /// **'{count} items removed'**+ String playlistDetailItemsRemoved(int count);++ /// No description provided for @playlistDetailAddedToAbsorbing.+ ///+ /// In en, this message translates to:+ /// **'Added \"{title}\" to Absorbing'**+ String playlistDetailAddedToAbsorbing(String title);++ /// No description provided for @collectionDetailDefaultName.+ ///+ /// In en, this message translates to:+ /// **'Collection'**+ String get collectionDetailDefaultName;++ /// No description provided for @collectionDetailBookCount.+ ///+ /// In en, this message translates to:+ /// **'{count} books'**+ String collectionDetailBookCount(int count);++ /// No description provided for @collectionDetailDone.+ ///+ /// In en, this message translates to:+ /// **'Done'**+ String get collectionDetailDone;++ /// No description provided for @collectionDetailAddedToAbsorbing.+ ///+ /// In en, this message translates to:+ /// **'Added \"{title}\" to Absorbing'**+ String collectionDetailAddedToAbsorbing(String title);++ /// No description provided for @audibleSeriesNoBooksFound.+ ///+ /// In en, this message translates to:+ /// **'No books found on Audible'**+ String get audibleSeriesNoBooksFound;++ /// No description provided for @audibleSeriesFailedToLoad.+ ///+ /// In en, this message translates to:+ /// **'Failed to load series from Audible'**+ String get audibleSeriesFailedToLoad;++ /// No description provided for @audibleSeriesSummary.+ ///+ /// In en, this message translates to:+ /// **'{total} on Audible · {missing} missing'**+ String audibleSeriesSummary(int total, int missing);++ /// No description provided for @audibleSeriesSummaryWithUpcoming.+ ///+ /// In en, this message translates to:+ /// **'{total} on Audible · {missing} missing · {upcoming} upcoming'**+ String audibleSeriesSummaryWithUpcoming(int total, int missing, int upcoming);++ /// No description provided for @audibleSeriesFilterMissing.+ ///+ /// In en, this message translates to:+ /// **'Missing ({count})'**+ String audibleSeriesFilterMissing(int count);++ /// No description provided for @audibleSeriesFilterUpcoming.+ ///+ /// In en, this message translates to:+ /// **'Upcoming ({count})'**+ String audibleSeriesFilterUpcoming(int count);++ /// No description provided for @audibleSeriesFilterAll.+ ///+ /// In en, this message translates to:+ /// **'All ({count})'**+ String audibleSeriesFilterAll(int count);++ /// No description provided for @audibleSeriesSearching.+ ///+ /// In en, this message translates to:+ /// **'Searching Audible...'**+ String get audibleSeriesSearching;++ /// No description provided for @audibleSeriesCompleteSeries.+ ///+ /// In en, this message translates to:+ /// **'You have the complete series!'**+ String get audibleSeriesCompleteSeries;++ /// No description provided for @audibleSeriesNoUpcoming.+ ///+ /// In en, this message translates to:+ /// **'No upcoming releases found'**+ String get audibleSeriesNoUpcoming;++ /// No description provided for @audibleSeriesUpcomingBadge.+ ///+ /// In en, this message translates to:+ /// **'UPCOMING'**+ String get audibleSeriesUpcomingBadge;++ /// No description provided for @audibleSeriesAbridged.+ ///+ /// In en, this message translates to:+ /// **'Abridged'**+ String get audibleSeriesAbridged;++ /// No description provided for @audibleSeriesRegionTitle.+ ///+ /// In en, this message translates to:+ /// **'Audible Region'**+ String get audibleSeriesRegionTitle;++ /// No description provided for @audibleSeriesOpenOnAudible.+ ///+ /// In en, this message translates to:+ /// **'Open on Audible'**+ String get audibleSeriesOpenOnAudible;++ /// No description provided for @audibleSeriesAddToCalendar.+ ///+ /// In en, this message translates to:+ /// **'Add to Calendar'**+ String get audibleSeriesAddToCalendar;++ /// No description provided for @audibleSeriesCouldNotOpenAudible.+ ///+ /// In en, this message translates to:+ /// **'Could not open Audible'**+ String get audibleSeriesCouldNotOpenAudible;++ /// No description provided for @audibleSeriesCouldNotOpenCalendar.+ ///+ /// In en, this message translates to:+ /// **'Could not open calendar'**+ String get audibleSeriesCouldNotOpenCalendar;++ /// No description provided for @audibleSeriesCalendarDescription.+ ///+ /// In en, this message translates to:+ /// **'New audiobook release in the {seriesName} series'**+ String audibleSeriesCalendarDescription(String seriesName);++ /// No description provided for @authorBooksGroupBySeries.+ ///+ /// In en, this message translates to:+ /// **'Group by series'**+ String get authorBooksGroupBySeries;++ /// No description provided for @authorBooksList.+ ///+ /// In en, this message translates to:+ /// **'List'**+ String get authorBooksList;++ /// No description provided for @authorBooksGrid.+ ///+ /// In en, this message translates to:+ /// **'Grid'**+ String get authorBooksGrid;++ /// No description provided for @authorBooksBookCount.+ ///+ /// In en, this message translates to:+ /// **'{count} books'**+ String authorBooksBookCount(int count);++ /// No description provided for @metadataLookupCover.+ ///+ /// In en, this message translates to:+ /// **'Cover'**+ String get metadataLookupCover;++ /// No description provided for @metadataLookupChooseFields.+ ///+ /// In en, this message translates to:+ /// **'Choose Fields to Apply'**+ String get metadataLookupChooseFields;++ /// No description provided for @metadataLookupApplyFields.+ ///+ /// In en, this message translates to:+ /// **'Apply {count} fields'**+ String metadataLookupApplyFields(int count);++ /// No description provided for @metadataLookupFieldsSavedLocally.+ ///+ /// In en, this message translates to:+ /// **'{count} fields saved locally'**+ String metadataLookupFieldsSavedLocally(int count);++ /// No description provided for @metadataLookupOverrideLocalDisplay.+ ///+ /// In en, this message translates to:+ /// **'Override local display'**+ String get metadataLookupOverrideLocalDisplay;++ /// No description provided for @equalizerPresetFlat.+ ///+ /// In en, this message translates to:+ /// **'Flat'**+ String get equalizerPresetFlat;++ /// No description provided for @equalizerPresetVoiceBoost.+ ///+ /// In en, this message translates to:+ /// **'Voice Boost'**+ String get equalizerPresetVoiceBoost;++ /// No description provided for @equalizerPresetBassBoost.+ ///+ /// In en, this message translates to:+ /// **'Bass Boost'**+ String get equalizerPresetBassBoost;++ /// No description provided for @equalizerPresetTrebleBoost.+ ///+ /// In en, this message translates to:+ /// **'Treble Boost'**+ String get equalizerPresetTrebleBoost;++ /// No description provided for @equalizerPresetPodcast.+ ///+ /// In en, this message translates to:+ /// **'Podcast'**+ String get equalizerPresetPodcast;++ /// No description provided for @equalizerPresetAudiobook.+ ///+ /// In en, this message translates to:+ /// **'Audiobook'**+ String get equalizerPresetAudiobook;++ /// No description provided for @equalizerPresetReduceNoise.+ ///+ /// In en, this message translates to:+ /// **'Reduce Noise'**+ String get equalizerPresetReduceNoise;++ /// No description provided for @equalizerPresetLoudness.+ ///+ /// In en, this message translates to:+ /// **'Loudness'**+ String get equalizerPresetLoudness;++ /// No description provided for @equalizerEditingSavedNamed.+ ///+ /// In en, this message translates to:+ /// **'Editing saved EQ for \"{title}\"'**+ String equalizerEditingSavedNamed(String title);++ /// No description provided for @equalizerEditingSavedGeneric.+ ///+ /// In en, this message translates to:+ /// **'Editing saved EQ'**+ String get equalizerEditingSavedGeneric;++ /// No description provided for @equalizerPerBookEq.+ ///+ /// In en, this message translates to:+ /// **'Per-book EQ'**+ String get equalizerPerBookEq;++ /// No description provided for @notesDeleteNoteQuestion.+ ///+ /// In en, this message translates to:+ /// **'Delete note?'**+ String get notesDeleteNoteQuestion;++ /// No description provided for @notesDeleteNoteContent.+ ///+ /// In en, this message translates to:+ /// **'Delete \"{title}\"?'**+ String notesDeleteNoteContent(String title);++ /// No description provided for @notesExport.+ ///+ /// In en, this message translates to:+ /// **'Export'**+ String get notesExport;++ /// No description provided for @notesNewNote.+ ///+ /// In en, this message translates to:+ /// **'New note'**+ String get notesNewNote;++ /// No description provided for @librarySortFilterUpcomingReleases.+ ///+ /// In en, this message translates to:+ /// **'Upcoming Releases'**+ String get librarySortFilterUpcomingReleases;++ /// No description provided for @librarySortFilterUpcomingReleasesSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Scan Audible for new releases in your series'**+ String get librarySortFilterUpcomingReleasesSubtitle;++ /// No description provided for @sleepTimerSheetChaptersLeft.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{1 chapter left} other{{count} chapters left}}'**+ String sleepTimerSheetChaptersLeft(int count);++ /// No description provided for @sleepTimerSheetAddMinutesChip.+ ///+ /// In en, this message translates to:+ /// **'+{minutes}m'**+ String sleepTimerSheetAddMinutesChip(int minutes);++ /// No description provided for @sleepTimerSheetAddChaptersChip.+ ///+ /// In en, this message translates to:+ /// **'+{count} ch'**+ String sleepTimerSheetAddChaptersChip(int count);++ /// No description provided for @sleepTimerSheetMinShort.+ ///+ /// In en, this message translates to:+ /// **'{minutes}m'**+ String sleepTimerSheetMinShort(int minutes);++ /// No description provided for @sleepTimerSheetSecondsShort.+ ///+ /// In en, this message translates to:+ /// **'{seconds}s'**+ String sleepTimerSheetSecondsShort(int seconds);++ /// No description provided for @sleepTimerSheetMinSecShort.+ ///+ /// In en, this message translates to:+ /// **'{minutes}m {seconds}s'**+ String sleepTimerSheetMinSecShort(int minutes, int seconds);++ /// No description provided for @sleepTimerSheetChaptersValue.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{1 chapter} other{{count} chapters}}'**+ String sleepTimerSheetChaptersValue(int count);++ /// No description provided for @sleepTimerSheetChaptersChip.+ ///+ /// In en, this message translates to:+ /// **'{count} ch'**+ String sleepTimerSheetChaptersChip(int count);++ /// No description provided for @sleepTimerSheetStartChapterSleep.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{Sleep after 1 chapter} other{Sleep after {count} chapters}}'**+ String sleepTimerSheetStartChapterSleep(int count);++ /// No description provided for @sleepTimerSheetRewindOnSleep.+ ///+ /// In en, this message translates to:+ /// **'Rewind on sleep'**+ String get sleepTimerSheetRewindOnSleep;++ /// No description provided for @sleepTimerSheetShake.+ ///+ /// In en, this message translates to:+ /// **'Shake'**+ String get sleepTimerSheetShake;++ /// No description provided for @sleepTimerSheetAddsMinutes.+ ///+ /// In en, this message translates to:+ /// **'Adds {minutes} min'**+ String sleepTimerSheetAddsMinutes(int minutes);++ /// No description provided for @sleepTimerSheetAddsOneChapter.+ ///+ /// In en, this message translates to:+ /// **'Adds 1 chapter'**+ String get sleepTimerSheetAddsOneChapter;++ /// No description provided for @sleepTimerSheetResetsToFull.+ ///+ /// In en, this message translates to:+ /// **'Resets to full duration'**+ String get sleepTimerSheetResetsToFull;++ /// No description provided for @collectionPickerCollectionFallback.+ ///+ /// In en, this message translates to:+ /// **'Collection'**+ String get collectionPickerCollectionFallback;++ /// No description provided for @collectionPickerNameWithCount.+ ///+ /// In en, this message translates to:+ /// **'{name} ({count})'**+ String collectionPickerNameWithCount(String name, int count);++ /// No description provided for @playlistPickerPlaylistFallback.+ ///+ /// In en, this message translates to:+ /// **'Playlist'**+ String get playlistPickerPlaylistFallback;++ /// No description provided for @playlistPickerNameWithCount.+ ///+ /// In en, this message translates to:+ /// **'{name} ({count})'**+ String playlistPickerNameWithCount(String name, int count);++ /// No description provided for @cardChaptersPlayFromChapterTitle.+ ///+ /// In en, this message translates to:+ /// **'Play from chapter?'**+ String get cardChaptersPlayFromChapterTitle;++ /// No description provided for @cardChaptersPlayFromChapterContent.+ ///+ /// In en, this message translates to:+ /// **'Start playing from \"{title}\"?'**+ String cardChaptersPlayFromChapterContent(String title);++ /// No description provided for @cardChaptersPlay.+ ///+ /// In en, this message translates to:+ /// **'Play'**+ String get cardChaptersPlay;++ /// No description provided for @absorbingSharedToday.+ ///+ /// In en, this message translates to:+ /// **'Today'**+ String get absorbingSharedToday;++ /// No description provided for @absorbingSharedYesterday.+ ///+ /// In en, this message translates to:+ /// **'Yesterday'**+ String get absorbingSharedYesterday;++ /// No description provided for @absorbingSharedMonday.+ ///+ /// In en, this message translates to:+ /// **'Monday'**+ String get absorbingSharedMonday;++ /// No description provided for @absorbingSharedTuesday.+ ///+ /// In en, this message translates to:+ /// **'Tuesday'**+ String get absorbingSharedTuesday;++ /// No description provided for @absorbingSharedWednesday.+ ///+ /// In en, this message translates to:+ /// **'Wednesday'**+ String get absorbingSharedWednesday;++ /// No description provided for @absorbingSharedThursday.+ ///+ /// In en, this message translates to:+ /// **'Thursday'**+ String get absorbingSharedThursday;++ /// No description provided for @absorbingSharedFriday.+ ///+ /// In en, this message translates to:+ /// **'Friday'**+ String get absorbingSharedFriday;++ /// No description provided for @absorbingSharedSaturday.+ ///+ /// In en, this message translates to:+ /// **'Saturday'**+ String get absorbingSharedSaturday;++ /// No description provided for @absorbingSharedSunday.+ ///+ /// In en, this message translates to:+ /// **'Sunday'**+ String get absorbingSharedSunday;++ /// No description provided for @absorbingSharedAm.+ ///+ /// In en, this message translates to:+ /// **'AM'**+ String get absorbingSharedAm;++ /// No description provided for @absorbingSharedPm.+ ///+ /// In en, this message translates to:+ /// **'PM'**+ String get absorbingSharedPm;++ /// No description provided for @sectionDetailAddedToAbsorbing.+ ///+ /// In en, this message translates to:+ /// **'Added \"{title}\" to Absorbing'**+ String sectionDetailAddedToAbsorbing(String title);++ /// No description provided for @sectionDetailDoneBadge.+ ///+ /// In en, this message translates to:+ /// **'Done'**+ String get sectionDetailDoneBadge;++ /// No description provided for @homeCustomizeAddGenreTitle.+ ///+ /// In en, this message translates to:+ /// **'Add Genre Section'**+ String get homeCustomizeAddGenreTitle;++ /// No description provided for @homeCustomizeAddGenreSubtitle.+ ///+ /// In en, this message translates to:+ /// **'Pick a genre to show on your home screen'**+ String get homeCustomizeAddGenreSubtitle;++ /// No description provided for @homeSectionDoneBadge.+ ///+ /// In en, this message translates to:+ /// **'Done'**+ String get homeSectionDoneBadge;++ /// No description provided for @tipsSheetQuickBookmarksTitle.+ ///+ /// In en, this message translates to:+ /// **'Quick Bookmarks'**+ String get tipsSheetQuickBookmarksTitle;++ /// No description provided for @tipsSheetQuickBookmarksDesc.+ ///+ /// In en, this message translates to:+ /// **'Long-press the bookmark button on any card to instantly drop a bookmark at your current position without opening the bookmark sheet.'**+ String get tipsSheetQuickBookmarksDesc;++ /// No description provided for @tipsSheetEditBookmarksTitle.+ ///+ /// In en, this message translates to:+ /// **'Edit Bookmarks'**+ String get tipsSheetEditBookmarksTitle;++ /// No description provided for @tipsSheetEditBookmarksDesc.+ ///+ /// In en, this message translates to:+ /// **'Long-press any bookmark in the bookmark sheet to edit its title and add notes.'**+ String get tipsSheetEditBookmarksDesc;++ /// No description provided for @tipsSheetCoverPlayPauseTitle.+ ///+ /// In en, this message translates to:+ /// **'Cover Play/Pause'**+ String get tipsSheetCoverPlayPauseTitle;++ /// No description provided for @tipsSheetCoverPlayPauseDesc.+ ///+ /// In en, this message translates to:+ /// **'Tap the cover art on any card to play or pause. Toggle this in Settings under Absorbing Cards. A faint pause icon shows when playing so you know it\'s tappable.'**+ String get tipsSheetCoverPlayPauseDesc;++ /// No description provided for @tipsSheetFullScreenPlayerTitle.+ ///+ /// In en, this message translates to:+ /// **'Full Screen Player'**+ String get tipsSheetFullScreenPlayerTitle;++ /// No description provided for @tipsSheetFullScreenPlayerDesc.+ ///+ /// In en, this message translates to:+ /// **'Swipe up on any absorbing card to open the full screen player. Swipe down to dismiss it.'**+ String get tipsSheetFullScreenPlayerDesc;++ /// No description provided for @tipsSheetQuickAddAbsorbingTitle.+ ///+ /// In en, this message translates to:+ /// **'Quick Add to Absorbing'**+ String get tipsSheetQuickAddAbsorbingTitle;++ /// No description provided for @tipsSheetQuickAddAbsorbingDesc.+ ///+ /// In en, this message translates to:+ /// **'Swipe right on any book in a list sheet (series, author, search results) to instantly add it to your absorbing queue.'**+ String get tipsSheetQuickAddAbsorbingDesc;++ /// No description provided for @tipsSheetShakeExtendSleepTitle.+ ///+ /// In en, this message translates to:+ /// **'Shake to Extend Sleep'**+ String get tipsSheetShakeExtendSleepTitle;++ /// No description provided for @tipsSheetShakeExtendSleepDesc.+ ///+ /// In en, this message translates to:+ /// **'If you have a sleep timer running and shake your phone, it\'ll add extra minutes. Configure the amount in Settings under Sleep Timer.'**+ String get tipsSheetShakeExtendSleepDesc;++ /// No description provided for @tipsSheetSeriesNavigationTitle.+ ///+ /// In en, this message translates to:+ /// **'Series Navigation'**+ String get tipsSheetSeriesNavigationTitle;++ /// No description provided for @tipsSheetSeriesNavigationDesc.+ ///+ /// In en, this message translates to:+ /// **'Tap the series name in any book\'s detail popup to see all books in the series, sorted in reading order with sequence badges on each cover.'**+ String get tipsSheetSeriesNavigationDesc;++ /// No description provided for @tipsSheetSwipeBetweenBooksTitle.+ ///+ /// In en, this message translates to:+ /// **'Swipe Between Books'**+ String get tipsSheetSwipeBetweenBooksTitle;++ /// No description provided for @tipsSheetSwipeBetweenBooksDesc.+ ///+ /// In en, this message translates to:+ /// **'On the Absorbing screen, swipe left and right to switch between your in-progress books. The dots at the top show which book you\'re viewing.'**+ String get tipsSheetSwipeBetweenBooksDesc;++ /// No description provided for @tipsSheetTapToSeekTitle.+ ///+ /// In en, this message translates to:+ /// **'Tap to Seek'**+ String get tipsSheetTapToSeekTitle;++ /// No description provided for @tipsSheetTapToSeekDesc.+ ///+ /// In en, this message translates to:+ /// **'Tap anywhere on the chapter or book progress bar to jump directly to that position. You can also drag the bars for fine-grained control.'**+ String get tipsSheetTapToSeekDesc;++ /// No description provided for @tipsSheetSpeedAdjustedTimeTitle.+ ///+ /// In en, this message translates to:+ /// **'Speed-Adjusted Time'**+ String get tipsSheetSpeedAdjustedTimeTitle;++ /// No description provided for @tipsSheetSpeedAdjustedTimeDesc.+ ///+ /// In en, this message translates to:+ /// **'Time remaining and chapter times automatically adjust based on your playback speed. Listening at 1.5x? The time shown reflects how long it\'ll actually take you.'**+ String get tipsSheetSpeedAdjustedTimeDesc;++ /// No description provided for @tipsSheetPlaybackHistoryTitle.+ ///+ /// In en, this message translates to:+ /// **'Playback History'**+ String get tipsSheetPlaybackHistoryTitle;++ /// No description provided for @tipsSheetPlaybackHistoryDesc.+ ///+ /// In en, this message translates to:+ /// **'Tap the History button on any card to see a timeline of every play, pause, seek, and speed change. Tap any event to jump back to that position.'**+ String get tipsSheetPlaybackHistoryDesc;++ /// No description provided for @tipsSheetAutoRewindTitle.+ ///+ /// In en, this message translates to:+ /// **'Auto-Rewind'**+ String get tipsSheetAutoRewindTitle;++ /// No description provided for @tipsSheetAutoRewindDesc.+ ///+ /// In en, this message translates to:+ /// **'When you resume after a pause, Absorb automatically rewinds a few seconds so you don\'t lose your place. The rewind amount scales with how long you were away. Configure it in Settings.'**+ String get tipsSheetAutoRewindDesc;++ /// No description provided for @tipsSheetSeriesQueueModeTitle.+ ///+ /// In en, this message translates to:+ /// **'Series Queue Mode'**+ String get tipsSheetSeriesQueueModeTitle;++ /// No description provided for @tipsSheetSeriesQueueModeDesc.+ ///+ /// In en, this message translates to:+ /// **'When you finish a book that\'s part of a series, Absorb can automatically play the next book. Set queue mode to \"Series\" in Settings.'**+ String get tipsSheetSeriesQueueModeDesc;++ /// No description provided for @tipsSheetOfflineModeTitle.+ ///+ /// In en, this message translates to:+ /// **'Offline Mode'**+ String get tipsSheetOfflineModeTitle;++ /// No description provided for @tipsSheetOfflineModeDesc.+ ///+ /// In en, this message translates to:+ /// **'Tap the airplane button on the Absorbing screen to enter offline mode. This stops syncing, saves data, and only shows your downloaded books. Great for flights or low signal areas.'**+ String get tipsSheetOfflineModeDesc;++ /// No description provided for @tipsSheetStopPlaybackTitle.+ ///+ /// In en, this message translates to:+ /// **'Stop Playback'**+ String get tipsSheetStopPlaybackTitle;++ /// No description provided for @tipsSheetStopPlaybackDesc.+ ///+ /// In en, this message translates to:+ /// **'The Stop button in the Absorbing header ends your listening session and saves your progress. Your progress syncs automatically in the background.'**+ String get tipsSheetStopPlaybackDesc;++ /// No description provided for @tipsSheetDownloadOfflineTitle.+ ///+ /// In en, this message translates to:+ /// **'Download for Offline'**+ String get tipsSheetDownloadOfflineTitle;++ /// No description provided for @tipsSheetDownloadOfflineDesc.+ ///+ /// In en, this message translates to:+ /// **'Tap the download button in any book\'s detail popup to save it for offline listening. Downloaded books are available in offline mode without any internet connection.'**+ String get tipsSheetDownloadOfflineDesc;++ /// No description provided for @tipsSheetCustomizeHomeTitle.+ ///+ /// In en, this message translates to:+ /// **'Customize Home'**+ String get tipsSheetCustomizeHomeTitle;++ /// No description provided for @tipsSheetCustomizeHomeDesc.+ ///+ /// In en, this message translates to:+ /// **'Tap the edit button in the top right of the Home screen to rearrange, hide, or show sections. Drag sections into your preferred order.'**+ String get tipsSheetCustomizeHomeDesc;++ /// No description provided for @tipsSheetPlaylistsTitle.+ ///+ /// In en, this message translates to:+ /// **'Playlists'**+ String get tipsSheetPlaylistsTitle;++ /// No description provided for @tipsSheetPlaylistsDesc.+ ///+ /// In en, this message translates to:+ /// **'Create and manage playlists on your Audiobookshelf server and they\'ll appear as sections on your Home screen. Add books to playlists from any book\'s detail popup.'**+ String get tipsSheetPlaylistsDesc;++ /// No description provided for @tipsSheetCollectionsTitle.+ ///+ /// In en, this message translates to:+ /// **'Collections'**+ String get tipsSheetCollectionsTitle;++ /// No description provided for @tipsSheetCollectionsDesc.+ ///+ /// In en, this message translates to:+ /// **'Collections group related books together and show up as Home sections. Root admins can add books and edit collections from the detail popup.'**+ String get tipsSheetCollectionsDesc;++ /// No description provided for @bookCardUnknownTitle.+ ///+ /// In en, this message translates to:+ /// **'Unknown Title'**+ String get bookCardUnknownTitle;++ /// No description provided for @bookCardExplicitBadge.+ ///+ /// In en, this message translates to:+ /// **'E'**+ String get bookCardExplicitBadge;++ /// No description provided for @bookCardDone.+ ///+ /// In en, this message translates to:+ /// **'Done'**+ String get bookCardDone;++ /// No description provided for @bookCardSaved.+ ///+ /// In en, this message translates to:+ /// **'Saved'**+ String get bookCardSaved;++ /// No description provided for @episodeRowEpisode.+ ///+ /// In en, this message translates to:+ /// **'Episode'**+ String get episodeRowEpisode;++ /// No description provided for @episodeRowToday.+ ///+ /// In en, this message translates to:+ /// **'Today'**+ String get episodeRowToday;++ /// No description provided for @episodeRowYesterday.+ ///+ /// In en, this message translates to:+ /// **'Yesterday'**+ String get episodeRowYesterday;++ /// No description provided for @episodeRowDaysAgo.+ ///+ /// In en, this message translates to:+ /// **'{count}d ago'**+ String episodeRowDaysAgo(int count);++ /// No description provided for @episodeRowWeeksAgo.+ ///+ /// In en, this message translates to:+ /// **'{count}w ago'**+ String episodeRowWeeksAgo(int count);++ /// No description provided for @episodeRowDurationHm.+ ///+ /// In en, this message translates to:+ /// **'{hours}h {minutes}m'**+ String episodeRowDurationHm(int hours, int minutes);++ /// No description provided for @episodeRowDurationM.+ ///+ /// In en, this message translates to:+ /// **'{minutes}m'**+ String episodeRowDurationM(int minutes);++ /// No description provided for @episodeRowSeasonShort.+ ///+ /// In en, this message translates to:+ /// **'S{number}'**+ String episodeRowSeasonShort(String number);++ /// No description provided for @episodeRowEpisodeShort.+ ///+ /// In en, this message translates to:+ /// **'E{number}'**+ String episodeRowEpisodeShort(String number);++ /// No description provided for @librarySearchResultsExplicitBadge.+ ///+ /// In en, this message translates to:+ /// **'E'**+ String get librarySearchResultsExplicitBadge;++ /// No description provided for @librarySearchResultsDone.+ ///+ /// In en, this message translates to:+ /// **'Done'**+ String get librarySearchResultsDone;++ /// No description provided for @librarySearchResultsSaved.+ ///+ /// In en, this message translates to:+ /// **'Saved'**+ String get librarySearchResultsSaved;++ /// No description provided for @librarySearchResultsSequence.+ ///+ /// In en, this message translates to:+ /// **'#{number}'**+ String librarySearchResultsSequence(String number);++ /// No description provided for @librarySearchResultsUnknownSeries.+ ///+ /// In en, this message translates to:+ /// **'Unknown Series'**+ String get librarySearchResultsUnknownSeries;++ /// No description provided for @librarySearchResultsUnknownEpisode.+ ///+ /// In en, this message translates to:+ /// **'Unknown Episode'**+ String get librarySearchResultsUnknownEpisode;++ /// No description provided for @librarySearchResultsBookCount.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{1 book} other{{count} books}}'**+ String librarySearchResultsBookCount(int count);++ /// No description provided for @libraryGridTilesExplicitBadge.+ ///+ /// In en, this message translates to:+ /// **'E'**+ String get libraryGridTilesExplicitBadge;++ /// No description provided for @libraryGridTilesDone.+ ///+ /// In en, this message translates to:+ /// **'Done'**+ String get libraryGridTilesDone;++ /// No description provided for @libraryGridTilesSaved.+ ///+ /// In en, this message translates to:+ /// **'Saved'**+ String get libraryGridTilesSaved;++ /// No description provided for @libraryGridTilesSequence.+ ///+ /// In en, this message translates to:+ /// **'#{number}'**+ String libraryGridTilesSequence(String number);++ /// No description provided for @libraryGridTilesUnknownSeries.+ ///+ /// In en, this message translates to:+ /// **'Unknown Series'**+ String get libraryGridTilesUnknownSeries;++ /// No description provided for @seriesCardUnknownSeries.+ ///+ /// In en, this message translates to:+ /// **'Unknown Series'**+ String get seriesCardUnknownSeries;++ /// No description provided for @seriesCardBookCount.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{1 book} other{{count} books}}'**+ String seriesCardBookCount(int count);++ /// No description provided for @cardProgressFineScrubbing.+ ///+ /// In en, this message translates to:+ /// **'Fine Scrubbing'**+ String get cardProgressFineScrubbing;++ /// No description provided for @cardProgressQuarterSpeed.+ ///+ /// In en, this message translates to:+ /// **'Quarter Speed'**+ String get cardProgressQuarterSpeed;++ /// No description provided for @cardProgressHalfSpeed.+ ///+ /// In en, this message translates to:+ /// **'Half Speed'**+ String get cardProgressHalfSpeed;++ /// No description provided for @cardProgressChapterPrefix.+ ///+ /// In en, this message translates to:+ /// **'Chapter {number}'**+ String cardProgressChapterPrefix(String number);++ /// No description provided for @cardEdgeProgressFineScrubbing.+ ///+ /// In en, this message translates to:+ /// **'Fine Scrubbing'**+ String get cardEdgeProgressFineScrubbing;++ /// No description provided for @cardEdgeProgressQuarterSpeed.+ ///+ /// In en, this message translates to:+ /// **'Quarter Speed'**+ String get cardEdgeProgressQuarterSpeed;++ /// No description provided for @cardEdgeProgressHalfSpeed.+ ///+ /// In en, this message translates to:+ /// **'Half Speed'**+ String get cardEdgeProgressHalfSpeed;++ /// No description provided for @authSessionExpired.+ ///+ /// In en, this message translates to:+ /// **'Session expired. Please log in again.'**+ String get authSessionExpired;++ /// No description provided for @authCannotReachServer.+ ///+ /// In en, this message translates to:+ /// **'Cannot reach server at {url}'**+ String authCannotReachServer(String url);++ /// No description provided for @authInvalidUsernameOrPassword.+ ///+ /// In en, this message translates to:+ /// **'Invalid username or password'**+ String get authInvalidUsernameOrPassword;++ /// No description provided for @authLoginFailedDetail.+ ///+ /// In en, this message translates to:+ /// **'Login failed - check your server address and credentials'**+ String get authLoginFailedDetail;++ /// No description provided for @authUnexpectedServerResponse.+ ///+ /// In en, this message translates to:+ /// **'Unexpected server response'**+ String get authUnexpectedServerResponse;++ /// No description provided for @authSsoUnexpectedResponse.+ ///+ /// In en, this message translates to:+ /// **'SSO returned an unexpected response'**+ String get authSsoUnexpectedResponse;++ /// No description provided for @authSwitchedToLocalServer.+ ///+ /// In en, this message translates to:+ /// **'Switched to local server'**+ String get authSwitchedToLocalServer;++ /// No description provided for @authSwitchedToRemoteServer.+ ///+ /// In en, this message translates to:+ /// **'Switched to remote server'**+ String get authSwitchedToRemoteServer;++ /// No description provided for @lpDeletedFinishedDownload.+ ///+ /// In en, this message translates to:+ /// **'Deleted finished download'**+ String get lpDeletedFinishedDownload;++ /// No description provided for @lpSubscribedPodcastDownloading.+ ///+ /// In en, this message translates to:+ /// **'{showTitle}: {count, plural, =1{1 new episode downloading} other{{count} new episodes downloading}}'**+ String lpSubscribedPodcastDownloading(String showTitle, int count);++ /// No description provided for @lpQueueDownloadingItems.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{Queue: downloading 1 item} other{Queue: downloading {count} items}}'**+ String lpQueueDownloadingItems(int count);++ /// No description provided for @lpDownloadingBooks.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{Downloading 1 book} other{Downloading {count} books}}'**+ String lpDownloadingBooks(int count);++ /// No description provided for @lpDownloadingEpisodes.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{Downloading 1 episode} other{Downloading {count} episodes}}'**+ String lpDownloadingEpisodes(int count);++ /// No description provided for @downloadNotifProgressChannelName.+ ///+ /// In en, this message translates to:+ /// **'Download Progress'**+ String get downloadNotifProgressChannelName;++ /// No description provided for @downloadNotifProgressChannelDesc.+ ///+ /// In en, this message translates to:+ /// **'Shows progress during audiobook downloads'**+ String get downloadNotifProgressChannelDesc;++ /// No description provided for @downloadNotifAlertChannelName.+ ///+ /// In en, this message translates to:+ /// **'Download Alerts'**+ String get downloadNotifAlertChannelName;++ /// No description provided for @downloadNotifAlertChannelDesc.+ ///+ /// In en, this message translates to:+ /// **'Notifications when downloads finish or fail'**+ String get downloadNotifAlertChannelDesc;++ /// No description provided for @downloadNotifDownloadingTitle.+ ///+ /// In en, this message translates to:+ /// **'Downloading…'**+ String get downloadNotifDownloadingTitle;++ /// No description provided for @downloadNotifActiveCount.+ ///+ /// In en, this message translates to:+ /// **'{count, plural, =1{1 download active} other{{count} downloads active}}'**+ String downloadNotifActiveCount(int count);++ /// No description provided for @downloadNotifSlotTitle.+ ///+ /// In en, this message translates to:+ /// **'Downloading: {title}'**+ String downloadNotifSlotTitle(String title);++ /// No description provided for @downloadNotifStartingLabel.+ ///+ /// In en, this message translates to:+ /// **'Starting…'**+ String get downloadNotifStartingLabel;++ /// No description provided for @downloadNotifCompleteTitle.+ ///+ /// In en, this message translates to:+ /// **'Download Complete'**+ String get downloadNotifCompleteTitle;++ /// No description provided for @downloadNotifCompleteBody.+ ///+ /// In en, this message translates to:+ /// **'{title} is ready to listen offline'**+ String downloadNotifCompleteBody(String title);++ /// No description provided for @downloadNotifFailedTitle.+ ///+ /// In en, this message translates to:+ /// **'Download Failed'**+ String get downloadNotifFailedTitle;++ /// No description provided for @upcomingNotifChannelName.+ ///+ /// In en, this message translates to:+ /// **'Upcoming Release Scan'**+ String get upcomingNotifChannelName;++ /// No description provided for @upcomingNotifChannelDesc.+ ///+ /// In en, this message translates to:+ /// **'Shows progress while scanning for upcoming releases'**+ String get upcomingNotifChannelDesc;++ /// No description provided for @upcomingNotifScanTitle.+ ///+ /// In en, this message translates to:+ /// **'Scanning for upcoming releases'**+ String get upcomingNotifScanTitle;++ /// No description provided for @upcomingNotifStartingScan.+ ///+ /// In en, this message translates to:+ /// **'Starting scan…'**+ String get upcomingNotifStartingScan;++ /// No description provided for @upcomingNotifCheckingSeries.+ ///+ /// In en, this message translates to:+ /// **'Checking {seriesName}… ({current}/{total})'**+ String upcomingNotifCheckingSeries(String seriesName, int current, int total);++ /// No description provided for @upcomingNotifFoundTitle.+ ///+ /// In en, this message translates to:+ /// **'Upcoming releases found!'**+ String get upcomingNotifFoundTitle;++ /// No description provided for @upcomingNotifFoundBody.+ ///+ /// In en, this message translates to:+ /// **'{books} upcoming across {series, plural, =1{1 series} other{{series} series}}'**+ String upcomingNotifFoundBody(int books, int series);++ /// No description provided for @androidAutoTabContinue.+ ///+ /// In en, this message translates to:+ /// **'Continue'**+ String get androidAutoTabContinue;++ /// No description provided for @androidAutoTabLibrary.+ ///+ /// In en, this message translates to:+ /// **'Library'**+ String get androidAutoTabLibrary;++ /// No description provided for @androidAutoTabDownloads.+ ///+ /// In en, this message translates to:+ /// **'Downloads'**+ String get androidAutoTabDownloads;++ /// No description provided for @androidAutoCatBooks.+ ///+ /// In en, this message translates to:+ /// **'Books'**+ String get androidAutoCatBooks;++ /// No description provided for @androidAutoCatSeries.+ ///+ /// In en, this message translates to:+ /// **'Series'**+ String get androidAutoCatSeries;++ /// No description provided for @androidAutoCatAuthors.+ ///+ /// In en, this message translates to:+ /// **'Authors'**+ String get androidAutoCatAuthors;}class _AppLocalizationsDelegatediff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dartindex ea20743f..686ee45c 100644--- a/lib/l10n/app_localizations_en.dart+++ b/lib/l10n/app_localizations_en.dart@@ -2139,11 +2139,23 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString get welcomeQueueModeAuto =>- 'Auto Absorb - automatically finds and plays the next book in a series';+ 'Series - automatically finds and plays the next book in a series';@overrideString get welcomeManagingQueueTitle => 'Managing your queue';+ @override+ String get welcomeManagingCoverTap =>+ 'Tap the cover art to play/pause (toggleable in Settings)';++ @override+ String get welcomeManagingSwipeUp =>+ 'Swipe up on a card to open the full screen player, swipe down to dismiss';++ @override+ String get welcomeManagingSwipeRight =>+ 'Swipe right on any book in a list sheet to quickly add it to your queue';+@overrideString get welcomeManagingReorder =>'Tap the reorder icon to drag cards into your preferred order or swipe to remove';@@ -2153,8 +2165,8 @@ class AppLocalizationsEn extends AppLocalizations {'Add books manually from any book\'s detail sheet';@override- String get welcomeManagingFinish =>- 'When a book finishes, choose to listen again, remove it, or let it auto-release';+ String get welcomeManagingRemoveFinished =>+ 'Finished books are automatically removed from your queue';@overrideString get welcomeMergeLibrariesTitle => 'Merge libraries';@@ -2254,4 +2266,2340 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString get openLibrary => 'Open Library';++ @override+ String get root => 'Root';++ @override+ String get coverPlayPause => 'Cover play/pause';++ @override+ String get coverPlayPauseOnSubtitle => 'On - tap cover art to play/pause';++ @override+ String get coverPlayPauseOffSubtitle =>+ 'Off - dedicated play/pause button in controls';++ @override+ String get queueModeMergedSubtitle =>+ 'Playback stops, manual queue, or auto-absorbs next item';++ @override+ String get queueModeSeriesLabel => 'Series';++ @override+ String get queueModeShowLabel => 'Show';++ @override+ String get queueModeInfoSeries => 'Series';++ @override+ String get queueModeInfoSeriesDesc =>+ 'Automatically plays the next book in a series or the next episode in a podcast show.';++ @override+ String get resetButtonGridQuestion => 'Reset button grid?';++ @override+ String get resetButtonGridContent =>+ 'This will restore the default button layout, order, and toggle settings.';++ @override+ String get reset => 'Reset';++ @override+ String get buttonGridReset => 'Button grid reset';++ @override+ String get resetButtonGrid => 'Reset button grid';++ @override+ String get chapterBarrierOnRewind => 'Chapter barrier on rewind';++ @override+ String get chapterBarrierInfoTitle => 'Chapter barrier';++ @override+ String get chapterBarrierInfoContent =>+ 'When skipping back, the playback will snap to the start of the current chapter instead of crossing into the previous one.\n\nDouble-tap the skip back button within 2 seconds to break through the barrier.';++ @override+ String get chapterBarrierOnRewindOnSubtitle =>+ 'On - rewind snaps to chapter start';++ @override+ String get chapterBarrierOnRewindOffSubtitle =>+ 'Off - rewind crosses chapter boundaries';++ @override+ String autoRewindOnSubtitleFormat(String min, String max) {+ return 'On -${min}s to ${max}s based on pause length';+ }++ @override+ String get rewindOnSessionStart => 'Rewind on session start';++ @override+ String get rewindOnSessionStartInfoContent =>+ 'Normal auto-rewind triggers when you resume from a pause within an active session. This setting adds a rewind when starting a completely new session - for example after the app was closed, playback was stopped, or you open the app fresh.\n\nWhen enabled, playback rewinds by the full max rewind amount at the start of every new session so you can re-hear where you left off.';++ @override+ String rewindOnSessionStartOnSubtitle(String seconds) {+ return 'On - rewinds ${seconds}s when starting a new session';+ }++ @override+ String rewindActivationDelayValue(String seconds) {+ return '${seconds}s+';+ }++ @override+ String rewindRangeValue(String min, String max) {+ return '${min}s – ${max}s';+ }++ @override+ String rewindSecondsPause(String seconds) {+ return '${seconds}s pause';+ }++ @override+ String rewindMinPause(String minutes) {+ return '$minutes min pause';+ }++ @override+ String rewindHrPause(String hours) {+ return '$hours hr pause';+ }++ @override+ String get rewindOneHrPause => '1 hr pause';++ @override+ String speedValue(String speed) {+ return '${speed}x';+ }++ @override+ String secondsValue(String seconds) {+ return '${seconds}s';+ }++ @override+ String minutesValue(int minutes) {+ return '$minutes min';+ }++ @override+ String get chimeBeforeSleep => 'Chime before sleep';++ @override+ String get chimeBeforeSleepOnSubtitle =>+ 'Plays a gentle bell when the timer is about to end';++ @override+ String get chimeBeforeSleepOffSubtitle => 'No sound warning before sleep';++ @override+ String get windDownDuration => 'Wind-down duration';++ @override+ String windDownDurationSubtitle(int seconds) {+ return 'Fade and chime start ${seconds}s before sleep';+ }++ @override+ String fadeVolumeOnSubtitleDynamic(int seconds) {+ return 'Gradually lowers volume over the last ${seconds}s';+ }++ @override+ String autoSleepTimerEnabledSubtitle(+ String start, String end, String duration) {+ return '$start – $end · $duration';+ }++ @override+ String get endOfChapterShort => 'End of chapter';++ @override+ String get endOfChapterOnSubtitle => 'Stop at the end of the current chapter';++ @override+ String get endOfChapterOffSubtitle => 'Use a timed sleep timer';++ @override+ String get showExplicitBadge => 'Show explicit badge';++ @override+ String get showExplicitBadgeOnSubtitle =>+ 'Explicit items show an \"E\" badge';++ @override+ String get showExplicitBadgeOffSubtitle => 'Off - explicit badge hidden';++ @override+ String get libraryFallback => 'Library';++ @override+ String get preReleaseUpdatesInfoTitle => 'Pre-release Updates';++ @override+ String get preReleaseUpdatesInfoContent =>+ 'When enabled, the update checker will also notify you about alpha and pre-release builds from GitHub. These may be less stable but include the latest features and fixes.';++ @override+ String get includePreReleases => 'Include pre-releases';++ @override+ String get includePreReleasesOnSubtitle =>+ 'On - checking for alpha & pre-release builds';++ @override+ String get includePreReleasesOffSubtitle => 'Off - stable releases only';++ @override+ String get setTooltip => 'Set';++ @override+ String get saveAbsorbBackup => 'Save Absorb backup';++ @override+ String get checkForUpdate => 'Check for update';++ @override+ String get onLatestVersion => 'You\'re on the latest version';++ @override+ String get updateAvailable => 'Update available';++ @override+ String get preReleaseAvailable => 'Pre-release available';++ @override+ String updateDialogContent(String kind, String latest, String current) {+ return 'A new $kind of Absorb is available: $latest\n\nYou are on $current.';+ }++ @override+ String get updateKindPreRelease => 'pre-release';++ @override+ String get updateKindVersion => 'version';++ @override+ String get downloadButton => 'Download';++ @override+ String libraryCountOne(int count) {+ return '$count library';+ }++ @override+ String libraryCountOther(int count) {+ return '$count libraries';+ }++ @override+ String serverVersionLabel(String version) {+ return 'Server $version';+ }++ @override+ String appVersionServerSuffix(String version) {+ return ' · Server $version';+ }++ @override+ String backupDateFormat(int month, int day, int year) {+ return '$month/$day/$year';+ }++ @override+ String get backupDetailsSeparator => ' · ';++ @override+ String get bookmarksSortedByPositionReversed =>+ 'Sorted by position (reversed)';++ @override+ String bookmarksJumpShortContent(String title, String position) {+ return '\"$title\" at $position';+ }++ @override+ String get deleteBookmarkQuestion => 'Delete bookmark?';++ @override+ String bookmarkAtPosition(String position) {+ return 'Bookmark at $position';+ }++ @override+ String get cardIconsOnlyChip => 'Icons only';++ @override+ String get cardMoreInGridChip => '\"More\" in grid';++ @override+ String get cardLayoutHidden => 'Hidden';++ @override+ String get speed => 'Speed';++ @override+ String get details => 'Details';++ @override+ String get episodeDetailsLabel => 'Episode Details';++ @override+ String get bookDetailsLabel => 'Book Details';++ @override+ String get equalizerShort => 'EQ';++ @override+ String get equalizerLabel => 'Equalizer';++ @override+ String get cast => 'Cast';++ @override+ String castingToDevice(String device) {+ return 'Casting to $device';+ }++ @override+ String castToDeviceNamed(String device) {+ return 'Cast to $device';+ }++ @override+ String get historyShort => 'History';++ @override+ String atPosition(String position) {+ return 'at $position';+ }++ @override+ String chaptersChip(int count) {+ return '$count chapters';+ }++ @override+ String chapterNumber(int number) {+ return 'Chapter $number';+ }++ @override+ String kbpsValue(int value) {+ return '$value kbps';+ }++ @override+ String get resetMayNotHaveSynced =>+ 'Reset may not have synced - check your server';++ @override+ String failedToDownloadEbook(int code) {+ return 'Failed to download ebook ($code)';+ }++ @override+ String get serverReturnedErrorPage =>+ 'Server returned an error page instead of the ebook file';++ @override+ String ebookSaved(String filename) {+ return 'Saved: $filename';+ }++ @override+ String errorSavingEbook(String error) {+ return 'Error saving ebook: $error';+ }++ @override+ String failedToSaveError(String error) {+ return 'Failed to save: $error';+ }++ @override+ String get adminBackupsLabel => 'Backups';++ @override+ String get adminListeningNow => 'Listening Now';++ @override+ String get adminLibraries => 'Libraries';++ @override+ String get adminLibraryShows => 'shows';++ @override+ String get adminLibraryBooks => 'books';++ @override+ String get adminLibraryFolders => 'folders';++ @override+ String get adminLibrarySize => 'size';++ @override+ String get adminLibraryDuration => 'duration';++ @override+ String get adminMatchAction => 'Match';++ @override+ String adminMatchingStarted(String name) {+ return 'Matching started for $name';+ }++ @override+ String get adminMatchFailed => 'Failed';++ @override+ String adminScanFailed(String name) {+ return 'Failed to scan $name';+ }++ @override+ String get adminPurgeCacheFailed => 'Failed';++ @override+ String get adminUsersRootBadge => 'root';++ @override+ String get adminUsersAdminBadge => 'admin';++ @override+ String get adminUsersDisabledBadge => 'disabled';++ @override+ String get adminUsersEditUserTooltip => 'Edit user';++ @override+ String get adminUsersOnlineNow => 'Online now';++ @override+ String adminUsersLastSeen(String time) {+ return 'Last seen $time';+ }++ @override+ String get adminUsersNever => 'Never';++ @override+ String get adminUsersTotal => 'Total';++ @override+ String get adminUsersNoReadingActivity => 'No reading activity';++ @override+ String get adminUsersLoadingDots => 'Loading...';++ @override+ String get adminUsersLoadMoreSessions => 'Load more sessions';++ @override+ String get adminUsersNoRecentSessions => 'No recent sessions';++ @override+ String get adminUsersLibraryProgress => 'Library Progress';++ @override+ String adminUsersLoadMoreRemaining(int count) {+ return 'Load More ($count remaining)';+ }++ @override+ String adminUsersMonthsAgo(int count) {+ return '${count}mo ago';+ }++ @override+ String get adminUsersNewUser => 'New User';++ @override+ String get adminUsersEditUser => 'Edit User';++ @override+ String get adminUsersUsername => 'Username';++ @override+ String get adminUsersEnterUsername => 'Enter username';++ @override+ String get adminUsersPassword => 'Password';++ @override+ String get adminUsersNewPassword => 'New Password';++ @override+ String get adminUsersEnterPassword => 'Enter password';++ @override+ String get adminUsersLeaveBlankToKeep => 'Leave blank to keep current';++ @override+ String get adminUsersAccountType => 'Account Type';++ @override+ String get adminUsersTypeGuest => 'Guest';++ @override+ String get adminUsersTypeUser => 'User';++ @override+ String get adminUsersTypeAdmin => 'Admin';++ @override+ String get adminUsersStatus => 'Status';++ @override+ String get adminUsersAccountActive => 'Account Active';++ @override+ String get adminUsersAccountActiveSub => 'Disabled accounts cannot log in';++ @override+ String get adminUsersLocked => 'Locked';++ @override+ String get adminUsersLockedSub => 'Prevents password changes';++ @override+ String get adminUsersPermissions => 'Permissions';++ @override+ String get adminUsersPermDownload => 'Download';++ @override+ String get adminUsersPermUpdate => 'Update';++ @override+ String get adminUsersPermUpdateSub => 'Edit metadata and library items';++ @override+ String get adminUsersPermDelete => 'Delete';++ @override+ String get adminUsersPermUpload => 'Upload';++ @override+ String get adminUsersPermExplicit => 'Explicit Content';++ @override+ String get adminUsersLibraryAccess => 'Library Access';++ @override+ String get adminUsersAccessAllLibraries => 'Access All Libraries';++ @override+ String get adminUsersCreateUser => 'Create User';++ @override+ String get adminUsersSaveChanges => 'Save Changes';++ @override+ String get adminUsersUsernameRequired => 'Username is required';++ @override+ String get adminUsersPasswordRequired => 'Password is required';++ @override+ String get adminUsersUserCreated => 'User created';++ @override+ String get adminUsersUserUpdated => 'User updated';++ @override+ String get adminUsersFailedCreate => 'Failed to create user';++ @override+ String get adminUsersFailedUpdate => 'Failed to update user';++ @override+ String get adminUsersThisUser => 'this user';++ @override+ String get adminUsersDeleteUserTitle => 'Delete User?';++ @override+ String adminUsersDeleteUserContent(String name) {+ return 'Permanently delete $name?';+ }++ @override+ String adminUsersUserDeleted(String name) {+ return '$name deleted';+ }++ @override+ String get adminUsersFailedDelete => 'Failed to delete user';++ @override+ String adminUsersByAuthor(String author) {+ return 'by $author';+ }++ @override+ String get adminUsersListened => 'Listened';++ @override+ String get adminUsersStartedAtPosition => 'Started at position';++ @override+ String get adminUsersEndedAtPosition => 'Ended at position';++ @override+ String get adminUsersTotalDuration => 'Total duration';++ @override+ String get adminUsersStarted => 'Started';++ @override+ String get adminUsersUpdated => 'Updated';++ @override+ String get adminUsersClient => 'Client';++ @override+ String get adminUsersDevice => 'Device';++ @override+ String get adminUsersOs => 'OS';++ @override+ String get adminUsersPlayMethod => 'Play method';++ @override+ String get adminUsersPlayDirect => 'Direct play';++ @override+ String get adminUsersPlayDirectStream => 'Direct stream';++ @override+ String get adminUsersPlayTranscode => 'Transcode';++ @override+ String get adminUsersPlayLocal => 'Local';++ @override+ String get adminPodcastsCheckNewEpisodesTitle => 'Check for New Episodes';++ @override+ String get adminPodcastsCheckNewEpisodesContent =>+ 'This will check RSS feeds for all podcasts and download any new episodes found (if auto-download is enabled).';++ @override+ String get adminPodcastsCheckNewEpisodesSubtitle =>+ 'Scan RSS feed and download new episodes';++ @override+ String get adminPodcastsCheck => 'Check';++ @override+ String get adminPodcastsCheckingForNew => 'Checking for new episodes…';++ @override+ String get adminPodcastsCheckingForNewDots => 'Checking for new episodes...';++ @override+ String get adminPodcastsFailedCheckEpisodes => 'Failed to check episodes';++ @override+ String get adminPodcastsCheckFeedsTooltip => 'Check feeds for new episodes';++ @override+ String get adminPodcastsNoPodcastsYet => 'No podcasts yet';++ @override+ String get adminPodcastsTapPlusHint => 'Tap + to search and add shows';++ @override+ String adminPodcastsEpisodesCount(int count) {+ return '$count episodes';+ }++ @override+ String get adminPodcastsAddPodcast => 'Add Podcast';++ @override+ String get adminPodcastsCouldNotFindFeed => 'Could not find podcast feed';++ @override+ String get adminPodcastsSearchHint => 'Search for podcasts…';++ @override+ String get adminPodcastsSearchItunesHint => 'Search iTunes...';++ @override+ String get adminPodcastsNoPodcastsFound => 'No podcasts found';++ @override+ String get adminPodcastsRelToday => 'Today';++ @override+ String adminPodcastsWeeksAgo(int count) {+ return '${count}w ago';+ }++ @override+ String adminPodcastsMonthsAgo(int count) {+ return '${count}mo ago';+ }++ @override+ String adminPodcastsYearsAgo(int count) {+ return '${count}y ago';+ }++ @override+ String adminPodcastsUpdated(String when) {+ return 'Updated $when';+ }++ @override+ String get adminPodcastsGenreAll => 'All';++ @override+ String get adminPodcastsGenreArts => 'Arts';++ @override+ String get adminPodcastsGenreComedy => 'Comedy';++ @override+ String get adminPodcastsGenreEducation => 'Education';++ @override+ String get adminPodcastsGenreTvFilm => 'TV & Film';++ @override+ String get adminPodcastsGenreMusic => 'Music';++ @override+ String get adminPodcastsGenreNews => 'News';++ @override+ String get adminPodcastsGenreReligion => 'Religion';++ @override+ String get adminPodcastsGenreScience => 'Science';++ @override+ String get adminPodcastsGenreSports => 'Sports';++ @override+ String get adminPodcastsGenreTechnology => 'Technology';++ @override+ String get adminPodcastsGenreBusiness => 'Business';++ @override+ String get adminPodcastsGenreFiction => 'Fiction';++ @override+ String get adminPodcastsGenreSocietyCulture => 'Society & Culture';++ @override+ String get adminPodcastsGenreHealthFitness => 'Health & Fitness';++ @override+ String get adminPodcastsGenreTrueCrime => 'True Crime';++ @override+ String get adminPodcastsGenreHistory => 'History';++ @override+ String get adminPodcastsGenreKidsFamily => 'Kids & Family';++ @override+ String get adminPodcastsPodcastFallback => 'Podcast';++ @override+ String get adminPodcastsEpisodeFallback => 'Episode';++ @override+ String get adminPodcastsNoFeedFound => 'No feed URL found';++ @override+ String get adminPodcastsNoFeedAvailable => 'No feed URL available';++ @override+ String adminPodcastsAddedToLibrary(String title) {+ return '$title added to library';+ }++ @override+ String adminPodcastsFailedToAdd(String title) {+ return 'Failed to add $title';+ }++ @override+ String adminPodcastsEpisodesInFeed(int count) {+ return '$count episodes in feed';+ }++ @override+ String adminPodcastsMoreEpisodes(int count) {+ return '+ $count more episodes';+ }++ @override+ String get adminPodcastsAdding => 'Adding…';++ @override+ String get adminPodcastsAddToLibrary => 'Add to Library';++ @override+ String get adminPodcastsRemoveShowTitle => 'Remove Show?';++ @override+ String adminPodcastsRemoveShowContent(String title) {+ return 'Remove \"$title\" and all its episodes from the server? This cannot be undone.';+ }++ @override+ String adminPodcastsRemovedShow(String title) {+ return 'Removed \"$title\"';+ }++ @override+ String get adminPodcastsFailedRemoveShow => 'Failed to remove show';++ @override+ String get adminPodcastsRemoveShowTooltip => 'Remove show';++ @override+ String get adminPodcastsSelectMultipleTooltip => 'Select multiple';++ @override+ String adminPodcastsDownloadedCount(int count) {+ return '$count downloaded';+ }++ @override+ String get adminPodcastsTabDownloaded => 'Downloaded';++ @override+ String get adminPodcastsTabFeed => 'Feed';++ @override+ String get adminPodcastsTabSettings => 'Settings';++ @override+ String adminPodcastsDownloadingEpisode(String title) {+ return 'Downloading \"$title\"';+ }++ @override+ String get adminPodcastsFailedDownload => 'Failed to download';++ @override+ String get adminPodcastsDeleteEpisodeTitle => 'Delete Episode?';++ @override+ String adminPodcastsDeleteEpisodeContent(String title) {+ return 'Delete \"$title\"?';+ }++ @override+ String get adminPodcastsDeleted => 'Deleted';++ @override+ String get adminPodcastsFailed => 'Failed';++ @override+ String get adminPodcastsDeleteEpisodesTitle => 'Delete Episodes?';++ @override+ String adminPodcastsDeleteEpisodesContent(int count) {+ return 'Delete $count episode(s) from the server?';+ }++ @override+ String adminPodcastsDeletedEpisodes(int count) {+ return 'Deleted $count episode(s)';+ }++ @override+ String get adminPodcastsBrowseFeedToDownload => 'Browse feed to download';++ @override+ String get adminPodcastsDownloadingDots => 'Downloading...';++ @override+ String adminPodcastsDeleteEpisodesCount(int count) {+ return 'Delete $count episode(s)';+ }++ @override+ String adminPodcastsDownloadingCount(int count) {+ return 'Downloading $count episode(s)';+ }++ @override+ String adminPodcastsDownloadEpisodesCount(int count) {+ return 'Download $count episode(s)';+ }++ @override+ String get adminPodcastsLookForEpisodesAfter => 'Look for episodes after';++ @override+ String get adminPodcastsSelectDate => 'Select date';++ @override+ String get adminPodcastsMaxEpisodes => 'Max episodes to download';++ @override+ String adminPodcastsNoNewEpisodesAfter(String date) {+ return 'No new episodes found after $date';+ }++ @override+ String adminPodcastsFoundNewEpisodes(int count) {+ return 'Found $count new episode(s) - downloading';+ }++ @override+ String get adminPodcastsFailedToCheckNew =>+ 'Failed to check for new episodes';++ @override+ String get adminPodcastsCheckAndDownload => 'Check & Download';++ @override+ String get adminPodcastsMatchPodcast => 'Match Podcast';++ @override+ String get adminPodcastsMatchPodcastSubtitle =>+ 'Search iTunes to update cover and metadata';++ @override+ String get adminPodcastsAutoDownloadNewEpisodes =>+ 'Auto-Download New Episodes';++ @override+ String get adminPodcastsAutoDownloadOnSubtitle =>+ 'Server downloads new episodes automatically';++ @override+ String get adminPodcastsAutoDownloadOffSubtitle =>+ 'New episodes are not auto-downloaded';++ @override+ String get adminPodcastsFailedAutoDownloadUpdate =>+ 'Failed to update auto-download setting';++ @override+ String get adminPodcastsCheckSchedule => 'Check Schedule';++ @override+ String get adminPodcastsFrequency => 'Frequency';++ @override+ String get adminPodcastsFreqHourly => 'Hourly';++ @override+ String get adminPodcastsFreqDaily => 'Daily';++ @override+ String get adminPodcastsFreqWeekly => 'Weekly';++ @override+ String get adminPodcastsDay => 'Day';++ @override+ String get adminPodcastsTime => 'Time';++ @override+ String get adminPodcastsDaySun => 'Sun';++ @override+ String get adminPodcastsDayMon => 'Mon';++ @override+ String get adminPodcastsDayTue => 'Tue';++ @override+ String get adminPodcastsDayWed => 'Wed';++ @override+ String get adminPodcastsDayThu => 'Thu';++ @override+ String get adminPodcastsDayFri => 'Fri';++ @override+ String get adminPodcastsDaySat => 'Sat';++ @override+ String get adminPodcastsFeedUrl => 'Feed URL';++ @override+ String get adminPodcastsBack => 'Back';++ @override+ String get adminPodcastsRootOnly => 'Root Only';++ @override+ String get adminPodcastsDeleting => 'Deleting...';++ @override+ String get adminPodcastsDeleteEpisode => 'Delete Episode';++ @override+ String adminPodcastsSeasonChip(String season) {+ return 'Season $season';+ }++ @override+ String adminPodcastsEpChip(String number) {+ return 'Ep. $number';+ }++ @override+ String get adminPodcastsApplyingMatch => 'Applying match...';++ @override+ String get adminPodcastsNoResults => 'No results';++ @override+ String get adminPodcastsPodcastMatched => 'Podcast matched and updated';++ @override+ String get adminPodcastsFailedMatch => 'Failed to match podcast';++ @override+ String get episodeListEpisodeFallback => 'Episode';++ @override+ String get episodeListUnknownPodcast => 'Unknown Podcast';++ @override+ String episodeListMarkedFinished(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count episodes marked as finished',+ one: '1 episode marked as finished',+ );+ return '$_temp0';+ }++ @override+ String episodeListMarkedUnfinished(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count episodes marked as unfinished',+ one: '1 episode marked as unfinished',+ );+ return '$_temp0';+ }++ @override+ String get episodeListUnsubscribeFromNewEpisodes =>+ 'Unsubscribe from New Episodes';++ @override+ String get episodeListSubscribeToNewEpisodes => 'Subscribe to New Episodes';++ @override+ String get episodeListSubscribeTitle => 'Subscribe to this podcast?';++ @override+ String get episodeListSubscribeContent =>+ 'New episodes will be automatically downloaded and added to your absorbing queue when they appear on the server.';++ @override+ String get episodeListSubscribe => 'Subscribe';++ @override+ String get episodeListShowFinishedEpisodes => 'Show Finished Episodes';++ @override+ String get episodeListHideFinishedEpisodes => 'Hide Finished Episodes';++ @override+ String get episodeListPlaysNewerToOlder => 'Plays newer to older episodes';++ @override+ String get episodeListPlaysOlderToNewer => 'Plays older to newer episodes';++ @override+ String episodeListEpisodeCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count episodes',+ one: '1 episode',+ );+ return '$_temp0';+ }++ @override+ String get episodeListAutoDownloadChip => 'Auto-Download';++ @override+ String get episodeListSubscribedChip => 'Subscribed';++ @override+ String get episodeListExplicitChip => 'Explicit';++ @override+ String get episodeListSortNewest => 'Newest';++ @override+ String get episodeListSortOldest => 'Oldest';++ @override+ String episodeListAddedToAbsorbing(String title) {+ return 'Added \"$title\" to Absorbing';+ }++ @override+ String get episodeDetailEpisodeFallback => 'Episode';++ @override+ String get episodeDetailMarkedNotFinished => 'Marked as not finished';++ @override+ String get episodeDetailMarkedFinishedNice => 'Marked as finished - nice!';++ @override+ String get episodeDetailMarkAbsorbedContent =>+ 'This will set your progress to 100% for this episode.';++ @override+ String get episodeDetailResetProgressContent =>+ 'This will erase all progress for this episode and set it back to the beginning. This can\'t be undone.';++ @override+ String get episodeDetailToday => 'Today';++ @override+ String get episodeDetailYesterday => 'Yesterday';++ @override+ String episodeDetailDaysAgo(int count) {+ return '${count}d ago';+ }++ @override+ String episodeDetailWeeksAgo(int count) {+ return '${count}w ago';+ }++ @override+ String episodeDetailDurationHm(int hours, int minutes) {+ return '${hours}h ${minutes}m';+ }++ @override+ String episodeDetailDurationM(int minutes) {+ return '${minutes}m';+ }++ @override+ String get episodeDetailResume => 'Resume';++ @override+ String get episodeDetailPlayEpisode => 'Play Episode';++ @override+ String episodeDetailEpisodeNumber(String number) {+ return 'Episode $number';+ }++ @override+ String episodeDetailSeasonNumber(String number) {+ return 'Season $number';+ }++ @override+ String get editMetadataUpdatedFromMatch => 'Metadata updated from match';++ @override+ String editMetadataConfirmMatch(String title) {+ return 'This will update the server metadata for this book using:\n\n\"$title\"\n\nAll fields and the cover will be overwritten on the server.';+ }++ @override+ String editMetadataConfirmMatchWithAuthor(String title, String author) {+ return 'This will update the server metadata for this book using:\n\n\"$title\" by $author\n\nAll fields and the cover will be overwritten on the server.';+ }++ @override+ String get seriesBooksFindMissingTitle => 'Find Missing Books';++ @override+ String get seriesBooksFindMissingContent =>+ 'This searches Audible to find books in this series that may be missing from your library.\n\nBooks are matched by ASIN first (depending on whether your server has ASINs for its books), then falls back to title matching. Results may not be perfectly accurate.';++ @override+ String get seriesBooksCouldNotFindOnAudible =>+ 'Could not find this series on Audible';++ @override+ String seriesBooksMarkAllNotFinishedContent(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other:+ 'This will clear the finished status for all $count books in this series.',+ one: 'This will clear the finished status for the 1 book in this series.',+ );+ return '$_temp0';+ }++ @override+ String seriesBooksFullyAbsorbContent(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This will mark all $count books in this series as finished.',+ one: 'This will mark the 1 book in this series as finished.',+ );+ return '$_temp0';+ }++ @override+ String get seriesBooksUnmarkAll => 'Unmark All';++ @override+ String get seriesBooksShowAllBooks => 'Show all books';++ @override+ String get seriesBooksGroupBySubSeries => 'Group by sub-series';++ @override+ String get seriesBooksLoadingSubSeries => 'Loading sub-series...';++ @override+ String seriesBooksBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }++ @override+ String get seriesBooksDone => 'Done';++ @override+ String get seriesBooksExplicitBadge => 'E';++ @override+ String get expandedCardStreaming => 'Streaming';++ @override+ String get expandedCardDeviceFallback => 'Device';++ @override+ String bookmarksScreenPositionInBook(String position, String bookTitle) {+ return '$position in $bookTitle';+ }++ @override+ String get bookmarksScreenClose => 'Close';++ @override+ String get bookmarksScreenSortNewest => 'Newest';++ @override+ String get bookmarksScreenSortPosition => 'Position';++ @override+ String statsScreenStreakDays(int count) {+ return '${count}d';+ }++ @override+ String statsScreenSessionCountOne(int count) {+ return '$count session';+ }++ @override+ String statsScreenSessionCountOther(int count) {+ return '$count sessions';+ }++ @override+ String get statsScreenDayMon => 'Mon';++ @override+ String get statsScreenDayTue => 'Tue';++ @override+ String get statsScreenDayWed => 'Wed';++ @override+ String get statsScreenDayThu => 'Thu';++ @override+ String get statsScreenDayFri => 'Fri';++ @override+ String get statsScreenDaySat => 'Sat';++ @override+ String get statsScreenDaySun => 'Sun';++ @override+ String statsScreenDurationHm(int h, int m) {+ return '${h}h ${m}m';+ }++ @override+ String statsScreenDurationM(int m) {+ return '${m}m';+ }++ @override+ String get statsScreenDurationLessThanMin => '<1m';++ @override+ String get statsScreenDurationZero => '0m';++ @override+ String statsScreenDurationShortH(int h) {+ return '${h}h';+ }++ @override+ String statsScreenDurationShortM(int m) {+ return '${m}m';+ }++ @override+ String get statsScreenCouldNotLoadItem => 'Could not load item';++ @override+ String get statsScreenCouldNotFindEpisode => 'Could not find episode';++ @override+ String statsScreenByAuthor(String author) {+ return 'by $author';+ }++ @override+ String get statsScreenListened => 'Listened';++ @override+ String get statsScreenStartedAtPosition => 'Started at position';++ @override+ String get statsScreenEndedAtPosition => 'Ended at position';++ @override+ String get statsScreenTotalDuration => 'Total duration';++ @override+ String get statsScreenStarted => 'Started';++ @override+ String get statsScreenUpdated => 'Updated';++ @override+ String get statsScreenClient => 'Client';++ @override+ String get statsScreenDevice => 'Device';++ @override+ String get statsScreenOs => 'OS';++ @override+ String get statsScreenPlayMethod => 'Play method';++ @override+ String get statsScreenLoading => 'Loading...';++ @override+ String statsScreenJumpToSessionStart(String position) {+ return 'Jump to session start ($position)';+ }++ @override+ String get statsScreenPlayMethodDirect => 'Direct play';++ @override+ String get statsScreenPlayMethodDirectStream => 'Direct stream';++ @override+ String get statsScreenPlayMethodTranscode => 'Transcode';++ @override+ String get statsScreenPlayMethodLocal => 'Local';++ @override+ String get statsScreenAmLabel => 'AM';++ @override+ String get statsScreenPmLabel => 'PM';++ @override+ String statsScreenDateAtTime(+ String month, int day, int year, int hour, String minute, String ampm) {+ return '$month $day, $year at $hour:$minute $ampm';+ }++ @override+ String get statsScreenMonthJan => 'Jan';++ @override+ String get statsScreenMonthFeb => 'Feb';++ @override+ String get statsScreenMonthMar => 'Mar';++ @override+ String get statsScreenMonthApr => 'Apr';++ @override+ String get statsScreenMonthMay => 'May';++ @override+ String get statsScreenMonthJun => 'Jun';++ @override+ String get statsScreenMonthJul => 'Jul';++ @override+ String get statsScreenMonthAug => 'Aug';++ @override+ String get statsScreenMonthSep => 'Sep';++ @override+ String get statsScreenMonthOct => 'Oct';++ @override+ String get statsScreenMonthNov => 'Nov';++ @override+ String get statsScreenMonthDec => 'Dec';++ @override+ String get upcomingReleasesTitle => 'Upcoming Releases';++ @override+ String get upcomingReleasesRescanTitle => 'Rescan?';++ @override+ String upcomingReleasesRescanContent(int days) {+ return 'These results are $days days old. Release dates may have changed - would you like to rescan?';+ }++ @override+ String get upcomingReleasesNotNow => 'Not now';++ @override+ String get upcomingReleasesRescan => 'Rescan';++ @override+ String get upcomingReleasesRescanReleaseDate => 'Rescan Release Date';++ @override+ String get upcomingReleasesRescanning => 'Rescanning...';++ @override+ String upcomingReleasesUpdatedWithDate(String date) {+ return 'Updated - $date';+ }++ @override+ String get upcomingReleasesNoReleaseDateFound => 'No release date found';++ @override+ String get upcomingReleasesRescanFailed => 'Rescan failed';++ @override+ String get upcomingReleasesDateChip => 'Date';++ @override+ String upcomingReleasesCheckingSeries(String name, int processed, int total) {+ return 'Checking $name... ($processed/$total)';+ }++ @override+ String get upcomingReleasesLoadingSeries => 'Loading series...';++ @override+ String get upcomingReleasesScannedToday => '(scanned today)';++ @override+ String get upcomingReleasesScannedYesterday => '(scanned yesterday)';++ @override+ String upcomingReleasesScannedDaysAgo(int days) {+ return '(scanned $days days ago)';+ }++ @override+ String upcomingReleasesUpcomingCount(int count) {+ return '$count upcoming';+ }++ @override+ String upcomingReleasesRecentCount(int count) {+ return '$count recent';+ }++ @override+ String get upcomingReleasesNoneFound =>+ 'No upcoming or recent releases found';++ @override+ String upcomingReleasesAcrossSeries(String summary, int count) {+ return '$summary across $count series';+ }++ @override+ String upcomingReleasesCheckedSeries(int count) {+ return 'Checked $count series on Audible';+ }++ @override+ String upcomingReleasesDateFormat(String month, int day, int year) {+ return '$month $day, $year';+ }++ @override+ String upcomingReleasesSequenceLabel(String sequence) {+ return '#$sequence';+ }++ @override+ String get upcomingReleasesBadgeUpcoming => 'UPCOMING';++ @override+ String get upcomingReleasesBadgeAdded => 'ADDED';++ @override+ String get upcomingReleasesBadgeMissing => 'MISSING';++ @override+ String get homeScreenEpisodeFallback => 'Episode';++ @override+ String get libraryScreenUnknownTitle => 'Unknown Title';++ @override+ String get playlistDetailDefaultName => 'Playlist';++ @override+ String playlistDetailItemCount(int count) {+ return '$count items';+ }++ @override+ String get playlistDetailUnfinished => 'Unfinished';++ @override+ String get playlistDetailRemoveFromPlaylist => 'Remove from playlist';++ @override+ String get playlistDetailDone => 'Done';++ @override+ String playlistDetailItemsMarkedFinished(int count) {+ return '$count items marked finished';+ }++ @override+ String playlistDetailItemsMarkedUnfinished(int count) {+ return '$count items marked unfinished';+ }++ @override+ String playlistDetailItemsRemoved(int count) {+ return '$count items removed';+ }++ @override+ String playlistDetailAddedToAbsorbing(String title) {+ return 'Added \"$title\" to Absorbing';+ }++ @override+ String get collectionDetailDefaultName => 'Collection';++ @override+ String collectionDetailBookCount(int count) {+ return '$count books';+ }++ @override+ String get collectionDetailDone => 'Done';++ @override+ String collectionDetailAddedToAbsorbing(String title) {+ return 'Added \"$title\" to Absorbing';+ }++ @override+ String get audibleSeriesNoBooksFound => 'No books found on Audible';++ @override+ String get audibleSeriesFailedToLoad => 'Failed to load series from Audible';++ @override+ String audibleSeriesSummary(int total, int missing) {+ return '$total on Audible · $missing missing';+ }++ @override+ String audibleSeriesSummaryWithUpcoming(+ int total, int missing, int upcoming) {+ return '$total on Audible · $missing missing · $upcoming upcoming';+ }++ @override+ String audibleSeriesFilterMissing(int count) {+ return 'Missing ($count)';+ }++ @override+ String audibleSeriesFilterUpcoming(int count) {+ return 'Upcoming ($count)';+ }++ @override+ String audibleSeriesFilterAll(int count) {+ return 'All ($count)';+ }++ @override+ String get audibleSeriesSearching => 'Searching Audible...';++ @override+ String get audibleSeriesCompleteSeries => 'You have the complete series!';++ @override+ String get audibleSeriesNoUpcoming => 'No upcoming releases found';++ @override+ String get audibleSeriesUpcomingBadge => 'UPCOMING';++ @override+ String get audibleSeriesAbridged => 'Abridged';++ @override+ String get audibleSeriesRegionTitle => 'Audible Region';++ @override+ String get audibleSeriesOpenOnAudible => 'Open on Audible';++ @override+ String get audibleSeriesAddToCalendar => 'Add to Calendar';++ @override+ String get audibleSeriesCouldNotOpenAudible => 'Could not open Audible';++ @override+ String get audibleSeriesCouldNotOpenCalendar => 'Could not open calendar';++ @override+ String audibleSeriesCalendarDescription(String seriesName) {+ return 'New audiobook release in the $seriesName series';+ }++ @override+ String get authorBooksGroupBySeries => 'Group by series';++ @override+ String get authorBooksList => 'List';++ @override+ String get authorBooksGrid => 'Grid';++ @override+ String authorBooksBookCount(int count) {+ return '$count books';+ }++ @override+ String get metadataLookupCover => 'Cover';++ @override+ String get metadataLookupChooseFields => 'Choose Fields to Apply';++ @override+ String metadataLookupApplyFields(int count) {+ return 'Apply $count fields';+ }++ @override+ String metadataLookupFieldsSavedLocally(int count) {+ return '$count fields saved locally';+ }++ @override+ String get metadataLookupOverrideLocalDisplay => 'Override local display';++ @override+ String get equalizerPresetFlat => 'Flat';++ @override+ String get equalizerPresetVoiceBoost => 'Voice Boost';++ @override+ String get equalizerPresetBassBoost => 'Bass Boost';++ @override+ String get equalizerPresetTrebleBoost => 'Treble Boost';++ @override+ String get equalizerPresetPodcast => 'Podcast';++ @override+ String get equalizerPresetAudiobook => 'Audiobook';++ @override+ String get equalizerPresetReduceNoise => 'Reduce Noise';++ @override+ String get equalizerPresetLoudness => 'Loudness';++ @override+ String equalizerEditingSavedNamed(String title) {+ return 'Editing saved EQ for \"$title\"';+ }++ @override+ String get equalizerEditingSavedGeneric => 'Editing saved EQ';++ @override+ String get equalizerPerBookEq => 'Per-book EQ';++ @override+ String get notesDeleteNoteQuestion => 'Delete note?';++ @override+ String notesDeleteNoteContent(String title) {+ return 'Delete \"$title\"?';+ }++ @override+ String get notesExport => 'Export';++ @override+ String get notesNewNote => 'New note';++ @override+ String get librarySortFilterUpcomingReleases => 'Upcoming Releases';++ @override+ String get librarySortFilterUpcomingReleasesSubtitle =>+ 'Scan Audible for new releases in your series';++ @override+ String sleepTimerSheetChaptersLeft(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count chapters left',+ one: '1 chapter left',+ );+ return '$_temp0';+ }++ @override+ String sleepTimerSheetAddMinutesChip(int minutes) {+ return '+${minutes}m';+ }++ @override+ String sleepTimerSheetAddChaptersChip(int count) {+ return '+$count ch';+ }++ @override+ String sleepTimerSheetMinShort(int minutes) {+ return '${minutes}m';+ }++ @override+ String sleepTimerSheetSecondsShort(int seconds) {+ return '${seconds}s';+ }++ @override+ String sleepTimerSheetMinSecShort(int minutes, int seconds) {+ return '${minutes}m ${seconds}s';+ }++ @override+ String sleepTimerSheetChaptersValue(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count chapters',+ one: '1 chapter',+ );+ return '$_temp0';+ }++ @override+ String sleepTimerSheetChaptersChip(int count) {+ return '$count ch';+ }++ @override+ String sleepTimerSheetStartChapterSleep(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Sleep after $count chapters',+ one: 'Sleep after 1 chapter',+ );+ return '$_temp0';+ }++ @override+ String get sleepTimerSheetRewindOnSleep => 'Rewind on sleep';++ @override+ String get sleepTimerSheetShake => 'Shake';++ @override+ String sleepTimerSheetAddsMinutes(int minutes) {+ return 'Adds $minutes min';+ }++ @override+ String get sleepTimerSheetAddsOneChapter => 'Adds 1 chapter';++ @override+ String get sleepTimerSheetResetsToFull => 'Resets to full duration';++ @override+ String get collectionPickerCollectionFallback => 'Collection';++ @override+ String collectionPickerNameWithCount(String name, int count) {+ return '$name ($count)';+ }++ @override+ String get playlistPickerPlaylistFallback => 'Playlist';++ @override+ String playlistPickerNameWithCount(String name, int count) {+ return '$name ($count)';+ }++ @override+ String get cardChaptersPlayFromChapterTitle => 'Play from chapter?';++ @override+ String cardChaptersPlayFromChapterContent(String title) {+ return 'Start playing from \"$title\"?';+ }++ @override+ String get cardChaptersPlay => 'Play';++ @override+ String get absorbingSharedToday => 'Today';++ @override+ String get absorbingSharedYesterday => 'Yesterday';++ @override+ String get absorbingSharedMonday => 'Monday';++ @override+ String get absorbingSharedTuesday => 'Tuesday';++ @override+ String get absorbingSharedWednesday => 'Wednesday';++ @override+ String get absorbingSharedThursday => 'Thursday';++ @override+ String get absorbingSharedFriday => 'Friday';++ @override+ String get absorbingSharedSaturday => 'Saturday';++ @override+ String get absorbingSharedSunday => 'Sunday';++ @override+ String get absorbingSharedAm => 'AM';++ @override+ String get absorbingSharedPm => 'PM';++ @override+ String sectionDetailAddedToAbsorbing(String title) {+ return 'Added \"$title\" to Absorbing';+ }++ @override+ String get sectionDetailDoneBadge => 'Done';++ @override+ String get homeCustomizeAddGenreTitle => 'Add Genre Section';++ @override+ String get homeCustomizeAddGenreSubtitle =>+ 'Pick a genre to show on your home screen';++ @override+ String get homeSectionDoneBadge => 'Done';++ @override+ String get tipsSheetQuickBookmarksTitle => 'Quick Bookmarks';++ @override+ String get tipsSheetQuickBookmarksDesc =>+ 'Long-press the bookmark button on any card to instantly drop a bookmark at your current position without opening the bookmark sheet.';++ @override+ String get tipsSheetEditBookmarksTitle => 'Edit Bookmarks';++ @override+ String get tipsSheetEditBookmarksDesc =>+ 'Long-press any bookmark in the bookmark sheet to edit its title and add notes.';++ @override+ String get tipsSheetCoverPlayPauseTitle => 'Cover Play/Pause';++ @override+ String get tipsSheetCoverPlayPauseDesc =>+ 'Tap the cover art on any card to play or pause. Toggle this in Settings under Absorbing Cards. A faint pause icon shows when playing so you know it\'s tappable.';++ @override+ String get tipsSheetFullScreenPlayerTitle => 'Full Screen Player';++ @override+ String get tipsSheetFullScreenPlayerDesc =>+ 'Swipe up on any absorbing card to open the full screen player. Swipe down to dismiss it.';++ @override+ String get tipsSheetQuickAddAbsorbingTitle => 'Quick Add to Absorbing';++ @override+ String get tipsSheetQuickAddAbsorbingDesc =>+ 'Swipe right on any book in a list sheet (series, author, search results) to instantly add it to your absorbing queue.';++ @override+ String get tipsSheetShakeExtendSleepTitle => 'Shake to Extend Sleep';++ @override+ String get tipsSheetShakeExtendSleepDesc =>+ 'If you have a sleep timer running and shake your phone, it\'ll add extra minutes. Configure the amount in Settings under Sleep Timer.';++ @override+ String get tipsSheetSeriesNavigationTitle => 'Series Navigation';++ @override+ String get tipsSheetSeriesNavigationDesc =>+ 'Tap the series name in any book\'s detail popup to see all books in the series, sorted in reading order with sequence badges on each cover.';++ @override+ String get tipsSheetSwipeBetweenBooksTitle => 'Swipe Between Books';++ @override+ String get tipsSheetSwipeBetweenBooksDesc =>+ 'On the Absorbing screen, swipe left and right to switch between your in-progress books. The dots at the top show which book you\'re viewing.';++ @override+ String get tipsSheetTapToSeekTitle => 'Tap to Seek';++ @override+ String get tipsSheetTapToSeekDesc =>+ 'Tap anywhere on the chapter or book progress bar to jump directly to that position. You can also drag the bars for fine-grained control.';++ @override+ String get tipsSheetSpeedAdjustedTimeTitle => 'Speed-Adjusted Time';++ @override+ String get tipsSheetSpeedAdjustedTimeDesc =>+ 'Time remaining and chapter times automatically adjust based on your playback speed. Listening at 1.5x? The time shown reflects how long it\'ll actually take you.';++ @override+ String get tipsSheetPlaybackHistoryTitle => 'Playback History';++ @override+ String get tipsSheetPlaybackHistoryDesc =>+ 'Tap the History button on any card to see a timeline of every play, pause, seek, and speed change. Tap any event to jump back to that position.';++ @override+ String get tipsSheetAutoRewindTitle => 'Auto-Rewind';++ @override+ String get tipsSheetAutoRewindDesc =>+ 'When you resume after a pause, Absorb automatically rewinds a few seconds so you don\'t lose your place. The rewind amount scales with how long you were away. Configure it in Settings.';++ @override+ String get tipsSheetSeriesQueueModeTitle => 'Series Queue Mode';++ @override+ String get tipsSheetSeriesQueueModeDesc =>+ 'When you finish a book that\'s part of a series, Absorb can automatically play the next book. Set queue mode to \"Series\" in Settings.';++ @override+ String get tipsSheetOfflineModeTitle => 'Offline Mode';++ @override+ String get tipsSheetOfflineModeDesc =>+ 'Tap the airplane button on the Absorbing screen to enter offline mode. This stops syncing, saves data, and only shows your downloaded books. Great for flights or low signal areas.';++ @override+ String get tipsSheetStopPlaybackTitle => 'Stop Playback';++ @override+ String get tipsSheetStopPlaybackDesc =>+ 'The Stop button in the Absorbing header ends your listening session and saves your progress. Your progress syncs automatically in the background.';++ @override+ String get tipsSheetDownloadOfflineTitle => 'Download for Offline';++ @override+ String get tipsSheetDownloadOfflineDesc =>+ 'Tap the download button in any book\'s detail popup to save it for offline listening. Downloaded books are available in offline mode without any internet connection.';++ @override+ String get tipsSheetCustomizeHomeTitle => 'Customize Home';++ @override+ String get tipsSheetCustomizeHomeDesc =>+ 'Tap the edit button in the top right of the Home screen to rearrange, hide, or show sections. Drag sections into your preferred order.';++ @override+ String get tipsSheetPlaylistsTitle => 'Playlists';++ @override+ String get tipsSheetPlaylistsDesc =>+ 'Create and manage playlists on your Audiobookshelf server and they\'ll appear as sections on your Home screen. Add books to playlists from any book\'s detail popup.';++ @override+ String get tipsSheetCollectionsTitle => 'Collections';++ @override+ String get tipsSheetCollectionsDesc =>+ 'Collections group related books together and show up as Home sections. Root admins can add books and edit collections from the detail popup.';++ @override+ String get bookCardUnknownTitle => 'Unknown Title';++ @override+ String get bookCardExplicitBadge => 'E';++ @override+ String get bookCardDone => 'Done';++ @override+ String get bookCardSaved => 'Saved';++ @override+ String get episodeRowEpisode => 'Episode';++ @override+ String get episodeRowToday => 'Today';++ @override+ String get episodeRowYesterday => 'Yesterday';++ @override+ String episodeRowDaysAgo(int count) {+ return '${count}d ago';+ }++ @override+ String episodeRowWeeksAgo(int count) {+ return '${count}w ago';+ }++ @override+ String episodeRowDurationHm(int hours, int minutes) {+ return '${hours}h ${minutes}m';+ }++ @override+ String episodeRowDurationM(int minutes) {+ return '${minutes}m';+ }++ @override+ String episodeRowSeasonShort(String number) {+ return 'S$number';+ }++ @override+ String episodeRowEpisodeShort(String number) {+ return 'E$number';+ }++ @override+ String get librarySearchResultsExplicitBadge => 'E';++ @override+ String get librarySearchResultsDone => 'Done';++ @override+ String get librarySearchResultsSaved => 'Saved';++ @override+ String librarySearchResultsSequence(String number) {+ return '#$number';+ }++ @override+ String get librarySearchResultsUnknownSeries => 'Unknown Series';++ @override+ String get librarySearchResultsUnknownEpisode => 'Unknown Episode';++ @override+ String librarySearchResultsBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }++ @override+ String get libraryGridTilesExplicitBadge => 'E';++ @override+ String get libraryGridTilesDone => 'Done';++ @override+ String get libraryGridTilesSaved => 'Saved';++ @override+ String libraryGridTilesSequence(String number) {+ return '#$number';+ }++ @override+ String get libraryGridTilesUnknownSeries => 'Unknown Series';++ @override+ String get seriesCardUnknownSeries => 'Unknown Series';++ @override+ String seriesCardBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }++ @override+ String get cardProgressFineScrubbing => 'Fine Scrubbing';++ @override+ String get cardProgressQuarterSpeed => 'Quarter Speed';++ @override+ String get cardProgressHalfSpeed => 'Half Speed';++ @override+ String cardProgressChapterPrefix(String number) {+ return 'Chapter $number';+ }++ @override+ String get cardEdgeProgressFineScrubbing => 'Fine Scrubbing';++ @override+ String get cardEdgeProgressQuarterSpeed => 'Quarter Speed';++ @override+ String get cardEdgeProgressHalfSpeed => 'Half Speed';++ @override+ String get authSessionExpired => 'Session expired. Please log in again.';++ @override+ String authCannotReachServer(String url) {+ return 'Cannot reach server at $url';+ }++ @override+ String get authInvalidUsernameOrPassword => 'Invalid username or password';++ @override+ String get authLoginFailedDetail =>+ 'Login failed - check your server address and credentials';++ @override+ String get authUnexpectedServerResponse => 'Unexpected server response';++ @override+ String get authSsoUnexpectedResponse => 'SSO returned an unexpected response';++ @override+ String get authSwitchedToLocalServer => 'Switched to local server';++ @override+ String get authSwitchedToRemoteServer => 'Switched to remote server';++ @override+ String get lpDeletedFinishedDownload => 'Deleted finished download';++ @override+ String lpSubscribedPodcastDownloading(String showTitle, int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count new episodes downloading',+ one: '1 new episode downloading',+ );+ return '$showTitle: $_temp0';+ }++ @override+ String lpQueueDownloadingItems(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Queue: downloading $count items',+ one: 'Queue: downloading 1 item',+ );+ return '$_temp0';+ }++ @override+ String lpDownloadingBooks(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Downloading $count books',+ one: 'Downloading 1 book',+ );+ return '$_temp0';+ }++ @override+ String lpDownloadingEpisodes(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Downloading $count episodes',+ one: 'Downloading 1 episode',+ );+ return '$_temp0';+ }++ @override+ String get downloadNotifProgressChannelName => 'Download Progress';++ @override+ String get downloadNotifProgressChannelDesc =>+ 'Shows progress during audiobook downloads';++ @override+ String get downloadNotifAlertChannelName => 'Download Alerts';++ @override+ String get downloadNotifAlertChannelDesc =>+ 'Notifications when downloads finish or fail';++ @override+ String get downloadNotifDownloadingTitle => 'Downloading…';++ @override+ String downloadNotifActiveCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count downloads active',+ one: '1 download active',+ );+ return '$_temp0';+ }++ @override+ String downloadNotifSlotTitle(String title) {+ return 'Downloading: $title';+ }++ @override+ String get downloadNotifStartingLabel => 'Starting…';++ @override+ String get downloadNotifCompleteTitle => 'Download Complete';++ @override+ String downloadNotifCompleteBody(String title) {+ return '$title is ready to listen offline';+ }++ @override+ String get downloadNotifFailedTitle => 'Download Failed';++ @override+ String get upcomingNotifChannelName => 'Upcoming Release Scan';++ @override+ String get upcomingNotifChannelDesc =>+ 'Shows progress while scanning for upcoming releases';++ @override+ String get upcomingNotifScanTitle => 'Scanning for upcoming releases';++ @override+ String get upcomingNotifStartingScan => 'Starting scan…';++ @override+ String upcomingNotifCheckingSeries(+ String seriesName, int current, int total) {+ return 'Checking $seriesName… ($current/$total)';+ }++ @override+ String get upcomingNotifFoundTitle => 'Upcoming releases found!';++ @override+ String upcomingNotifFoundBody(int books, int series) {+ String _temp0 = intl.Intl.pluralLogic(+ series,+ locale: localeName,+ other: '$series series',+ one: '1 series',+ );+ return '$books upcoming across $_temp0';+ }++ @override+ String get androidAutoTabContinue => 'Continue';++ @override+ String get androidAutoTabLibrary => 'Library';++ @override+ String get androidAutoTabDownloads => 'Downloads';++ @override+ String get androidAutoCatBooks => 'Books';++ @override+ String get androidAutoCatSeries => 'Series';++ @override+ String get androidAutoCatAuthors => 'Authors';}diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dartindex 4a0cea57..70566a67 100644--- a/lib/l10n/app_localizations_zh.dart+++ b/lib/l10n/app_localizations_zh.dart@@ -2066,11 +2066,20 @@ class AppLocalizationsZh extends AppLocalizations {String get welcomeQueueModeManual => '手动 - 自动播放队列中的下一张卡片';@override- String get welcomeQueueModeAuto => '自动续听 - 自动查找并播放系列中的下一本书';+ String get welcomeQueueModeAuto => '系列 - 自动查找并播放系列中的下一本书';@overrideString get welcomeManagingQueueTitle => '管理你的队列';+ @override+ String get welcomeManagingCoverTap => '点击封面以播放/暂停(可在设置中切换)';++ @override+ String get welcomeManagingSwipeUp => '向上滑动卡片打开全屏播放器,向下滑动关闭';++ @override+ String get welcomeManagingSwipeRight => '在列表中向右滑动任意书籍,即可快速加入队列';+@overrideString get welcomeManagingReorder => '点击排序图标拖动卡片到你喜欢的顺序,或滑动移除';@@ -2078,7 +2087,7 @@ class AppLocalizationsZh extends AppLocalizations {String get welcomeManagingAdd => '从任何书籍的详情页手动添加书籍';@override- String get welcomeManagingFinish => '当书籍听完时,选择重新收听、移除或让它自动释放';+ String get welcomeManagingRemoveFinished => '播放完成的书籍会自动从队列中移除';@overrideString get welcomeMergeLibrariesTitle => '合并媒体库';@@ -2176,4 +2185,2340 @@ class AppLocalizationsZh extends AppLocalizations {@overrideString get openLibrary => '打开媒体库';++ @override+ String get root => 'Root';++ @override+ String get coverPlayPause => 'Cover play/pause';++ @override+ String get coverPlayPauseOnSubtitle => 'On - tap cover art to play/pause';++ @override+ String get coverPlayPauseOffSubtitle =>+ 'Off - dedicated play/pause button in controls';++ @override+ String get queueModeMergedSubtitle =>+ 'Playback stops, manual queue, or auto-absorbs next item';++ @override+ String get queueModeSeriesLabel => 'Series';++ @override+ String get queueModeShowLabel => 'Show';++ @override+ String get queueModeInfoSeries => 'Series';++ @override+ String get queueModeInfoSeriesDesc =>+ 'Automatically plays the next book in a series or the next episode in a podcast show.';++ @override+ String get resetButtonGridQuestion => 'Reset button grid?';++ @override+ String get resetButtonGridContent =>+ 'This will restore the default button layout, order, and toggle settings.';++ @override+ String get reset => 'Reset';++ @override+ String get buttonGridReset => 'Button grid reset';++ @override+ String get resetButtonGrid => 'Reset button grid';++ @override+ String get chapterBarrierOnRewind => 'Chapter barrier on rewind';++ @override+ String get chapterBarrierInfoTitle => 'Chapter barrier';++ @override+ String get chapterBarrierInfoContent =>+ 'When skipping back, the playback will snap to the start of the current chapter instead of crossing into the previous one.\n\nDouble-tap the skip back button within 2 seconds to break through the barrier.';++ @override+ String get chapterBarrierOnRewindOnSubtitle =>+ 'On - rewind snaps to chapter start';++ @override+ String get chapterBarrierOnRewindOffSubtitle =>+ 'Off - rewind crosses chapter boundaries';++ @override+ String autoRewindOnSubtitleFormat(String min, String max) {+ return 'On -${min}s to ${max}s based on pause length';+ }++ @override+ String get rewindOnSessionStart => 'Rewind on session start';++ @override+ String get rewindOnSessionStartInfoContent =>+ 'Normal auto-rewind triggers when you resume from a pause within an active session. This setting adds a rewind when starting a completely new session - for example after the app was closed, playback was stopped, or you open the app fresh.\n\nWhen enabled, playback rewinds by the full max rewind amount at the start of every new session so you can re-hear where you left off.';++ @override+ String rewindOnSessionStartOnSubtitle(String seconds) {+ return 'On - rewinds ${seconds}s when starting a new session';+ }++ @override+ String rewindActivationDelayValue(String seconds) {+ return '${seconds}s+';+ }++ @override+ String rewindRangeValue(String min, String max) {+ return '${min}s – ${max}s';+ }++ @override+ String rewindSecondsPause(String seconds) {+ return '${seconds}s pause';+ }++ @override+ String rewindMinPause(String minutes) {+ return '$minutes min pause';+ }++ @override+ String rewindHrPause(String hours) {+ return '$hours hr pause';+ }++ @override+ String get rewindOneHrPause => '1 hr pause';++ @override+ String speedValue(String speed) {+ return '${speed}x';+ }++ @override+ String secondsValue(String seconds) {+ return '${seconds}s';+ }++ @override+ String minutesValue(int minutes) {+ return '$minutes min';+ }++ @override+ String get chimeBeforeSleep => 'Chime before sleep';++ @override+ String get chimeBeforeSleepOnSubtitle =>+ 'Plays a gentle bell when the timer is about to end';++ @override+ String get chimeBeforeSleepOffSubtitle => 'No sound warning before sleep';++ @override+ String get windDownDuration => 'Wind-down duration';++ @override+ String windDownDurationSubtitle(int seconds) {+ return 'Fade and chime start ${seconds}s before sleep';+ }++ @override+ String fadeVolumeOnSubtitleDynamic(int seconds) {+ return 'Gradually lowers volume over the last ${seconds}s';+ }++ @override+ String autoSleepTimerEnabledSubtitle(+ String start, String end, String duration) {+ return '$start – $end · $duration';+ }++ @override+ String get endOfChapterShort => 'End of chapter';++ @override+ String get endOfChapterOnSubtitle => 'Stop at the end of the current chapter';++ @override+ String get endOfChapterOffSubtitle => 'Use a timed sleep timer';++ @override+ String get showExplicitBadge => 'Show explicit badge';++ @override+ String get showExplicitBadgeOnSubtitle =>+ 'Explicit items show an \"E\" badge';++ @override+ String get showExplicitBadgeOffSubtitle => 'Off - explicit badge hidden';++ @override+ String get libraryFallback => 'Library';++ @override+ String get preReleaseUpdatesInfoTitle => 'Pre-release Updates';++ @override+ String get preReleaseUpdatesInfoContent =>+ 'When enabled, the update checker will also notify you about alpha and pre-release builds from GitHub. These may be less stable but include the latest features and fixes.';++ @override+ String get includePreReleases => 'Include pre-releases';++ @override+ String get includePreReleasesOnSubtitle =>+ 'On - checking for alpha & pre-release builds';++ @override+ String get includePreReleasesOffSubtitle => 'Off - stable releases only';++ @override+ String get setTooltip => 'Set';++ @override+ String get saveAbsorbBackup => 'Save Absorb backup';++ @override+ String get checkForUpdate => 'Check for update';++ @override+ String get onLatestVersion => 'You\'re on the latest version';++ @override+ String get updateAvailable => 'Update available';++ @override+ String get preReleaseAvailable => 'Pre-release available';++ @override+ String updateDialogContent(String kind, String latest, String current) {+ return 'A new $kind of Absorb is available: $latest\n\nYou are on $current.';+ }++ @override+ String get updateKindPreRelease => 'pre-release';++ @override+ String get updateKindVersion => 'version';++ @override+ String get downloadButton => 'Download';++ @override+ String libraryCountOne(int count) {+ return '$count library';+ }++ @override+ String libraryCountOther(int count) {+ return '$count libraries';+ }++ @override+ String serverVersionLabel(String version) {+ return 'Server $version';+ }++ @override+ String appVersionServerSuffix(String version) {+ return ' · Server $version';+ }++ @override+ String backupDateFormat(int month, int day, int year) {+ return '$month/$day/$year';+ }++ @override+ String get backupDetailsSeparator => ' · ';++ @override+ String get bookmarksSortedByPositionReversed =>+ 'Sorted by position (reversed)';++ @override+ String bookmarksJumpShortContent(String title, String position) {+ return '\"$title\" at $position';+ }++ @override+ String get deleteBookmarkQuestion => 'Delete bookmark?';++ @override+ String bookmarkAtPosition(String position) {+ return 'Bookmark at $position';+ }++ @override+ String get cardIconsOnlyChip => 'Icons only';++ @override+ String get cardMoreInGridChip => '\"More\" in grid';++ @override+ String get cardLayoutHidden => 'Hidden';++ @override+ String get speed => 'Speed';++ @override+ String get details => 'Details';++ @override+ String get episodeDetailsLabel => 'Episode Details';++ @override+ String get bookDetailsLabel => 'Book Details';++ @override+ String get equalizerShort => 'EQ';++ @override+ String get equalizerLabel => 'Equalizer';++ @override+ String get cast => 'Cast';++ @override+ String castingToDevice(String device) {+ return 'Casting to $device';+ }++ @override+ String castToDeviceNamed(String device) {+ return 'Cast to $device';+ }++ @override+ String get historyShort => 'History';++ @override+ String atPosition(String position) {+ return 'at $position';+ }++ @override+ String chaptersChip(int count) {+ return '$count chapters';+ }++ @override+ String chapterNumber(int number) {+ return 'Chapter $number';+ }++ @override+ String kbpsValue(int value) {+ return '$value kbps';+ }++ @override+ String get resetMayNotHaveSynced =>+ 'Reset may not have synced - check your server';++ @override+ String failedToDownloadEbook(int code) {+ return 'Failed to download ebook ($code)';+ }++ @override+ String get serverReturnedErrorPage =>+ 'Server returned an error page instead of the ebook file';++ @override+ String ebookSaved(String filename) {+ return 'Saved: $filename';+ }++ @override+ String errorSavingEbook(String error) {+ return 'Error saving ebook: $error';+ }++ @override+ String failedToSaveError(String error) {+ return 'Failed to save: $error';+ }++ @override+ String get adminBackupsLabel => 'Backups';++ @override+ String get adminListeningNow => 'Listening Now';++ @override+ String get adminLibraries => 'Libraries';++ @override+ String get adminLibraryShows => 'shows';++ @override+ String get adminLibraryBooks => 'books';++ @override+ String get adminLibraryFolders => 'folders';++ @override+ String get adminLibrarySize => 'size';++ @override+ String get adminLibraryDuration => 'duration';++ @override+ String get adminMatchAction => 'Match';++ @override+ String adminMatchingStarted(String name) {+ return 'Matching started for $name';+ }++ @override+ String get adminMatchFailed => 'Failed';++ @override+ String adminScanFailed(String name) {+ return 'Failed to scan $name';+ }++ @override+ String get adminPurgeCacheFailed => 'Failed';++ @override+ String get adminUsersRootBadge => 'root';++ @override+ String get adminUsersAdminBadge => 'admin';++ @override+ String get adminUsersDisabledBadge => 'disabled';++ @override+ String get adminUsersEditUserTooltip => 'Edit user';++ @override+ String get adminUsersOnlineNow => 'Online now';++ @override+ String adminUsersLastSeen(String time) {+ return 'Last seen $time';+ }++ @override+ String get adminUsersNever => 'Never';++ @override+ String get adminUsersTotal => 'Total';++ @override+ String get adminUsersNoReadingActivity => 'No reading activity';++ @override+ String get adminUsersLoadingDots => 'Loading...';++ @override+ String get adminUsersLoadMoreSessions => 'Load more sessions';++ @override+ String get adminUsersNoRecentSessions => 'No recent sessions';++ @override+ String get adminUsersLibraryProgress => 'Library Progress';++ @override+ String adminUsersLoadMoreRemaining(int count) {+ return 'Load More ($count remaining)';+ }++ @override+ String adminUsersMonthsAgo(int count) {+ return '${count}mo ago';+ }++ @override+ String get adminUsersNewUser => 'New User';++ @override+ String get adminUsersEditUser => 'Edit User';++ @override+ String get adminUsersUsername => 'Username';++ @override+ String get adminUsersEnterUsername => 'Enter username';++ @override+ String get adminUsersPassword => 'Password';++ @override+ String get adminUsersNewPassword => 'New Password';++ @override+ String get adminUsersEnterPassword => 'Enter password';++ @override+ String get adminUsersLeaveBlankToKeep => 'Leave blank to keep current';++ @override+ String get adminUsersAccountType => 'Account Type';++ @override+ String get adminUsersTypeGuest => 'Guest';++ @override+ String get adminUsersTypeUser => 'User';++ @override+ String get adminUsersTypeAdmin => 'Admin';++ @override+ String get adminUsersStatus => 'Status';++ @override+ String get adminUsersAccountActive => 'Account Active';++ @override+ String get adminUsersAccountActiveSub => 'Disabled accounts cannot log in';++ @override+ String get adminUsersLocked => 'Locked';++ @override+ String get adminUsersLockedSub => 'Prevents password changes';++ @override+ String get adminUsersPermissions => 'Permissions';++ @override+ String get adminUsersPermDownload => 'Download';++ @override+ String get adminUsersPermUpdate => 'Update';++ @override+ String get adminUsersPermUpdateSub => 'Edit metadata and library items';++ @override+ String get adminUsersPermDelete => 'Delete';++ @override+ String get adminUsersPermUpload => 'Upload';++ @override+ String get adminUsersPermExplicit => 'Explicit Content';++ @override+ String get adminUsersLibraryAccess => 'Library Access';++ @override+ String get adminUsersAccessAllLibraries => 'Access All Libraries';++ @override+ String get adminUsersCreateUser => 'Create User';++ @override+ String get adminUsersSaveChanges => 'Save Changes';++ @override+ String get adminUsersUsernameRequired => 'Username is required';++ @override+ String get adminUsersPasswordRequired => 'Password is required';++ @override+ String get adminUsersUserCreated => 'User created';++ @override+ String get adminUsersUserUpdated => 'User updated';++ @override+ String get adminUsersFailedCreate => 'Failed to create user';++ @override+ String get adminUsersFailedUpdate => 'Failed to update user';++ @override+ String get adminUsersThisUser => 'this user';++ @override+ String get adminUsersDeleteUserTitle => 'Delete User?';++ @override+ String adminUsersDeleteUserContent(String name) {+ return 'Permanently delete $name?';+ }++ @override+ String adminUsersUserDeleted(String name) {+ return '$name deleted';+ }++ @override+ String get adminUsersFailedDelete => 'Failed to delete user';++ @override+ String adminUsersByAuthor(String author) {+ return 'by $author';+ }++ @override+ String get adminUsersListened => 'Listened';++ @override+ String get adminUsersStartedAtPosition => 'Started at position';++ @override+ String get adminUsersEndedAtPosition => 'Ended at position';++ @override+ String get adminUsersTotalDuration => 'Total duration';++ @override+ String get adminUsersStarted => 'Started';++ @override+ String get adminUsersUpdated => 'Updated';++ @override+ String get adminUsersClient => 'Client';++ @override+ String get adminUsersDevice => 'Device';++ @override+ String get adminUsersOs => 'OS';++ @override+ String get adminUsersPlayMethod => 'Play method';++ @override+ String get adminUsersPlayDirect => 'Direct play';++ @override+ String get adminUsersPlayDirectStream => 'Direct stream';++ @override+ String get adminUsersPlayTranscode => 'Transcode';++ @override+ String get adminUsersPlayLocal => 'Local';++ @override+ String get adminPodcastsCheckNewEpisodesTitle => 'Check for New Episodes';++ @override+ String get adminPodcastsCheckNewEpisodesContent =>+ 'This will check RSS feeds for all podcasts and download any new episodes found (if auto-download is enabled).';++ @override+ String get adminPodcastsCheckNewEpisodesSubtitle =>+ 'Scan RSS feed and download new episodes';++ @override+ String get adminPodcastsCheck => 'Check';++ @override+ String get adminPodcastsCheckingForNew => 'Checking for new episodes…';++ @override+ String get adminPodcastsCheckingForNewDots => 'Checking for new episodes...';++ @override+ String get adminPodcastsFailedCheckEpisodes => 'Failed to check episodes';++ @override+ String get adminPodcastsCheckFeedsTooltip => 'Check feeds for new episodes';++ @override+ String get adminPodcastsNoPodcastsYet => 'No podcasts yet';++ @override+ String get adminPodcastsTapPlusHint => 'Tap + to search and add shows';++ @override+ String adminPodcastsEpisodesCount(int count) {+ return '$count episodes';+ }++ @override+ String get adminPodcastsAddPodcast => 'Add Podcast';++ @override+ String get adminPodcastsCouldNotFindFeed => 'Could not find podcast feed';++ @override+ String get adminPodcastsSearchHint => 'Search for podcasts…';++ @override+ String get adminPodcastsSearchItunesHint => 'Search iTunes...';++ @override+ String get adminPodcastsNoPodcastsFound => 'No podcasts found';++ @override+ String get adminPodcastsRelToday => 'Today';++ @override+ String adminPodcastsWeeksAgo(int count) {+ return '${count}w ago';+ }++ @override+ String adminPodcastsMonthsAgo(int count) {+ return '${count}mo ago';+ }++ @override+ String adminPodcastsYearsAgo(int count) {+ return '${count}y ago';+ }++ @override+ String adminPodcastsUpdated(String when) {+ return 'Updated $when';+ }++ @override+ String get adminPodcastsGenreAll => 'All';++ @override+ String get adminPodcastsGenreArts => 'Arts';++ @override+ String get adminPodcastsGenreComedy => 'Comedy';++ @override+ String get adminPodcastsGenreEducation => 'Education';++ @override+ String get adminPodcastsGenreTvFilm => 'TV & Film';++ @override+ String get adminPodcastsGenreMusic => 'Music';++ @override+ String get adminPodcastsGenreNews => 'News';++ @override+ String get adminPodcastsGenreReligion => 'Religion';++ @override+ String get adminPodcastsGenreScience => 'Science';++ @override+ String get adminPodcastsGenreSports => 'Sports';++ @override+ String get adminPodcastsGenreTechnology => 'Technology';++ @override+ String get adminPodcastsGenreBusiness => 'Business';++ @override+ String get adminPodcastsGenreFiction => 'Fiction';++ @override+ String get adminPodcastsGenreSocietyCulture => 'Society & Culture';++ @override+ String get adminPodcastsGenreHealthFitness => 'Health & Fitness';++ @override+ String get adminPodcastsGenreTrueCrime => 'True Crime';++ @override+ String get adminPodcastsGenreHistory => 'History';++ @override+ String get adminPodcastsGenreKidsFamily => 'Kids & Family';++ @override+ String get adminPodcastsPodcastFallback => 'Podcast';++ @override+ String get adminPodcastsEpisodeFallback => 'Episode';++ @override+ String get adminPodcastsNoFeedFound => 'No feed URL found';++ @override+ String get adminPodcastsNoFeedAvailable => 'No feed URL available';++ @override+ String adminPodcastsAddedToLibrary(String title) {+ return '$title added to library';+ }++ @override+ String adminPodcastsFailedToAdd(String title) {+ return 'Failed to add $title';+ }++ @override+ String adminPodcastsEpisodesInFeed(int count) {+ return '$count episodes in feed';+ }++ @override+ String adminPodcastsMoreEpisodes(int count) {+ return '+ $count more episodes';+ }++ @override+ String get adminPodcastsAdding => 'Adding…';++ @override+ String get adminPodcastsAddToLibrary => 'Add to Library';++ @override+ String get adminPodcastsRemoveShowTitle => 'Remove Show?';++ @override+ String adminPodcastsRemoveShowContent(String title) {+ return 'Remove \"$title\" and all its episodes from the server? This cannot be undone.';+ }++ @override+ String adminPodcastsRemovedShow(String title) {+ return 'Removed \"$title\"';+ }++ @override+ String get adminPodcastsFailedRemoveShow => 'Failed to remove show';++ @override+ String get adminPodcastsRemoveShowTooltip => 'Remove show';++ @override+ String get adminPodcastsSelectMultipleTooltip => 'Select multiple';++ @override+ String adminPodcastsDownloadedCount(int count) {+ return '$count downloaded';+ }++ @override+ String get adminPodcastsTabDownloaded => 'Downloaded';++ @override+ String get adminPodcastsTabFeed => 'Feed';++ @override+ String get adminPodcastsTabSettings => 'Settings';++ @override+ String adminPodcastsDownloadingEpisode(String title) {+ return 'Downloading \"$title\"';+ }++ @override+ String get adminPodcastsFailedDownload => 'Failed to download';++ @override+ String get adminPodcastsDeleteEpisodeTitle => 'Delete Episode?';++ @override+ String adminPodcastsDeleteEpisodeContent(String title) {+ return 'Delete \"$title\"?';+ }++ @override+ String get adminPodcastsDeleted => 'Deleted';++ @override+ String get adminPodcastsFailed => 'Failed';++ @override+ String get adminPodcastsDeleteEpisodesTitle => 'Delete Episodes?';++ @override+ String adminPodcastsDeleteEpisodesContent(int count) {+ return 'Delete $count episode(s) from the server?';+ }++ @override+ String adminPodcastsDeletedEpisodes(int count) {+ return 'Deleted $count episode(s)';+ }++ @override+ String get adminPodcastsBrowseFeedToDownload => 'Browse feed to download';++ @override+ String get adminPodcastsDownloadingDots => 'Downloading...';++ @override+ String adminPodcastsDeleteEpisodesCount(int count) {+ return 'Delete $count episode(s)';+ }++ @override+ String adminPodcastsDownloadingCount(int count) {+ return 'Downloading $count episode(s)';+ }++ @override+ String adminPodcastsDownloadEpisodesCount(int count) {+ return 'Download $count episode(s)';+ }++ @override+ String get adminPodcastsLookForEpisodesAfter => 'Look for episodes after';++ @override+ String get adminPodcastsSelectDate => 'Select date';++ @override+ String get adminPodcastsMaxEpisodes => 'Max episodes to download';++ @override+ String adminPodcastsNoNewEpisodesAfter(String date) {+ return 'No new episodes found after $date';+ }++ @override+ String adminPodcastsFoundNewEpisodes(int count) {+ return 'Found $count new episode(s) - downloading';+ }++ @override+ String get adminPodcastsFailedToCheckNew =>+ 'Failed to check for new episodes';++ @override+ String get adminPodcastsCheckAndDownload => 'Check & Download';++ @override+ String get adminPodcastsMatchPodcast => 'Match Podcast';++ @override+ String get adminPodcastsMatchPodcastSubtitle =>+ 'Search iTunes to update cover and metadata';++ @override+ String get adminPodcastsAutoDownloadNewEpisodes =>+ 'Auto-Download New Episodes';++ @override+ String get adminPodcastsAutoDownloadOnSubtitle =>+ 'Server downloads new episodes automatically';++ @override+ String get adminPodcastsAutoDownloadOffSubtitle =>+ 'New episodes are not auto-downloaded';++ @override+ String get adminPodcastsFailedAutoDownloadUpdate =>+ 'Failed to update auto-download setting';++ @override+ String get adminPodcastsCheckSchedule => 'Check Schedule';++ @override+ String get adminPodcastsFrequency => 'Frequency';++ @override+ String get adminPodcastsFreqHourly => 'Hourly';++ @override+ String get adminPodcastsFreqDaily => 'Daily';++ @override+ String get adminPodcastsFreqWeekly => 'Weekly';++ @override+ String get adminPodcastsDay => 'Day';++ @override+ String get adminPodcastsTime => 'Time';++ @override+ String get adminPodcastsDaySun => 'Sun';++ @override+ String get adminPodcastsDayMon => 'Mon';++ @override+ String get adminPodcastsDayTue => 'Tue';++ @override+ String get adminPodcastsDayWed => 'Wed';++ @override+ String get adminPodcastsDayThu => 'Thu';++ @override+ String get adminPodcastsDayFri => 'Fri';++ @override+ String get adminPodcastsDaySat => 'Sat';++ @override+ String get adminPodcastsFeedUrl => 'Feed URL';++ @override+ String get adminPodcastsBack => 'Back';++ @override+ String get adminPodcastsRootOnly => 'Root Only';++ @override+ String get adminPodcastsDeleting => 'Deleting...';++ @override+ String get adminPodcastsDeleteEpisode => 'Delete Episode';++ @override+ String adminPodcastsSeasonChip(String season) {+ return 'Season $season';+ }++ @override+ String adminPodcastsEpChip(String number) {+ return 'Ep. $number';+ }++ @override+ String get adminPodcastsApplyingMatch => 'Applying match...';++ @override+ String get adminPodcastsNoResults => 'No results';++ @override+ String get adminPodcastsPodcastMatched => 'Podcast matched and updated';++ @override+ String get adminPodcastsFailedMatch => 'Failed to match podcast';++ @override+ String get episodeListEpisodeFallback => 'Episode';++ @override+ String get episodeListUnknownPodcast => 'Unknown Podcast';++ @override+ String episodeListMarkedFinished(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count episodes marked as finished',+ one: '1 episode marked as finished',+ );+ return '$_temp0';+ }++ @override+ String episodeListMarkedUnfinished(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count episodes marked as unfinished',+ one: '1 episode marked as unfinished',+ );+ return '$_temp0';+ }++ @override+ String get episodeListUnsubscribeFromNewEpisodes =>+ 'Unsubscribe from New Episodes';++ @override+ String get episodeListSubscribeToNewEpisodes => 'Subscribe to New Episodes';++ @override+ String get episodeListSubscribeTitle => 'Subscribe to this podcast?';++ @override+ String get episodeListSubscribeContent =>+ 'New episodes will be automatically downloaded and added to your absorbing queue when they appear on the server.';++ @override+ String get episodeListSubscribe => 'Subscribe';++ @override+ String get episodeListShowFinishedEpisodes => 'Show Finished Episodes';++ @override+ String get episodeListHideFinishedEpisodes => 'Hide Finished Episodes';++ @override+ String get episodeListPlaysNewerToOlder => 'Plays newer to older episodes';++ @override+ String get episodeListPlaysOlderToNewer => 'Plays older to newer episodes';++ @override+ String episodeListEpisodeCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count episodes',+ one: '1 episode',+ );+ return '$_temp0';+ }++ @override+ String get episodeListAutoDownloadChip => 'Auto-Download';++ @override+ String get episodeListSubscribedChip => 'Subscribed';++ @override+ String get episodeListExplicitChip => 'Explicit';++ @override+ String get episodeListSortNewest => 'Newest';++ @override+ String get episodeListSortOldest => 'Oldest';++ @override+ String episodeListAddedToAbsorbing(String title) {+ return 'Added \"$title\" to Absorbing';+ }++ @override+ String get episodeDetailEpisodeFallback => 'Episode';++ @override+ String get episodeDetailMarkedNotFinished => 'Marked as not finished';++ @override+ String get episodeDetailMarkedFinishedNice => 'Marked as finished - nice!';++ @override+ String get episodeDetailMarkAbsorbedContent =>+ 'This will set your progress to 100% for this episode.';++ @override+ String get episodeDetailResetProgressContent =>+ 'This will erase all progress for this episode and set it back to the beginning. This can\'t be undone.';++ @override+ String get episodeDetailToday => 'Today';++ @override+ String get episodeDetailYesterday => 'Yesterday';++ @override+ String episodeDetailDaysAgo(int count) {+ return '${count}d ago';+ }++ @override+ String episodeDetailWeeksAgo(int count) {+ return '${count}w ago';+ }++ @override+ String episodeDetailDurationHm(int hours, int minutes) {+ return '${hours}h ${minutes}m';+ }++ @override+ String episodeDetailDurationM(int minutes) {+ return '${minutes}m';+ }++ @override+ String get episodeDetailResume => 'Resume';++ @override+ String get episodeDetailPlayEpisode => 'Play Episode';++ @override+ String episodeDetailEpisodeNumber(String number) {+ return 'Episode $number';+ }++ @override+ String episodeDetailSeasonNumber(String number) {+ return 'Season $number';+ }++ @override+ String get editMetadataUpdatedFromMatch => 'Metadata updated from match';++ @override+ String editMetadataConfirmMatch(String title) {+ return 'This will update the server metadata for this book using:\n\n\"$title\"\n\nAll fields and the cover will be overwritten on the server.';+ }++ @override+ String editMetadataConfirmMatchWithAuthor(String title, String author) {+ return 'This will update the server metadata for this book using:\n\n\"$title\" by $author\n\nAll fields and the cover will be overwritten on the server.';+ }++ @override+ String get seriesBooksFindMissingTitle => 'Find Missing Books';++ @override+ String get seriesBooksFindMissingContent =>+ 'This searches Audible to find books in this series that may be missing from your library.\n\nBooks are matched by ASIN first (depending on whether your server has ASINs for its books), then falls back to title matching. Results may not be perfectly accurate.';++ @override+ String get seriesBooksCouldNotFindOnAudible =>+ 'Could not find this series on Audible';++ @override+ String seriesBooksMarkAllNotFinishedContent(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other:+ 'This will clear the finished status for all $count books in this series.',+ one: 'This will clear the finished status for the 1 book in this series.',+ );+ return '$_temp0';+ }++ @override+ String seriesBooksFullyAbsorbContent(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'This will mark all $count books in this series as finished.',+ one: 'This will mark the 1 book in this series as finished.',+ );+ return '$_temp0';+ }++ @override+ String get seriesBooksUnmarkAll => 'Unmark All';++ @override+ String get seriesBooksShowAllBooks => 'Show all books';++ @override+ String get seriesBooksGroupBySubSeries => 'Group by sub-series';++ @override+ String get seriesBooksLoadingSubSeries => 'Loading sub-series...';++ @override+ String seriesBooksBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }++ @override+ String get seriesBooksDone => 'Done';++ @override+ String get seriesBooksExplicitBadge => 'E';++ @override+ String get expandedCardStreaming => 'Streaming';++ @override+ String get expandedCardDeviceFallback => 'Device';++ @override+ String bookmarksScreenPositionInBook(String position, String bookTitle) {+ return '$position in $bookTitle';+ }++ @override+ String get bookmarksScreenClose => 'Close';++ @override+ String get bookmarksScreenSortNewest => 'Newest';++ @override+ String get bookmarksScreenSortPosition => 'Position';++ @override+ String statsScreenStreakDays(int count) {+ return '${count}d';+ }++ @override+ String statsScreenSessionCountOne(int count) {+ return '$count session';+ }++ @override+ String statsScreenSessionCountOther(int count) {+ return '$count sessions';+ }++ @override+ String get statsScreenDayMon => 'Mon';++ @override+ String get statsScreenDayTue => 'Tue';++ @override+ String get statsScreenDayWed => 'Wed';++ @override+ String get statsScreenDayThu => 'Thu';++ @override+ String get statsScreenDayFri => 'Fri';++ @override+ String get statsScreenDaySat => 'Sat';++ @override+ String get statsScreenDaySun => 'Sun';++ @override+ String statsScreenDurationHm(int h, int m) {+ return '${h}h ${m}m';+ }++ @override+ String statsScreenDurationM(int m) {+ return '${m}m';+ }++ @override+ String get statsScreenDurationLessThanMin => '<1m';++ @override+ String get statsScreenDurationZero => '0m';++ @override+ String statsScreenDurationShortH(int h) {+ return '${h}h';+ }++ @override+ String statsScreenDurationShortM(int m) {+ return '${m}m';+ }++ @override+ String get statsScreenCouldNotLoadItem => 'Could not load item';++ @override+ String get statsScreenCouldNotFindEpisode => 'Could not find episode';++ @override+ String statsScreenByAuthor(String author) {+ return 'by $author';+ }++ @override+ String get statsScreenListened => 'Listened';++ @override+ String get statsScreenStartedAtPosition => 'Started at position';++ @override+ String get statsScreenEndedAtPosition => 'Ended at position';++ @override+ String get statsScreenTotalDuration => 'Total duration';++ @override+ String get statsScreenStarted => 'Started';++ @override+ String get statsScreenUpdated => 'Updated';++ @override+ String get statsScreenClient => 'Client';++ @override+ String get statsScreenDevice => 'Device';++ @override+ String get statsScreenOs => 'OS';++ @override+ String get statsScreenPlayMethod => 'Play method';++ @override+ String get statsScreenLoading => 'Loading...';++ @override+ String statsScreenJumpToSessionStart(String position) {+ return 'Jump to session start ($position)';+ }++ @override+ String get statsScreenPlayMethodDirect => 'Direct play';++ @override+ String get statsScreenPlayMethodDirectStream => 'Direct stream';++ @override+ String get statsScreenPlayMethodTranscode => 'Transcode';++ @override+ String get statsScreenPlayMethodLocal => 'Local';++ @override+ String get statsScreenAmLabel => 'AM';++ @override+ String get statsScreenPmLabel => 'PM';++ @override+ String statsScreenDateAtTime(+ String month, int day, int year, int hour, String minute, String ampm) {+ return '$month $day, $year at $hour:$minute $ampm';+ }++ @override+ String get statsScreenMonthJan => 'Jan';++ @override+ String get statsScreenMonthFeb => 'Feb';++ @override+ String get statsScreenMonthMar => 'Mar';++ @override+ String get statsScreenMonthApr => 'Apr';++ @override+ String get statsScreenMonthMay => 'May';++ @override+ String get statsScreenMonthJun => 'Jun';++ @override+ String get statsScreenMonthJul => 'Jul';++ @override+ String get statsScreenMonthAug => 'Aug';++ @override+ String get statsScreenMonthSep => 'Sep';++ @override+ String get statsScreenMonthOct => 'Oct';++ @override+ String get statsScreenMonthNov => 'Nov';++ @override+ String get statsScreenMonthDec => 'Dec';++ @override+ String get upcomingReleasesTitle => 'Upcoming Releases';++ @override+ String get upcomingReleasesRescanTitle => 'Rescan?';++ @override+ String upcomingReleasesRescanContent(int days) {+ return 'These results are $days days old. Release dates may have changed - would you like to rescan?';+ }++ @override+ String get upcomingReleasesNotNow => 'Not now';++ @override+ String get upcomingReleasesRescan => 'Rescan';++ @override+ String get upcomingReleasesRescanReleaseDate => 'Rescan Release Date';++ @override+ String get upcomingReleasesRescanning => 'Rescanning...';++ @override+ String upcomingReleasesUpdatedWithDate(String date) {+ return 'Updated - $date';+ }++ @override+ String get upcomingReleasesNoReleaseDateFound => 'No release date found';++ @override+ String get upcomingReleasesRescanFailed => 'Rescan failed';++ @override+ String get upcomingReleasesDateChip => 'Date';++ @override+ String upcomingReleasesCheckingSeries(String name, int processed, int total) {+ return 'Checking $name... ($processed/$total)';+ }++ @override+ String get upcomingReleasesLoadingSeries => 'Loading series...';++ @override+ String get upcomingReleasesScannedToday => '(scanned today)';++ @override+ String get upcomingReleasesScannedYesterday => '(scanned yesterday)';++ @override+ String upcomingReleasesScannedDaysAgo(int days) {+ return '(scanned $days days ago)';+ }++ @override+ String upcomingReleasesUpcomingCount(int count) {+ return '$count upcoming';+ }++ @override+ String upcomingReleasesRecentCount(int count) {+ return '$count recent';+ }++ @override+ String get upcomingReleasesNoneFound =>+ 'No upcoming or recent releases found';++ @override+ String upcomingReleasesAcrossSeries(String summary, int count) {+ return '$summary across $count series';+ }++ @override+ String upcomingReleasesCheckedSeries(int count) {+ return 'Checked $count series on Audible';+ }++ @override+ String upcomingReleasesDateFormat(String month, int day, int year) {+ return '$month $day, $year';+ }++ @override+ String upcomingReleasesSequenceLabel(String sequence) {+ return '#$sequence';+ }++ @override+ String get upcomingReleasesBadgeUpcoming => 'UPCOMING';++ @override+ String get upcomingReleasesBadgeAdded => 'ADDED';++ @override+ String get upcomingReleasesBadgeMissing => 'MISSING';++ @override+ String get homeScreenEpisodeFallback => 'Episode';++ @override+ String get libraryScreenUnknownTitle => 'Unknown Title';++ @override+ String get playlistDetailDefaultName => 'Playlist';++ @override+ String playlistDetailItemCount(int count) {+ return '$count items';+ }++ @override+ String get playlistDetailUnfinished => 'Unfinished';++ @override+ String get playlistDetailRemoveFromPlaylist => 'Remove from playlist';++ @override+ String get playlistDetailDone => 'Done';++ @override+ String playlistDetailItemsMarkedFinished(int count) {+ return '$count items marked finished';+ }++ @override+ String playlistDetailItemsMarkedUnfinished(int count) {+ return '$count items marked unfinished';+ }++ @override+ String playlistDetailItemsRemoved(int count) {+ return '$count items removed';+ }++ @override+ String playlistDetailAddedToAbsorbing(String title) {+ return 'Added \"$title\" to Absorbing';+ }++ @override+ String get collectionDetailDefaultName => 'Collection';++ @override+ String collectionDetailBookCount(int count) {+ return '$count books';+ }++ @override+ String get collectionDetailDone => 'Done';++ @override+ String collectionDetailAddedToAbsorbing(String title) {+ return 'Added \"$title\" to Absorbing';+ }++ @override+ String get audibleSeriesNoBooksFound => 'No books found on Audible';++ @override+ String get audibleSeriesFailedToLoad => 'Failed to load series from Audible';++ @override+ String audibleSeriesSummary(int total, int missing) {+ return '$total on Audible · $missing missing';+ }++ @override+ String audibleSeriesSummaryWithUpcoming(+ int total, int missing, int upcoming) {+ return '$total on Audible · $missing missing · $upcoming upcoming';+ }++ @override+ String audibleSeriesFilterMissing(int count) {+ return 'Missing ($count)';+ }++ @override+ String audibleSeriesFilterUpcoming(int count) {+ return 'Upcoming ($count)';+ }++ @override+ String audibleSeriesFilterAll(int count) {+ return 'All ($count)';+ }++ @override+ String get audibleSeriesSearching => 'Searching Audible...';++ @override+ String get audibleSeriesCompleteSeries => 'You have the complete series!';++ @override+ String get audibleSeriesNoUpcoming => 'No upcoming releases found';++ @override+ String get audibleSeriesUpcomingBadge => 'UPCOMING';++ @override+ String get audibleSeriesAbridged => 'Abridged';++ @override+ String get audibleSeriesRegionTitle => 'Audible Region';++ @override+ String get audibleSeriesOpenOnAudible => 'Open on Audible';++ @override+ String get audibleSeriesAddToCalendar => 'Add to Calendar';++ @override+ String get audibleSeriesCouldNotOpenAudible => 'Could not open Audible';++ @override+ String get audibleSeriesCouldNotOpenCalendar => 'Could not open calendar';++ @override+ String audibleSeriesCalendarDescription(String seriesName) {+ return 'New audiobook release in the $seriesName series';+ }++ @override+ String get authorBooksGroupBySeries => 'Group by series';++ @override+ String get authorBooksList => 'List';++ @override+ String get authorBooksGrid => 'Grid';++ @override+ String authorBooksBookCount(int count) {+ return '$count books';+ }++ @override+ String get metadataLookupCover => 'Cover';++ @override+ String get metadataLookupChooseFields => 'Choose Fields to Apply';++ @override+ String metadataLookupApplyFields(int count) {+ return 'Apply $count fields';+ }++ @override+ String metadataLookupFieldsSavedLocally(int count) {+ return '$count fields saved locally';+ }++ @override+ String get metadataLookupOverrideLocalDisplay => 'Override local display';++ @override+ String get equalizerPresetFlat => 'Flat';++ @override+ String get equalizerPresetVoiceBoost => 'Voice Boost';++ @override+ String get equalizerPresetBassBoost => 'Bass Boost';++ @override+ String get equalizerPresetTrebleBoost => 'Treble Boost';++ @override+ String get equalizerPresetPodcast => 'Podcast';++ @override+ String get equalizerPresetAudiobook => 'Audiobook';++ @override+ String get equalizerPresetReduceNoise => 'Reduce Noise';++ @override+ String get equalizerPresetLoudness => 'Loudness';++ @override+ String equalizerEditingSavedNamed(String title) {+ return 'Editing saved EQ for \"$title\"';+ }++ @override+ String get equalizerEditingSavedGeneric => 'Editing saved EQ';++ @override+ String get equalizerPerBookEq => 'Per-book EQ';++ @override+ String get notesDeleteNoteQuestion => 'Delete note?';++ @override+ String notesDeleteNoteContent(String title) {+ return 'Delete \"$title\"?';+ }++ @override+ String get notesExport => 'Export';++ @override+ String get notesNewNote => 'New note';++ @override+ String get librarySortFilterUpcomingReleases => 'Upcoming Releases';++ @override+ String get librarySortFilterUpcomingReleasesSubtitle =>+ 'Scan Audible for new releases in your series';++ @override+ String sleepTimerSheetChaptersLeft(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count chapters left',+ one: '1 chapter left',+ );+ return '$_temp0';+ }++ @override+ String sleepTimerSheetAddMinutesChip(int minutes) {+ return '+${minutes}m';+ }++ @override+ String sleepTimerSheetAddChaptersChip(int count) {+ return '+$count ch';+ }++ @override+ String sleepTimerSheetMinShort(int minutes) {+ return '${minutes}m';+ }++ @override+ String sleepTimerSheetSecondsShort(int seconds) {+ return '${seconds}s';+ }++ @override+ String sleepTimerSheetMinSecShort(int minutes, int seconds) {+ return '${minutes}m ${seconds}s';+ }++ @override+ String sleepTimerSheetChaptersValue(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count chapters',+ one: '1 chapter',+ );+ return '$_temp0';+ }++ @override+ String sleepTimerSheetChaptersChip(int count) {+ return '$count ch';+ }++ @override+ String sleepTimerSheetStartChapterSleep(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Sleep after $count chapters',+ one: 'Sleep after 1 chapter',+ );+ return '$_temp0';+ }++ @override+ String get sleepTimerSheetRewindOnSleep => 'Rewind on sleep';++ @override+ String get sleepTimerSheetShake => 'Shake';++ @override+ String sleepTimerSheetAddsMinutes(int minutes) {+ return 'Adds $minutes min';+ }++ @override+ String get sleepTimerSheetAddsOneChapter => 'Adds 1 chapter';++ @override+ String get sleepTimerSheetResetsToFull => 'Resets to full duration';++ @override+ String get collectionPickerCollectionFallback => 'Collection';++ @override+ String collectionPickerNameWithCount(String name, int count) {+ return '$name ($count)';+ }++ @override+ String get playlistPickerPlaylistFallback => 'Playlist';++ @override+ String playlistPickerNameWithCount(String name, int count) {+ return '$name ($count)';+ }++ @override+ String get cardChaptersPlayFromChapterTitle => 'Play from chapter?';++ @override+ String cardChaptersPlayFromChapterContent(String title) {+ return 'Start playing from \"$title\"?';+ }++ @override+ String get cardChaptersPlay => 'Play';++ @override+ String get absorbingSharedToday => 'Today';++ @override+ String get absorbingSharedYesterday => 'Yesterday';++ @override+ String get absorbingSharedMonday => 'Monday';++ @override+ String get absorbingSharedTuesday => 'Tuesday';++ @override+ String get absorbingSharedWednesday => 'Wednesday';++ @override+ String get absorbingSharedThursday => 'Thursday';++ @override+ String get absorbingSharedFriday => 'Friday';++ @override+ String get absorbingSharedSaturday => 'Saturday';++ @override+ String get absorbingSharedSunday => 'Sunday';++ @override+ String get absorbingSharedAm => 'AM';++ @override+ String get absorbingSharedPm => 'PM';++ @override+ String sectionDetailAddedToAbsorbing(String title) {+ return 'Added \"$title\" to Absorbing';+ }++ @override+ String get sectionDetailDoneBadge => 'Done';++ @override+ String get homeCustomizeAddGenreTitle => 'Add Genre Section';++ @override+ String get homeCustomizeAddGenreSubtitle =>+ 'Pick a genre to show on your home screen';++ @override+ String get homeSectionDoneBadge => 'Done';++ @override+ String get tipsSheetQuickBookmarksTitle => 'Quick Bookmarks';++ @override+ String get tipsSheetQuickBookmarksDesc =>+ 'Long-press the bookmark button on any card to instantly drop a bookmark at your current position without opening the bookmark sheet.';++ @override+ String get tipsSheetEditBookmarksTitle => 'Edit Bookmarks';++ @override+ String get tipsSheetEditBookmarksDesc =>+ 'Long-press any bookmark in the bookmark sheet to edit its title and add notes.';++ @override+ String get tipsSheetCoverPlayPauseTitle => 'Cover Play/Pause';++ @override+ String get tipsSheetCoverPlayPauseDesc =>+ 'Tap the cover art on any card to play or pause. Toggle this in Settings under Absorbing Cards. A faint pause icon shows when playing so you know it\'s tappable.';++ @override+ String get tipsSheetFullScreenPlayerTitle => 'Full Screen Player';++ @override+ String get tipsSheetFullScreenPlayerDesc =>+ 'Swipe up on any absorbing card to open the full screen player. Swipe down to dismiss it.';++ @override+ String get tipsSheetQuickAddAbsorbingTitle => 'Quick Add to Absorbing';++ @override+ String get tipsSheetQuickAddAbsorbingDesc =>+ 'Swipe right on any book in a list sheet (series, author, search results) to instantly add it to your absorbing queue.';++ @override+ String get tipsSheetShakeExtendSleepTitle => 'Shake to Extend Sleep';++ @override+ String get tipsSheetShakeExtendSleepDesc =>+ 'If you have a sleep timer running and shake your phone, it\'ll add extra minutes. Configure the amount in Settings under Sleep Timer.';++ @override+ String get tipsSheetSeriesNavigationTitle => 'Series Navigation';++ @override+ String get tipsSheetSeriesNavigationDesc =>+ 'Tap the series name in any book\'s detail popup to see all books in the series, sorted in reading order with sequence badges on each cover.';++ @override+ String get tipsSheetSwipeBetweenBooksTitle => 'Swipe Between Books';++ @override+ String get tipsSheetSwipeBetweenBooksDesc =>+ 'On the Absorbing screen, swipe left and right to switch between your in-progress books. The dots at the top show which book you\'re viewing.';++ @override+ String get tipsSheetTapToSeekTitle => 'Tap to Seek';++ @override+ String get tipsSheetTapToSeekDesc =>+ 'Tap anywhere on the chapter or book progress bar to jump directly to that position. You can also drag the bars for fine-grained control.';++ @override+ String get tipsSheetSpeedAdjustedTimeTitle => 'Speed-Adjusted Time';++ @override+ String get tipsSheetSpeedAdjustedTimeDesc =>+ 'Time remaining and chapter times automatically adjust based on your playback speed. Listening at 1.5x? The time shown reflects how long it\'ll actually take you.';++ @override+ String get tipsSheetPlaybackHistoryTitle => 'Playback History';++ @override+ String get tipsSheetPlaybackHistoryDesc =>+ 'Tap the History button on any card to see a timeline of every play, pause, seek, and speed change. Tap any event to jump back to that position.';++ @override+ String get tipsSheetAutoRewindTitle => 'Auto-Rewind';++ @override+ String get tipsSheetAutoRewindDesc =>+ 'When you resume after a pause, Absorb automatically rewinds a few seconds so you don\'t lose your place. The rewind amount scales with how long you were away. Configure it in Settings.';++ @override+ String get tipsSheetSeriesQueueModeTitle => 'Series Queue Mode';++ @override+ String get tipsSheetSeriesQueueModeDesc =>+ 'When you finish a book that\'s part of a series, Absorb can automatically play the next book. Set queue mode to \"Series\" in Settings.';++ @override+ String get tipsSheetOfflineModeTitle => 'Offline Mode';++ @override+ String get tipsSheetOfflineModeDesc =>+ 'Tap the airplane button on the Absorbing screen to enter offline mode. This stops syncing, saves data, and only shows your downloaded books. Great for flights or low signal areas.';++ @override+ String get tipsSheetStopPlaybackTitle => 'Stop Playback';++ @override+ String get tipsSheetStopPlaybackDesc =>+ 'The Stop button in the Absorbing header ends your listening session and saves your progress. Your progress syncs automatically in the background.';++ @override+ String get tipsSheetDownloadOfflineTitle => 'Download for Offline';++ @override+ String get tipsSheetDownloadOfflineDesc =>+ 'Tap the download button in any book\'s detail popup to save it for offline listening. Downloaded books are available in offline mode without any internet connection.';++ @override+ String get tipsSheetCustomizeHomeTitle => 'Customize Home';++ @override+ String get tipsSheetCustomizeHomeDesc =>+ 'Tap the edit button in the top right of the Home screen to rearrange, hide, or show sections. Drag sections into your preferred order.';++ @override+ String get tipsSheetPlaylistsTitle => 'Playlists';++ @override+ String get tipsSheetPlaylistsDesc =>+ 'Create and manage playlists on your Audiobookshelf server and they\'ll appear as sections on your Home screen. Add books to playlists from any book\'s detail popup.';++ @override+ String get tipsSheetCollectionsTitle => 'Collections';++ @override+ String get tipsSheetCollectionsDesc =>+ 'Collections group related books together and show up as Home sections. Root admins can add books and edit collections from the detail popup.';++ @override+ String get bookCardUnknownTitle => 'Unknown Title';++ @override+ String get bookCardExplicitBadge => 'E';++ @override+ String get bookCardDone => 'Done';++ @override+ String get bookCardSaved => 'Saved';++ @override+ String get episodeRowEpisode => 'Episode';++ @override+ String get episodeRowToday => 'Today';++ @override+ String get episodeRowYesterday => 'Yesterday';++ @override+ String episodeRowDaysAgo(int count) {+ return '${count}d ago';+ }++ @override+ String episodeRowWeeksAgo(int count) {+ return '${count}w ago';+ }++ @override+ String episodeRowDurationHm(int hours, int minutes) {+ return '${hours}h ${minutes}m';+ }++ @override+ String episodeRowDurationM(int minutes) {+ return '${minutes}m';+ }++ @override+ String episodeRowSeasonShort(String number) {+ return 'S$number';+ }++ @override+ String episodeRowEpisodeShort(String number) {+ return 'E$number';+ }++ @override+ String get librarySearchResultsExplicitBadge => 'E';++ @override+ String get librarySearchResultsDone => 'Done';++ @override+ String get librarySearchResultsSaved => 'Saved';++ @override+ String librarySearchResultsSequence(String number) {+ return '#$number';+ }++ @override+ String get librarySearchResultsUnknownSeries => 'Unknown Series';++ @override+ String get librarySearchResultsUnknownEpisode => 'Unknown Episode';++ @override+ String librarySearchResultsBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }++ @override+ String get libraryGridTilesExplicitBadge => 'E';++ @override+ String get libraryGridTilesDone => 'Done';++ @override+ String get libraryGridTilesSaved => 'Saved';++ @override+ String libraryGridTilesSequence(String number) {+ return '#$number';+ }++ @override+ String get libraryGridTilesUnknownSeries => 'Unknown Series';++ @override+ String get seriesCardUnknownSeries => 'Unknown Series';++ @override+ String seriesCardBookCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count books',+ one: '1 book',+ );+ return '$_temp0';+ }++ @override+ String get cardProgressFineScrubbing => 'Fine Scrubbing';++ @override+ String get cardProgressQuarterSpeed => 'Quarter Speed';++ @override+ String get cardProgressHalfSpeed => 'Half Speed';++ @override+ String cardProgressChapterPrefix(String number) {+ return 'Chapter $number';+ }++ @override+ String get cardEdgeProgressFineScrubbing => 'Fine Scrubbing';++ @override+ String get cardEdgeProgressQuarterSpeed => 'Quarter Speed';++ @override+ String get cardEdgeProgressHalfSpeed => 'Half Speed';++ @override+ String get authSessionExpired => 'Session expired. Please log in again.';++ @override+ String authCannotReachServer(String url) {+ return 'Cannot reach server at $url';+ }++ @override+ String get authInvalidUsernameOrPassword => 'Invalid username or password';++ @override+ String get authLoginFailedDetail =>+ 'Login failed - check your server address and credentials';++ @override+ String get authUnexpectedServerResponse => 'Unexpected server response';++ @override+ String get authSsoUnexpectedResponse => 'SSO returned an unexpected response';++ @override+ String get authSwitchedToLocalServer => 'Switched to local server';++ @override+ String get authSwitchedToRemoteServer => 'Switched to remote server';++ @override+ String get lpDeletedFinishedDownload => 'Deleted finished download';++ @override+ String lpSubscribedPodcastDownloading(String showTitle, int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count new episodes downloading',+ one: '1 new episode downloading',+ );+ return '$showTitle: $_temp0';+ }++ @override+ String lpQueueDownloadingItems(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Queue: downloading $count items',+ one: 'Queue: downloading 1 item',+ );+ return '$_temp0';+ }++ @override+ String lpDownloadingBooks(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Downloading $count books',+ one: 'Downloading 1 book',+ );+ return '$_temp0';+ }++ @override+ String lpDownloadingEpisodes(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: 'Downloading $count episodes',+ one: 'Downloading 1 episode',+ );+ return '$_temp0';+ }++ @override+ String get downloadNotifProgressChannelName => 'Download Progress';++ @override+ String get downloadNotifProgressChannelDesc =>+ 'Shows progress during audiobook downloads';++ @override+ String get downloadNotifAlertChannelName => 'Download Alerts';++ @override+ String get downloadNotifAlertChannelDesc =>+ 'Notifications when downloads finish or fail';++ @override+ String get downloadNotifDownloadingTitle => 'Downloading…';++ @override+ String downloadNotifActiveCount(int count) {+ String _temp0 = intl.Intl.pluralLogic(+ count,+ locale: localeName,+ other: '$count downloads active',+ one: '1 download active',+ );+ return '$_temp0';+ }++ @override+ String downloadNotifSlotTitle(String title) {+ return 'Downloading: $title';+ }++ @override+ String get downloadNotifStartingLabel => 'Starting…';++ @override+ String get downloadNotifCompleteTitle => 'Download Complete';++ @override+ String downloadNotifCompleteBody(String title) {+ return '$title is ready to listen offline';+ }++ @override+ String get downloadNotifFailedTitle => 'Download Failed';++ @override+ String get upcomingNotifChannelName => 'Upcoming Release Scan';++ @override+ String get upcomingNotifChannelDesc =>+ 'Shows progress while scanning for upcoming releases';++ @override+ String get upcomingNotifScanTitle => 'Scanning for upcoming releases';++ @override+ String get upcomingNotifStartingScan => 'Starting scan…';++ @override+ String upcomingNotifCheckingSeries(+ String seriesName, int current, int total) {+ return 'Checking $seriesName… ($current/$total)';+ }++ @override+ String get upcomingNotifFoundTitle => 'Upcoming releases found!';++ @override+ String upcomingNotifFoundBody(int books, int series) {+ String _temp0 = intl.Intl.pluralLogic(+ series,+ locale: localeName,+ other: '$series series',+ one: '1 series',+ );+ return '$books upcoming across $_temp0';+ }++ @override+ String get androidAutoTabContinue => 'Continue';++ @override+ String get androidAutoTabLibrary => 'Library';++ @override+ String get androidAutoTabDownloads => 'Downloads';++ @override+ String get androidAutoCatBooks => 'Books';++ @override+ String get androidAutoCatSeries => 'Series';++ @override+ String get androidAutoCatAuthors => 'Authors';}diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arbindex b051a4a3..5ad0b8a3 100644--- a/lib/l10n/app_zh.arb+++ b/lib/l10n/app_zh.arb@@ -739,11 +739,14 @@"welcomeQueueModesTitle": "队列模式","welcomeQueueModeOff": "关闭 - 书籍播放完成后停止","welcomeQueueModeManual": "手动 - 自动播放队列中的下一张卡片",- "welcomeQueueModeAuto": "自动续听 - 自动查找并播放系列中的下一本书",+ "welcomeQueueModeAuto": "系列 - 自动查找并播放系列中的下一本书","welcomeManagingQueueTitle": "管理你的队列",+ "welcomeManagingCoverTap": "点击封面以播放/暂停(可在设置中切换)",+ "welcomeManagingSwipeUp": "向上滑动卡片打开全屏播放器,向下滑动关闭",+ "welcomeManagingSwipeRight": "在列表中向右滑动任意书籍,即可快速加入队列","welcomeManagingReorder": "点击排序图标拖动卡片到你喜欢的顺序,或滑动移除","welcomeManagingAdd": "从任何书籍的详情页手动添加书籍",- "welcomeManagingFinish": "当书籍听完时,选择重新收听、移除或让它自动释放",+ "welcomeManagingRemoveFinished": "播放完成的书籍会自动从队列中移除","welcomeMergeLibrariesTitle": "合并媒体库","welcomeMergeLibrariesBody": "在设置中启用,在一个队列中显示所有媒体库的内容","welcomeDownloadsTitle": "下载与离线",diff --git a/lib/providers/_lp_absorbing.dart b/lib/providers/_lp_absorbing.dartindex 598ab889..6f0be154 100644--- a/lib/providers/_lp_absorbing.dart+++ b/lib/providers/_lp_absorbing.dart@@ -441,7 +441,7 @@ mixin _AbsorbingMixin on ChangeNotifier, _StateMixin, _CoreMixin {PlayerSettings.getRollingDownloadDeleteFinished().then((delete) {if (!delete) return;DownloadService().deleteDownload(itemId, skipStopCheck: true);- _showRollingSnackBar('Deleted finished download');+ _showRollingSnackBar(_l()?.lpDeletedFinishedDownload ?? 'Deleted finished download');});}diff --git a/lib/providers/_lp_core.dart b/lib/providers/_lp_core.dartindex 4ae2e594..09fa2514 100644--- a/lib/providers/_lp_core.dart+++ b/lib/providers/_lp_core.dart@@ -1620,7 +1620,9 @@ mixin _CoreMixin on ChangeNotifier, _StateMixin {final media = cached['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};final showTitle = metadata['title'] as String? ?? 'Podcast';- _showRollingSnackBar('$showTitle: $downloaded new episode${downloaded == 1 ? '' : 's'} downloading');+ final l = _l();+ _showRollingSnackBar(l?.lpSubscribedPodcastDownloading(showTitle, downloaded)+ ?? '$showTitle: $downloaded new episode${downloaded == 1 ? '' : 's'} downloading');}}@@ -1791,8 +1793,10 @@ mixin _CoreMixin on ChangeNotifier, _StateMixin {}if (newDownloads > 0) {+ final l = _l();_showRollingSnackBar(- 'Queue: downloading $newDownloads item${newDownloads == 1 ? '' : 's'}');+ l?.lpQueueDownloadingItems(newDownloads)+ ?? 'Queue: downloading $newDownloads item${newDownloads == 1 ? '' : 's'}');}}@@ -1916,8 +1920,10 @@ mixin _CoreMixin on ChangeNotifier, _StateMixin {}if (newDownloads > 0) {+ final l = _l();_showRollingSnackBar(- 'Downloading $newDownloads book${newDownloads == 1 ? '' : 's'}');+ l?.lpDownloadingBooks(newDownloads)+ ?? 'Downloading $newDownloads book${newDownloads == 1 ? '' : 's'}');}}@@ -1992,8 +1998,10 @@ mixin _CoreMixin on ChangeNotifier, _StateMixin {}if (newDownloads > 0) {+ final l = _l();_showRollingSnackBar(- 'Downloading $newDownloads episode${newDownloads == 1 ? '' : 's'}');+ l?.lpDownloadingEpisodes(newDownloads)+ ?? 'Downloading $newDownloads episode${newDownloads == 1 ? '' : 's'}');}}diff --git a/lib/providers/_lp_state.dart b/lib/providers/_lp_state.dartindex e1e64fdf..77b2efc4 100644--- a/lib/providers/_lp_state.dart+++ b/lib/providers/_lp_state.dart@@ -251,6 +251,14 @@ mixin _StateMixin on ChangeNotifier {));}+ /// Look up [AppLocalizations] via the root navigator. Returns null if no+ /// context is mounted (e.g. very early startup); callers should provide+ /// English fallbacks.+ AppLocalizations? _l() {+ final ctx = rootNavigatorKey.currentContext;+ return ctx != null ? AppLocalizations.of(ctx) : null;+ }+String? getCoverUrl(String? itemId, {int width = 400}) {if (itemId == null) return null;diff --git a/lib/providers/auth_provider.dart b/lib/providers/auth_provider.dartindex 657e68ad..7cbec83b 100644--- a/lib/providers/auth_provider.dart+++ b/lib/providers/auth_provider.dart@@ -8,7 +8,8 @@ import '../services/audio_player_service.dart';import '../services/session_cache.dart';import '../services/socket_service.dart';import '../services/user_account_service.dart';-import '../main.dart' show scaffoldMessengerKey;+import '../l10n/app_localizations.dart';+import '../main.dart' show scaffoldMessengerKey, rootNavigatorKey;class AuthProvider extends ChangeNotifier {String? _accessToken;@@ -94,8 +95,11 @@ class AuthProvider extends ChangeNotifier {void _onAuthExpired() {debugPrint('[Auth] Token refresh failed, forcing re-login');// Show a message to the user+ final ctx = rootNavigatorKey.currentContext;+ final l = ctx != null ? AppLocalizations.of(ctx) : null;+ final msg = l?.authSessionExpired ?? 'Session expired. Please log in again.';scaffoldMessengerKey.currentState?.showSnackBar(- const SnackBar(content: Text('Session expired. Please log in again.')),+ SnackBar(content: Text(msg)),);logout();}@@ -204,11 +208,15 @@ class AuthProvider extends ChangeNotifier {}/// Login with username/password.+ ///+ /// [l] is used to localize error messages stored in [errorMessage]. If null,+ /// English fallbacks are used (e.g. when called from a non-UI context).Future<bool> login({required String serverUrl,required String username,required String password,Map<String, String> customHeaders = const {},+ AppLocalizations? l,}) async {_errorMessage = null;@@ -224,7 +232,7 @@ class AuthProvider extends ChangeNotifier {// Check server reachabilityfinal reachable = await ApiService.pingServer(url, customHeaders: customHeaders);if (!reachable) {- _errorMessage = 'Cannot reach server at $url';+ _errorMessage = l?.authCannotReachServer(url) ?? 'Cannot reach server at $url';return false;}@@ -238,15 +246,15 @@ class AuthProvider extends ChangeNotifier {if (result == null) {_errorMessage = statusCode == 401- ? 'Invalid username or password'- : 'Login failed - check your server address and credentials';+ ? (l?.authInvalidUsernameOrPassword ?? 'Invalid username or password')+ : (l?.authLoginFailedDetail ?? 'Login failed - check your server address and credentials');return false;}// Extract user infofinal user = result['user'] as Map<String, dynamic>?;if (user == null) {- _errorMessage = 'Unexpected server response';+ _errorMessage = l?.authUnexpectedServerResponse ?? 'Unexpected server response';return false;}@@ -314,9 +322,13 @@ class AuthProvider extends ChangeNotifier {/// Login using OIDC callback response data./// [result] is the JSON from /auth/openid/callback — same shape as /login response.+ ///+ /// [l] is used to localize error messages stored in [errorMessage]. If null,+ /// English fallbacks are used.Future<bool> loginWithOidc({required String serverUrl,required Map<String, dynamic> result,+ AppLocalizations? l,}) async {_errorMessage = null;@@ -325,7 +337,7 @@ class AuthProvider extends ChangeNotifier {final user = result['user'] as Map<String, dynamic>?;if (user == null) {- _errorMessage = 'SSO returned an unexpected response';+ _errorMessage = l?.authSsoUnexpectedResponse ?? 'SSO returned an unexpected response';notifyListeners();return false;}@@ -411,9 +423,11 @@ class AuthProvider extends ChangeNotifier {if (_useLocalServer != wasLocal) {debugPrint('[Auth] Local server switch: useLocal=$_useLocalServer');SocketService().switchServer(activeServerUrl!);+ final ctx = rootNavigatorKey.currentContext;+ final l = ctx != null ? AppLocalizations.of(ctx) : null;_showServerToast(_useLocalServer- ? 'Switched to local server'- : 'Switched to remote server');+ ? (l?.authSwitchedToLocalServer ?? 'Switched to local server')+ : (l?.authSwitchedToRemoteServer ?? 'Switched to remote server'));notifyListeners();}}@@ -426,7 +440,9 @@ class AuthProvider extends ChangeNotifier {if (_serverUrl != null) {SocketService().switchServer(_serverUrl!);}- _showServerToast('Switched to remote server');+ final ctx = rootNavigatorKey.currentContext;+ final l = ctx != null ? AppLocalizations.of(ctx) : null;+ _showServerToast(l?.authSwitchedToRemoteServer ?? 'Switched to remote server');notifyListeners();}diff --git a/lib/providers/library_provider.dart b/lib/providers/library_provider.dartindex 6833f36a..1dabae3d 100644--- a/lib/providers/library_provider.dart+++ b/lib/providers/library_provider.dart@@ -15,7 +15,8 @@ import '../services/chromecast_service.dart';import '../services/bookmark_service.dart';import '../services/session_cache.dart';import '../services/socket_service.dart';-import '../main.dart' show scaffoldMessengerKey;+import '../l10n/app_localizations.dart';+import '../main.dart' show scaffoldMessengerKey, rootNavigatorKey;part '_lp_state.dart';part '_lp_core.dart';diff --git a/lib/screens/absorbing_screen.dart b/lib/screens/absorbing_screen.dartindex 761399e3..9b728bdc 100644--- a/lib/screens/absorbing_screen.dart+++ b/lib/screens/absorbing_screen.dart@@ -10,6 +10,7 @@ import '../services/scoped_prefs.dart';import '../widgets/absorb_page_header.dart';import '../main.dart' show oledNotifier;import '../widgets/absorbing_card.dart';+import '../l10n/app_localizations.dart';class AbsorbingScreen extends StatefulWidget {const AbsorbingScreen({super.key});@@ -452,6 +453,7 @@ class _AbsorbingScreenState extends State<AbsorbingScreen> {_loadQueueMode(); // refresh for current library typefinal cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final scaffoldBg = Theme.of(context).scaffoldBackgroundColor;final lowerFade = Color.lerp(cs.surface, scaffoldBg, 0.55) ?? scaffoldBg;final lib = context.watch<LibraryProvider>();@@ -518,7 +520,7 @@ class _AbsorbingScreenState extends State<AbsorbingScreen> {children: [// ── Header ──AbsorbPageHeader(- title: 'Absorbing',+ title: l.absorbingTitle,padding: const EdgeInsets.fromLTRB(20, 12, 20, 0),trailing: GestureDetector(onTap: () {@@ -563,7 +565,7 @@ class _AbsorbingScreenState extends State<AbsorbingScreen> {elseIcon(Icons.stop_rounded, size: 18, color: muted),const SizedBox(width: 4),- Text('Stop', style: TextStyle(color: muted, fontSize: 13, fontWeight: FontWeight.w500)),+ Text(l.absorbingStop, style: TextStyle(color: muted, fontSize: 13, fontWeight: FontWeight.w500)),],),),@@ -608,8 +610,8 @@ class _AbsorbingScreenState extends State<AbsorbingScreen> {const SizedBox(width: 4),Text(_queueMode == 'auto_next'- ? (_mergeLibraries ? 'Auto' : lib.isPodcastLibrary ? 'Show' : 'Series')- : 'Manual',+ ? (_mergeLibraries ? l.queueModeAuto : lib.isPodcastLibrary ? l.queueModeShowLabel : l.queueModeSeriesLabel)+ : l.queueModeManual,style: TextStyle(fontSize: 10, fontWeight: FontWeight.w600, color: cs.primary),),],@@ -631,7 +633,7 @@ class _AbsorbingScreenState extends State<AbsorbingScreen> {child: showBlockingLoader? Center(child: CircularProgressIndicator(strokeWidth: 2, color: cs.onSurface.withValues(alpha: 0.24))): books.isEmpty- ? _emptyState(cs, tt, effectiveOffline)+ ? _emptyState(cs, tt, effectiveOffline, l): books.length == 1? LayoutBuilder(builder: (context, constraints) {@@ -701,7 +703,7 @@ class _AbsorbingScreenState extends State<AbsorbingScreen> {);}- Widget _emptyState(ColorScheme cs, TextTheme tt, bool isOffline) {+ Widget _emptyState(ColorScheme cs, TextTheme tt, bool isOffline, AppLocalizations l) {final lib = context.read<LibraryProvider>();final isPod = lib.isPodcastLibrary;return Center(@@ -713,13 +715,13 @@ class _AbsorbingScreenState extends State<AbsorbingScreen> {size: 64, color: cs.onSurface.withValues(alpha: 0.15)),const SizedBox(height: 16),Text(isOffline- ? (isPod ? 'No downloaded episodes' : 'No downloaded books')- : (isPod ? 'Nothing playing yet' : 'Nothing absorbing yet'),+ ? (isPod ? l.absorbingNoDownloadedEpisodes : l.absorbingNoDownloadedBooks)+ : (isPod ? l.absorbingNothingPlayingYet : l.absorbingNothingAbsorbingYet),style: tt.titleMedium?.copyWith(color: cs.onSurfaceVariant)),const SizedBox(height: 8),Text(isOffline- ? (isPod ? 'Download episodes to listen offline' : 'Download books to listen offline')- : (isPod ? 'Start an episode from the Shows tab' : 'Start a book from the Library tab'),+ ? (isPod ? l.absorbingDownloadEpisodesToListen : l.absorbingDownloadBooksToListen)+ : (isPod ? l.absorbingStartEpisodeFromShows : l.absorbingStartBookFromLibrary),style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.24))),],),@@ -870,6 +872,7 @@ class _ReorderAbsorbingSheetState extends State<_ReorderAbsorbingSheet> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final bottomInset = MediaQuery.of(context).viewPadding.bottom;return Container(@@ -891,14 +894,14 @@ class _ReorderAbsorbingSheetState extends State<_ReorderAbsorbingSheet> {Padding(padding: const EdgeInsets.fromLTRB(16, 12, 8, 8),child: Row(children: [- Expanded(child: Text('Manage Queue',+ Expanded(child: Text(l.absorbingManageQueue,style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600))),TextButton(onPressed: () {widget.lib.reorderAbsorbing(_order);Navigator.pop(context);},- child: const Text('Done'),+ child: Text(l.absorbingDone),),]),),@@ -907,10 +910,10 @@ class _ReorderAbsorbingSheetState extends State<_ReorderAbsorbingSheet> {padding: const EdgeInsets.fromLTRB(16, 0, 16, 8),child: SegmentedButton<String>(segments: [- const ButtonSegment(value: 'off', icon: Icon(Icons.stop_rounded, size: 16), label: Text('Off')),- const ButtonSegment(value: 'manual', icon: Icon(Icons.queue_music_rounded, size: 16), label: Text('Manual')),+ ButtonSegment(value: 'off', icon: const Icon(Icons.stop_rounded, size: 16), label: Text(l.queueModeOff)),+ ButtonSegment(value: 'manual', icon: const Icon(Icons.queue_music_rounded, size: 16), label: Text(l.queueModeManual)),ButtonSegment(value: 'auto_next', icon: const Icon(Icons.skip_next_rounded, size: 16),- label: Text(widget.isMerged ? 'Auto' : widget.isPodcast ? 'Show' : 'Series')),+ label: Text(widget.isMerged ? l.queueModeAuto : widget.isPodcast ? l.queueModeShowLabel : l.queueModeSeriesLabel)),],selected: {_queueMode},onSelectionChanged: (v) {@@ -955,7 +958,7 @@ class _ReorderAbsorbingSheetState extends State<_ReorderAbsorbingSheet> {final media = book['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? l.unknown;final author = metadata['authorName'] as String? ?? '';final re = book['recentEpisode'] as Map<String, dynamic>?;final epTitle = re?['title'] as String?;diff --git a/lib/screens/admin_podcasts_screen.dart b/lib/screens/admin_podcasts_screen.dartindex 325090ab..e27ff6c1 100644--- a/lib/screens/admin_podcasts_screen.dart+++ b/lib/screens/admin_podcasts_screen.dart@@ -5,6 +5,7 @@ import 'package:provider/provider.dart';import '../providers/auth_provider.dart';import '../widgets/absorb_page_header.dart';import '../widgets/html_description.dart';+import '../l10n/app_localizations.dart';class AdminPodcastsScreen extends StatefulWidget {final Map<String, dynamic> library;@@ -43,12 +44,13 @@ class _AdminPodcastsScreenState extends State<AdminPodcastsScreen> {}void _confirmCheckNewEpisodes(ColorScheme cs, TextTheme tt) {+ final l = AppLocalizations.of(context)!;showDialog(context: context, builder: (ctx) => AlertDialog(- title: const Text('Check for New Episodes'),- content: const Text('This will check RSS feeds for all podcasts and download any new episodes found (if auto-download is enabled).'),+ title: Text(l.adminPodcastsCheckNewEpisodesTitle),+ content: Text(l.adminPodcastsCheckNewEpisodesContent),actions: [- TextButton(onPressed: () => Navigator.pop(ctx), child: const Text('Cancel')),- TextButton(onPressed: () { Navigator.pop(ctx); _checkNewEpisodes(); }, child: const Text('Check')),+ TextButton(onPressed: () => Navigator.pop(ctx), child: Text(l.cancel)),+ TextButton(onPressed: () { Navigator.pop(ctx); _checkNewEpisodes(); }, child: Text(l.adminPodcastsCheck)),],));}@@ -58,9 +60,10 @@ class _AdminPodcastsScreenState extends State<AdminPodcastsScreen> {setState(() => _checkingEpisodes = true);final ok = await api.checkNewEpisodes(_libraryId);if (mounted) {+ final l = AppLocalizations.of(context)!;setState(() => _checkingEpisodes = false);ScaffoldMessenger.of(context)..clearSnackBars()..showSnackBar(SnackBar(- content: Text(ok ? 'Checking for new episodes…' : 'Failed to check episodes'),+ content: Text(ok ? l.adminPodcastsCheckingForNew : l.adminPodcastsFailedCheckEpisodes),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))));if (ok) Future.delayed(const Duration(seconds: 3), _loadShows);@@ -71,6 +74,7 @@ class _AdminPodcastsScreenState extends State<AdminPodcastsScreen> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Scaffold(backgroundColor: Theme.of(context).scaffoldBackgroundColor,@@ -83,13 +87,13 @@ class _AdminPodcastsScreenState extends State<AdminPodcastsScreen> {Padding(padding: const EdgeInsets.fromLTRB(20, 12, 8, 0),child: Row(children: [- const Expanded(child: AbsorbPageHeader(title: 'Podcasts', padding: EdgeInsets.zero)),+ Expanded(child: AbsorbPageHeader(title: l.adminPodcasts, padding: EdgeInsets.zero)),_checkingEpisodes? Padding(padding: const EdgeInsets.all(12),child: SizedBox(width: 18, height: 18, child: CircularProgressIndicator(strokeWidth: 1.5, color: cs.onSurfaceVariant.withValues(alpha: 0.6)))): IconButton(icon: Icon(Icons.cloud_download_rounded, color: cs.onSurfaceVariant.withValues(alpha: 0.6), size: 22),- tooltip: 'Check feeds for new episodes',+ tooltip: l.adminPodcastsCheckFeedsTooltip,onPressed: () => _confirmCheckNewEpisodes(cs, tt)),IconButton(icon: Icon(Icons.close_rounded, color: cs.onSurfaceVariant.withValues(alpha: 0.6)), onPressed: () => Navigator.pop(context)),]),@@ -107,13 +111,14 @@ class _AdminPodcastsScreenState extends State<AdminPodcastsScreen> {// ─── Show List ──────────────────────────────────────────────Widget _buildShowList(ColorScheme cs, TextTheme tt) {+ final l = AppLocalizations.of(context)!;if (_shows.isEmpty) {return Center(child: Column(mainAxisSize: MainAxisSize.min, children: [Icon(Icons.podcasts_rounded, size: 48, color: cs.onSurface.withValues(alpha: 0.1)),const SizedBox(height: 12),- Text('No podcasts yet', style: tt.bodyMedium?.copyWith(color: cs.onSurface.withValues(alpha: 0.3))),+ Text(l.adminPodcastsNoPodcastsYet, style: tt.bodyMedium?.copyWith(color: cs.onSurface.withValues(alpha: 0.3))),const SizedBox(height: 4),- Text('Tap + to search and add shows', style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.2))),+ Text(l.adminPodcastsTapPlusHint, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.2))),]));}@@ -124,7 +129,7 @@ class _AdminPodcastsScreenState extends State<AdminPodcastsScreen> {final item = _shows[i] as Map<String, dynamic>;final media = item['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? l.unknown;final author = metadata['author'] as String? ?? '';final numEps = media['numEpisodes'] as int??? (media['episodes'] as List?)?.length@@ -147,7 +152,7 @@ class _AdminPodcastsScreenState extends State<AdminPodcastsScreen> {if (author.isNotEmpty) ...[const SizedBox(height: 2),Text(author, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.6)), maxLines: 1, overflow: TextOverflow.ellipsis)],const SizedBox(height: 4),- Text('$numEps episodes', style: tt.labelSmall?.copyWith(color: cs.primary.withValues(alpha: 0.7), fontSize: 11)),+ Text(l.adminPodcastsEpisodesCount(numEps), style: tt.labelSmall?.copyWith(color: cs.primary.withValues(alpha: 0.7), fontSize: 11)),])),Icon(Icons.chevron_right_rounded, color: cs.onSurface.withValues(alpha: 0.15)),]),@@ -204,26 +209,31 @@ class _PodcastSearchSheetState extends State<_PodcastSearchSheet> {bool _searching = false;List<dynamic> _results = [];- // Discover state- static const _genres = <int, String>{- 0: 'All',- 1301: 'Arts',- 1303: 'Comedy',- 1304: 'Education',- 1309: 'TV & Film',- 1310: 'Music',- 1311: 'News',- 1314: 'Religion',- 1315: 'Science',- 1316: 'Sports',- 1318: 'Technology',- 1321: 'Business',- 1323: 'Fiction',- 1324: 'Society & Culture',- 1325: 'Health & Fitness',- 1326: 'True Crime',- 1487: 'History',- 1488: 'Kids & Family',+ // Discover state - localized labels are read in build via _genreLabels(l).+ static const _genreIds = <int>[+ 0, 1301, 1303, 1304, 1309, 1310, 1311, 1314, 1315, 1316,+ 1318, 1321, 1323, 1324, 1325, 1326, 1487, 1488,+ ];++ Map<int, String> _genreLabels(AppLocalizations l) => {+ 0: l.adminPodcastsGenreAll,+ 1301: l.adminPodcastsGenreArts,+ 1303: l.adminPodcastsGenreComedy,+ 1304: l.adminPodcastsGenreEducation,+ 1309: l.adminPodcastsGenreTvFilm,+ 1310: l.adminPodcastsGenreMusic,+ 1311: l.adminPodcastsGenreNews,+ 1314: l.adminPodcastsGenreReligion,+ 1315: l.adminPodcastsGenreScience,+ 1316: l.adminPodcastsGenreSports,+ 1318: l.adminPodcastsGenreTechnology,+ 1321: l.adminPodcastsGenreBusiness,+ 1323: l.adminPodcastsGenreFiction,+ 1324: l.adminPodcastsGenreSocietyCulture,+ 1325: l.adminPodcastsGenreHealthFitness,+ 1326: l.adminPodcastsGenreTrueCrime,+ 1487: l.adminPodcastsGenreHistory,+ 1488: l.adminPodcastsGenreKidsFamily,};int _selectedGenre = 0;bool _loadingChart = true;@@ -275,7 +285,7 @@ class _PodcastSearchSheetState extends State<_PodcastSearchSheet> {}}ScaffoldMessenger.of(context)..clearSnackBars()..showSnackBar(SnackBar(- content: const Text('Could not find podcast feed'),+ content: Text(AppLocalizations.of(context)!.adminPodcastsCouldNotFindFeed),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))));} catch (_) {@@ -331,6 +341,7 @@ class _PodcastSearchSheetState extends State<_PodcastSearchSheet> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Container(decoration: BoxDecoration(@@ -350,7 +361,7 @@ class _PodcastSearchSheetState extends State<_PodcastSearchSheet> {child: Row(children: [Expanded(- child: Text('Add Podcast', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700, color: cs.onSurface)),+ child: Text(l.adminPodcastsAddPodcast, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700, color: cs.onSurface)),),IconButton(icon: Icon(Icons.close_rounded, color: cs.onSurfaceVariant.withValues(alpha: 0.6), size: 20),@@ -376,6 +387,8 @@ class _PodcastSearchSheetState extends State<_PodcastSearchSheet> {}Widget _buildDiscover(ColorScheme cs, TextTheme tt, ScrollController sc) {+ final l = AppLocalizations.of(context)!;+ final genres = _genreLabels(l);return Column(children: [// Genre chipsSizedBox(@@ -383,12 +396,12 @@ class _PodcastSearchSheetState extends State<_PodcastSearchSheet> {child: ListView(scrollDirection: Axis.horizontal,padding: const EdgeInsets.fromLTRB(16, 4, 16, 4),- children: _genres.entries.map((e) {- final selected = _selectedGenre == e.key;+ children: _genreIds.map((id) {+ final selected = _selectedGenre == id;return Padding(padding: const EdgeInsets.only(right: 6),child: GestureDetector(- onTap: () { setState(() => _selectedGenre = e.key); _loadChart(); },+ onTap: () { setState(() => _selectedGenre = id); _loadChart(); },child: Container(padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),decoration: BoxDecoration(@@ -396,7 +409,7 @@ class _PodcastSearchSheetState extends State<_PodcastSearchSheet> {borderRadius: BorderRadius.circular(20),border: Border.all(color: selected ? cs.primary.withValues(alpha: 0.4) : cs.onSurface.withValues(alpha: 0.06)),),- child: Text(e.value, style: tt.labelSmall?.copyWith(+ child: Text(genres[id] ?? '', style: tt.labelSmall?.copyWith(color: selected ? cs.primary : cs.onSurface.withValues(alpha: 0.5),fontWeight: selected ? FontWeight.w700 : FontWeight.w500, fontSize: 12)),),@@ -411,7 +424,7 @@ class _PodcastSearchSheetState extends State<_PodcastSearchSheet> {child: _loadingChart? const Center(child: CircularProgressIndicator(strokeWidth: 2)): _chartResults.isEmpty- ? Center(child: Text('No podcasts found', style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.24))))+ ? Center(child: Text(l.adminPodcastsNoPodcastsFound, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.24)))): ListView.builder(controller: sc,padding: const EdgeInsets.fromLTRB(16, 4, 16, 32),@@ -475,6 +488,7 @@ class _PodcastSearchSheetState extends State<_PodcastSearchSheet> {}Widget _buildSearchBar(ColorScheme cs, TextTheme tt) {+ final l = AppLocalizations.of(context)!;return Padding(padding: const EdgeInsets.fromLTRB(16, 12, 16, 8),child: TextField(@@ -483,7 +497,7 @@ class _PodcastSearchSheetState extends State<_PodcastSearchSheet> {style: TextStyle(color: cs.onSurface),onSubmitted: (_) => _search(),decoration: InputDecoration(- hintText: 'Search for podcasts…',+ hintText: l.adminPodcastsSearchHint,hintStyle: TextStyle(color: cs.onSurface.withValues(alpha: 0.25)),prefixIcon: Icon(Icons.search_rounded, color: cs.onSurface.withValues(alpha: 0.3)),suffixIcon: _searching@@ -502,13 +516,14 @@ class _PodcastSearchSheetState extends State<_PodcastSearchSheet> {}Widget _buildResultsList(ColorScheme cs, TextTheme tt, ScrollController sc) {+ final l = AppLocalizations.of(context)!;return ListView.builder(controller: sc,padding: const EdgeInsets.fromLTRB(16, 8, 16, 32),itemCount: _results.length,itemBuilder: (_, i) {final pod = _extractPod(_results[i]);- final title = pod['title'] as String? ?? pod['trackName'] as String? ?? pod['collectionName'] as String? ?? 'Unknown';+ final title = pod['title'] as String? ?? pod['trackName'] as String? ?? pod['collectionName'] as String? ?? l.unknown;final author = pod['artistName'] as String? ?? pod['author'] as String? ?? '';final imageUrl = _getImageUrl(pod);final episodeCount = pod['trackCount'] as int?;@@ -523,23 +538,23 @@ class _PodcastSearchSheetState extends State<_PodcastSearchSheet> {final now = DateTime.now();final diff = now.difference(dt);if (diff.inDays < 1) {- releaseDateStr = 'Today';+ releaseDateStr = l.adminPodcastsRelToday;} else if (diff.inDays < 7) {- releaseDateStr = '${diff.inDays}d ago';+ releaseDateStr = l.daysAgo(diff.inDays);} else if (diff.inDays < 30) {- releaseDateStr = '${(diff.inDays / 7).floor()}w ago';+ releaseDateStr = l.adminPodcastsWeeksAgo((diff.inDays / 7).floor());} else if (diff.inDays < 365) {- releaseDateStr = '${(diff.inDays / 30).floor()}mo ago';+ releaseDateStr = l.adminPodcastsMonthsAgo((diff.inDays / 30).floor());} else {- releaseDateStr = '${(diff.inDays / 365).floor()}y ago';+ releaseDateStr = l.adminPodcastsYearsAgo((diff.inDays / 365).floor());}} catch (_) {}}// Build metadata chipsfinal metaParts = <String>[- if (episodeCount != null) '$episodeCount episodes',- if (releaseDateStr != null) 'Updated $releaseDateStr',+ if (episodeCount != null) l.adminPodcastsEpisodesCount(episodeCount),+ if (releaseDateStr != null) l.adminPodcastsUpdated(releaseDateStr),];return Padding(@@ -632,7 +647,7 @@ class _PodcastPreviewScreenState extends State<_PodcastPreviewScreen> {List<dynamic> _feedEpisodes = [];Map<String, dynamic> get _pod => widget.podcast;- String get _title => _pod['title'] as String? ?? _pod['trackName'] as String? ?? _pod['collectionName'] as String? ?? 'Podcast';+ String get _title => _pod['title'] as String? ?? _pod['trackName'] as String? ?? _pod['collectionName'] as String? ?? AppLocalizations.of(context)!.adminPodcastsPodcastFallback;String get _author => _pod['artistName'] as String? ?? _pod['author'] as String? ?? '';String get _feedUrl => _pod['feedUrl'] as String? ?? '';String get _imageUrl =>@@ -666,7 +681,8 @@ class _PodcastPreviewScreenState extends State<_PodcastPreviewScreen> {}Future<void> _addPodcast() async {- if (_feedUrl.isEmpty) { _msg('No feed URL found'); return; }+ final l = AppLocalizations.of(context)!;+ if (_feedUrl.isEmpty) { _msg(l.adminPodcastsNoFeedFound); return; }final api = context.read<AuthProvider>().apiService;if (api == null) return;setState(() => _adding = true);@@ -677,13 +693,14 @@ class _PodcastPreviewScreenState extends State<_PodcastPreviewScreen> {podcastData: _pod,);if (mounted) {+ final l2 = AppLocalizations.of(context)!;setState(() => _adding = false);if (result != null) {widget.onAdded();Navigator.pop(context);- _msg('$_title added to library');+ _msg(l2.adminPodcastsAddedToLibrary(_title));} else {- _msg('Failed to add $_title');+ _msg(l2.adminPodcastsFailedToAdd(_title));}}}@@ -692,6 +709,7 @@ class _PodcastPreviewScreenState extends State<_PodcastPreviewScreen> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Scaffold(backgroundColor: Theme.of(context).scaffoldBackgroundColor,@@ -794,14 +812,14 @@ class _PodcastPreviewScreenState extends State<_PodcastPreviewScreen> {)else if (_feedEpisodes.isNotEmpty) ...[Text(- '${_feedEpisodes.length} episodes in feed',+ l.adminPodcastsEpisodesInFeed(_feedEpisodes.length),style: tt.labelMedium?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.6), fontWeight: FontWeight.w600),),const SizedBox(height: 8),// Show first 5 episodes as preview...(_feedEpisodes.take(5).map((ep) {final epMap = ep as Map<String, dynamic>;- final epTitle = epMap['title'] as String? ?? 'Episode';+ final epTitle = epMap['title'] as String? ?? l.adminPodcastsEpisodeFallback;return Padding(padding: const EdgeInsets.only(bottom: 4),child: Container(@@ -823,7 +841,7 @@ class _PodcastPreviewScreenState extends State<_PodcastPreviewScreen> {Padding(padding: const EdgeInsets.only(top: 4),child: Text(- '+ ${_feedEpisodes.length - 5} more episodes',+ l.adminPodcastsMoreEpisodes(_feedEpisodes.length - 5),style: tt.labelSmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.24)),textAlign: TextAlign.center,),@@ -844,7 +862,7 @@ class _PodcastPreviewScreenState extends State<_PodcastPreviewScreen> {icon: _adding? SizedBox(width: 18, height: 18, child: CircularProgressIndicator(strokeWidth: 2, color: cs.onSurface)): const Icon(Icons.add_rounded),- label: Text(_adding ? 'Adding…' : 'Add to Library', style: const TextStyle(fontWeight: FontWeight.w700)),+ label: Text(_adding ? l.adminPodcastsAdding : l.adminPodcastsAddToLibrary, style: const TextStyle(fontWeight: FontWeight.w700)),style: FilledButton.styleFrom(backgroundColor: cs.primary,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14)),@@ -902,7 +920,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTMap<String, dynamic> get _media => _item['media'] as Map<String, dynamic>? ?? {};Map<String, dynamic> get _metadata => _media['metadata'] as Map<String, dynamic>? ?? {};List<dynamic> get _episodes => _media['episodes'] as List? ?? [];- String get _title => _metadata['title'] as String? ?? 'Podcast';+ String get _title => _metadata['title'] as String? ?? AppLocalizations.of(context)!.adminPodcastsPodcastFallback;String get _feedUrl => _metadata['feedUrl'] as String? ?? _media['feedUrl'] as String? ?? '';@override@@ -938,18 +956,20 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTvoid dispose() { _pollingQueue = false; _tabCtrl.removeListener(_onTabChanged); _tabCtrl.dispose(); super.dispose(); }Future<void> _removeShow() async {+ final l = AppLocalizations.of(context)!;final yes = await showDialog<bool>(context: context, builder: (ctx) => AlertDialog(- title: const Text('Remove Show?'),- content: Text('Remove "$_title" and all its episodes from the server? This cannot be undone.'),- actions: [TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),- TextButton(onPressed: () => Navigator.pop(ctx, true), child: Text('Remove', style: TextStyle(color: Colors.red.shade300)))],+ title: Text(l.adminPodcastsRemoveShowTitle),+ content: Text(l.adminPodcastsRemoveShowContent(_title)),+ actions: [TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ TextButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.remove, style: TextStyle(color: Colors.red.shade300)))],));if (yes != true) return;final api = context.read<AuthProvider>().apiService; if (api == null) return;final ok = await api.deleteLibraryItem(_podcastId);if (mounted) {- if (ok) { _msg('Removed "$_title"'); widget.onChanged(); Navigator.pop(context); }- else _msg('Failed to remove show');+ final l2 = AppLocalizations.of(context)!;+ if (ok) { _msg(l2.adminPodcastsRemovedShow(_title)); widget.onChanged(); Navigator.pop(context); }+ else _msg(l2.adminPodcastsFailedRemoveShow);}}@@ -966,7 +986,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleT}Future<void> _loadFeed() async {- if (_feedUrl.isEmpty) { _msg('No feed URL available'); return; }+ if (_feedUrl.isEmpty) { _msg(AppLocalizations.of(context)!.adminPodcastsNoFeedAvailable); return; }final api = context.read<AuthProvider>().apiService; if (api == null) return;setState(() => _loadingFeed = true);final result = await api.getPodcastFeed(_feedUrl);@@ -1014,32 +1034,39 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTsetState(() => _downloading.add(epKey));final ok = await api.downloadPodcastEpisodes(_podcastId, [feedEp]);if (mounted) {+ final l = AppLocalizations.of(context)!;setState(() => _downloading.remove(epKey));- _msg(ok ? 'Downloading "$epTitle"' : 'Failed to download');+ _msg(ok ? l.adminPodcastsDownloadingEpisode(epTitle) : l.adminPodcastsFailedDownload);if (ok) _pollDownloadQueue();}widget.onChanged();}Future<void> _deleteEpisode(String episodeId, String epTitle) async {+ final l = AppLocalizations.of(context)!;final yes = await showDialog<bool>(context: context, builder: (ctx) => AlertDialog(- title: const Text('Delete Episode?'),- content: Text('Delete "$epTitle"?'),- actions: [TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),- TextButton(onPressed: () => Navigator.pop(ctx, true), child: Text('Delete', style: TextStyle(color: Colors.red.shade300)))],+ title: Text(l.adminPodcastsDeleteEpisodeTitle),+ content: Text(l.adminPodcastsDeleteEpisodeContent(epTitle)),+ actions: [TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ TextButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.delete, style: TextStyle(color: Colors.red.shade300)))],));if (yes != true) return;final api = context.read<AuthProvider>().apiService; if (api == null) return;setState(() => _deleting.add(episodeId));final ok = await api.deletePodcastEpisode(_podcastId, episodeId);- if (mounted) { setState(() => _deleting.remove(episodeId)); _msg(ok ? 'Deleted' : 'Failed');- if (ok) { _reloadItem(); widget.onChanged(); } }+ if (mounted) {+ final l2 = AppLocalizations.of(context)!;+ setState(() => _deleting.remove(episodeId));+ _msg(ok ? l2.adminPodcastsDeleted : l2.adminPodcastsFailed);+ if (ok) { _reloadItem(); widget.onChanged(); }+ }}@overrideWidget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final auth = context.read<AuthProvider>();final coverUrl = '${auth.serverUrl}/api/items/$_podcastId/cover?token=${auth.token}';final author = _metadata['author'] as String? ?? '';@@ -1059,7 +1086,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTcolor: (_isSelectingDownloaded || _isSelecting) ? cs.primary : cs.onSurface.withValues(alpha: 0.3),size: 22,),- tooltip: 'Select multiple',+ tooltip: l.adminPodcastsSelectMultipleTooltip,onPressed: () => setState(() {if (_tabCtrl.index == 0) {if (_isSelectingDownloaded) _selectedDownloadedIds.clear(); else _enterDownloadedSelectMode();@@ -1069,7 +1096,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleT}),),if (auth.isRoot)- IconButton(icon: Icon(Icons.delete_outline_rounded, color: Colors.red.shade300, size: 22), tooltip: 'Remove show', onPressed: _removeShow),+ IconButton(icon: Icon(Icons.delete_outline_rounded, color: Colors.red.shade300, size: 22), tooltip: l.adminPodcastsRemoveShowTooltip, onPressed: _removeShow),])),// Show info@@ -1087,7 +1114,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTif (author.isNotEmpty) ...[const SizedBox(height: 2),Text(author, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.6)))],const SizedBox(height: 6),- Text('${_episodes.length} downloaded', style: tt.labelSmall?.copyWith(color: cs.primary.withValues(alpha: 0.7), fontSize: 11)),+ Text(l.adminPodcastsDownloadedCount(_episodes.length), style: tt.labelSmall?.copyWith(color: cs.primary.withValues(alpha: 0.7), fontSize: 11)),])),])),@@ -1099,7 +1126,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTindicatorColor: cs.primary,indicatorSize: TabBarIndicatorSize.label,dividerColor: cs.onSurface.withValues(alpha: 0.06),- tabs: const [Tab(text: 'Downloaded'), Tab(text: 'Feed'), Tab(text: 'Settings')],+ tabs: [Tab(text: l.adminPodcastsTabDownloaded), Tab(text: l.adminPodcastsTabFeed), Tab(text: l.adminPodcastsTabSettings)],onTap: (i) {if (i == 1 && _feedEpisodes.isEmpty && !_loadingFeed) _loadFeed();},@@ -1144,12 +1171,13 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTFuture<void> _deleteSelected() async {if (_selectedDownloadedIds.isEmpty) return;final count = _selectedDownloadedIds.length;+ final l = AppLocalizations.of(context)!;final yes = await showDialog<bool>(context: context, builder: (ctx) => AlertDialog(- title: const Text('Delete Episodes?'),- content: Text('Delete $count episode${count == 1 ? '' : 's'} from the server?'),+ title: Text(l.adminPodcastsDeleteEpisodesTitle),+ content: Text(l.adminPodcastsDeleteEpisodesContent(count)),actions: [- TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),- TextButton(onPressed: () => Navigator.pop(ctx, true), child: Text('Delete', style: TextStyle(color: Colors.red.shade300))),+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ TextButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.delete, style: TextStyle(color: Colors.red.shade300))),],));if (yes != true) return;@@ -1162,13 +1190,14 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTif (ok) deleted++;}if (mounted) {- _msg('Deleted $deleted episode${deleted == 1 ? '' : 's'}');+ _msg(AppLocalizations.of(context)!.adminPodcastsDeletedEpisodes(deleted));_reloadItem();widget.onChanged();}}Widget _buildDownloadedTab(ColorScheme cs, TextTheme tt) {+ final l = AppLocalizations.of(context)!;// Build list: active downloads first, then downloaded episodesfinal queueItems = <Map<String, dynamic>>[];if (_currentDownload != null) queueItems.add(_currentDownload!);@@ -1180,11 +1209,11 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTreturn Center(child: Column(mainAxisSize: MainAxisSize.min, children: [Icon(Icons.download_done_rounded, size: 40, color: cs.onSurface.withValues(alpha: 0.1)),const SizedBox(height: 8),- Text('No downloaded episodes', style: tt.bodyMedium?.copyWith(color: cs.onSurface.withValues(alpha: 0.3))),+ Text(l.absorbingNoDownloadedEpisodes, style: tt.bodyMedium?.copyWith(color: cs.onSurface.withValues(alpha: 0.3))),const SizedBox(height: 8),GestureDetector(onTap: () { _tabCtrl.animateTo(1); if (_feedEpisodes.isEmpty && !_loadingFeed) _loadFeed(); },- child: Text('Browse feed to download', style: tt.bodySmall?.copyWith(color: cs.primary))),+ child: Text(l.adminPodcastsBrowseFeedToDownload, style: tt.bodySmall?.copyWith(color: cs.primary))),]));}@@ -1204,7 +1233,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTif (i < queueItems.length) {final q = queueItems[i];final isActive = i == 0 && _currentDownload != null;- final title = q['episodeDisplayTitle'] as String? ?? 'Downloading...';+ final title = q['episodeDisplayTitle'] as String? ?? l.adminPodcastsDownloadingDots;return Padding(padding: const EdgeInsets.only(bottom: 6), child: Container(padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 10),decoration: BoxDecoration(@@ -1221,7 +1250,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTText(title, style: tt.bodySmall?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface),maxLines: 2, overflow: TextOverflow.ellipsis),const SizedBox(height: 2),- Text(isActive ? 'Downloading...' : 'Queued',+ Text(isActive ? l.adminPodcastsDownloadingDots : l.downloadsQueued,style: tt.labelSmall?.copyWith(color: cs.primary.withValues(alpha: 0.7), fontSize: 10)),])),]),@@ -1232,7 +1261,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTfinal idx = i - queueItems.length;final ep = sorted[idx] as Map<String, dynamic>;final epId = ep['id'] as String? ?? '';- final epTitle = ep['title']?.toString() ?? 'Episode';+ final epTitle = ep['title']?.toString() ?? l.adminPodcastsEpisodeFallback;final pubAt = ep['publishedAt'] as num?;final duration = ep['duration'];final durStr = duration is num ? _fmtDur(duration.toDouble())@@ -1308,7 +1337,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTchild: Row(mainAxisAlignment: MainAxisAlignment.center, children: [Icon(Icons.delete_outline_rounded, size: 18, color: Colors.white),const SizedBox(width: 8),- Text('Delete ${_selectedDownloadedIds.length} episode${_selectedDownloadedIds.length == 1 ? '' : 's'}',+ Text(l.adminPodcastsDeleteEpisodesCount(_selectedDownloadedIds.length),style: tt.bodySmall?.copyWith(color: Colors.white, fontWeight: FontWeight.w700)),]),),@@ -1356,21 +1385,23 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTfinal api = context.read<AuthProvider>().apiService; if (api == null) return;final ok = await api.downloadPodcastEpisodes(_podcastId, eps);if (mounted) {- _msg(ok ? 'Downloading $count episode${count == 1 ? '' : 's'}' : 'Failed to download');+ final l = AppLocalizations.of(context)!;+ _msg(ok ? l.adminPodcastsDownloadingCount(count) : l.adminPodcastsFailedDownload);if (ok) _pollDownloadQueue();}widget.onChanged();}Widget _buildFeedTab(ColorScheme cs, TextTheme tt) {+ final l = AppLocalizations.of(context)!;if (_loadingFeed) return const Center(child: CircularProgressIndicator(strokeWidth: 2));- if (_feedUrl.isEmpty) return Center(child: Text('No feed URL available', style: tt.bodyMedium?.copyWith(color: cs.onSurface.withValues(alpha: 0.3))));+ if (_feedUrl.isEmpty) return Center(child: Text(l.adminPodcastsNoFeedAvailable, style: tt.bodyMedium?.copyWith(color: cs.onSurface.withValues(alpha: 0.3))));if (_feedEpisodes.isEmpty) {return Center(child: Column(mainAxisSize: MainAxisSize.min, children: [- Text('No episodes found', style: tt.bodyMedium?.copyWith(color: cs.onSurface.withValues(alpha: 0.3))),+ Text(l.noEpisodesFound, style: tt.bodyMedium?.copyWith(color: cs.onSurface.withValues(alpha: 0.3))),const SizedBox(height: 8),GestureDetector(onTap: _loadFeed,- child: Text('Retry', style: tt.bodySmall?.copyWith(color: cs.primary))),+ child: Text(l.retry, style: tt.bodySmall?.copyWith(color: cs.primary))),]));}@@ -1384,7 +1415,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTitemCount: _feedEpisodes.length,itemBuilder: (_, i) {final ep = _feedEpisodes[i] as Map<String, dynamic>;- final epTitle = ep['title'] as String? ?? 'Episode';+ final epTitle = ep['title'] as String? ?? l.adminPodcastsEpisodeFallback;final pubDate = ep['publishedAt'] as num? ?? ep['pubDate'] as num?;final already = dlTitles.contains(epTitle.toLowerCase());final selected = _selectedFeedIndices.contains(i);@@ -1456,7 +1487,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTchild: Row(mainAxisAlignment: MainAxisAlignment.center, children: [Icon(Icons.download_rounded, size: 18, color: cs.onPrimary),const SizedBox(width: 8),- Text('Download ${_selectedFeedIndices.length} episode${_selectedFeedIndices.length == 1 ? '' : 's'}',+ Text(l.adminPodcastsDownloadEpisodesCount(_selectedFeedIndices.length),style: tt.bodySmall?.copyWith(color: cs.onPrimary, fontWeight: FontWeight.w700)),]),),@@ -1469,6 +1500,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleT// ─── Settings Tab ───────────────────────────────────────────Widget _buildSettingsTab(ColorScheme cs, TextTheme tt) {+ final l = AppLocalizations.of(context)!;final autoDownload = _media['autoDownloadEpisodes'] == true;return ListView(padding: const EdgeInsets.fromLTRB(16, 12, 16, 32), children: [@@ -1483,14 +1515,14 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTIcon(Icons.cloud_download_rounded, size: 20, color: cs.onSurfaceVariant),const SizedBox(width: 12),Expanded(child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [- Text('Check for New Episodes', style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),+ Text(l.adminPodcastsCheckNewEpisodesTitle, style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),const SizedBox(height: 2),- Text('Scan RSS feed and download new episodes', style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),+ Text(l.adminPodcastsCheckNewEpisodesSubtitle, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),])),]),const SizedBox(height: 12),// Date picker- Text('Look for episodes after', style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 10)),+ Text(l.adminPodcastsLookForEpisodesAfter, style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 10)),const SizedBox(height: 6),GestureDetector(onTap: () async {@@ -1523,7 +1555,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTIcon(Icons.calendar_today_rounded, size: 14, color: cs.onSurfaceVariant),const SizedBox(width: 8),Text(- _checkAfterDate != null ? _fmtDateTime(_checkAfterDate!) : 'Select date',+ _checkAfterDate != null ? _fmtDateTime(_checkAfterDate!) : l.adminPodcastsSelectDate,style: tt.bodySmall?.copyWith(color: cs.onSurface, fontWeight: FontWeight.w500),),const Spacer(),@@ -1533,7 +1565,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleT),const SizedBox(height: 12),// Limit chips- Text('Max episodes to download', style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 10)),+ Text(l.adminPodcastsMaxEpisodes, style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 10)),const SizedBox(height: 6),Wrap(spacing: 6, runSpacing: 6, children: [for (final n in [1, 3, 5, 10, 25])@@ -1563,27 +1595,27 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleT'lastEpisodeCheck': _checkAfterDate!.millisecondsSinceEpoch,});}- _msg('Checking for new episodes...');+ _msg(l.adminPodcastsCheckingForNewDots);final episodes = await api.checkNewPodcastEpisodes(_podcastId, limit: _checkLimit);if (!mounted) return;if (episodes != null) {_reloadItem();_loadFeed();if (episodes.isEmpty) {- _msg('No new episodes found after ${_fmtDate(_checkAfterDate!.millisecondsSinceEpoch)}');+ _msg(l.adminPodcastsNoNewEpisodesAfter(_fmtDate(_checkAfterDate!.millisecondsSinceEpoch)));} else {- _msg('Found ${episodes.length} new episode${episodes.length == 1 ? '' : 's'} - downloading');+ _msg(l.adminPodcastsFoundNewEpisodes(episodes.length));_pollDownloadQueue();}} else {- _msg('Failed to check for new episodes');+ _msg(l.adminPodcastsFailedToCheckNew);}},child: Container(width: double.infinity,padding: const EdgeInsets.symmetric(vertical: 10),decoration: BoxDecoration(color: cs.primary.withValues(alpha: 0.12), borderRadius: BorderRadius.circular(10)),- child: Center(child: Text('Check & Download', style: tt.bodySmall?.copyWith(color: cs.primary, fontWeight: FontWeight.w700))),+ child: Center(child: Text(l.adminPodcastsCheckAndDownload, style: tt.bodySmall?.copyWith(color: cs.primary, fontWeight: FontWeight.w700))),),),]),@@ -1601,9 +1633,9 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTIcon(Icons.auto_fix_high_rounded, size: 20, color: cs.onSurfaceVariant),const SizedBox(width: 12),Expanded(child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [- Text('Match Podcast', style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),+ Text(l.adminPodcastsMatchPodcast, style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),const SizedBox(height: 2),- Text('Search iTunes to update cover and metadata', style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),+ Text(l.adminPodcastsMatchPodcastSubtitle, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),])),Icon(Icons.chevron_right_rounded, size: 20, color: cs.onSurfaceVariant.withValues(alpha: 0.4)),]),@@ -1621,10 +1653,10 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTIcon(Icons.downloading_rounded, size: 20, color: cs.onSurfaceVariant),const SizedBox(width: 12),Expanded(child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [- Text('Auto-Download New Episodes', style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),+ Text(l.adminPodcastsAutoDownloadNewEpisodes, style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),const SizedBox(height: 2),Text(- isOn ? 'Server downloads new episodes automatically' : 'New episodes are not auto-downloaded',+ isOn ? l.adminPodcastsAutoDownloadOnSubtitle : l.adminPodcastsAutoDownloadOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant),),])),@@ -1647,7 +1679,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTif (!v) media.remove('autoDownloadSchedule');}} else {- _msg('Failed to update auto-download setting');+ _msg(l.adminPodcastsFailedAutoDownloadUpdate);}setLocalState(() {});setState(() {});@@ -1690,7 +1722,15 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleT});}- const days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];+ final days = [+ l.adminPodcastsDaySun,+ l.adminPodcastsDayMon,+ l.adminPodcastsDayTue,+ l.adminPodcastsDayWed,+ l.adminPodcastsDayThu,+ l.adminPodcastsDayFri,+ l.adminPodcastsDaySat,+ ];String timeLabel(int h, int m) {final period = h < 12 ? 'am' : 'pm';final displayH = h == 0 ? 12 : h > 12 ? h - 12 : h;@@ -1705,20 +1745,20 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTRow(children: [Icon(Icons.schedule_rounded, size: 20, color: cs.onSurfaceVariant),const SizedBox(width: 12),- Text('Check Schedule', style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),+ Text(l.adminPodcastsCheckSchedule, style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),]),const SizedBox(height: 10),// Frequency- Text('Frequency', style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 10)),+ Text(l.adminPodcastsFrequency, style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 10)),const SizedBox(height: 6),Wrap(spacing: 6, runSpacing: 6, children: [- for (final f in [('hourly', 'Hourly'), ('daily', 'Daily'), ('weekly', 'Weekly')])+ for (final f in [('hourly', l.adminPodcastsFreqHourly), ('daily', l.adminPodcastsFreqDaily), ('weekly', l.adminPodcastsFreqWeekly)])_scheduleChip(cs, tt, f.$2, f.$1, freq, () => saveCron(f.$1, hour, minute, dayOfWeek)),]),// Day of week (weekly only)if (freq == 'weekly') ...[const SizedBox(height: 12),- Text('Day', style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 10)),+ Text(l.adminPodcastsDay, style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 10)),const SizedBox(height: 6),Wrap(spacing: 6, runSpacing: 6, children: [for (int i = 0; i < 7; i++)@@ -1728,7 +1768,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleT// Time (daily/weekly only)if (freq != 'hourly') ...[const SizedBox(height: 12),- Text('Time', style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 10)),+ Text(l.adminPodcastsTime, style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 10)),const SizedBox(height: 6),GestureDetector(onTap: () async {@@ -1773,7 +1813,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTIcon(Icons.rss_feed_rounded, size: 20, color: cs.onSurfaceVariant),const SizedBox(width: 12),Expanded(child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [- Text('Feed URL', style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),+ Text(l.adminPodcastsFeedUrl, style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),const SizedBox(height: 2),Text(_feedUrl, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant), maxLines: 2, overflow: TextOverflow.ellipsis),])),@@ -1820,7 +1860,7 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTvoid _showDownloadedEpisodeDetail(Map<String, dynamic> ep) {final epId = ep['id']?.toString() ?? '';- final epTitle = ep['title']?.toString() ?? 'Episode';+ final epTitle = ep['title']?.toString() ?? AppLocalizations.of(context)!.adminPodcastsEpisodeFallback;showModalBottomSheet(context: context,isScrollControlled: true,@@ -1898,6 +1938,9 @@ class _PodcastDetailScreenState extends State<_PodcastDetailScreen> with SingleTfinal min = dt.minute.toString().padLeft(2, '0');return '${m[dt.month - 1]} ${dt.day}, ${dt.year} $h:$min $period';}+ // Note: month abbreviations and AM/PM are intentionally kept inline as they+ // are date format primitives consistent with how _fmtDate is used in+ // similar admin/users context. Could be moved to ARB later if needed.void _msg(String s) => ScaffoldMessenger.of(context)..clearSnackBars()..showSnackBar(SnackBar(content: Text(s), behavior: SnackBarBehavior.floating, shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))));@@ -1919,8 +1962,9 @@ class _EpisodeDetailSheet extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;- final title = episode['title']?.toString() ?? 'Episode';+ final title = episode['title']?.toString() ?? l.adminPodcastsEpisodeFallback;final descriptionHtml = episode['description']?.toString() ?? episode['subtitle']?.toString() ?? '';final pubDateRaw = episode['publishedAt'] ?? episode['pubDate'];final pubDate = pubDateRaw is num ? pubDateRaw : (num.tryParse(pubDateRaw?.toString() ?? ''));@@ -1941,8 +1985,8 @@ class _EpisodeDetailSheet extends StatelessWidget {if (pubDate != null) chips.add(_fmtDate(pubDate.toInt()));if (duration.isNotEmpty) chips.add(duration.contains(':') ? duration : _fmtDurStr(duration));if (sizeStr.isNotEmpty) chips.add(sizeStr);- if (season.isNotEmpty) chips.add('Season $season');- if (episodeNum.isNotEmpty) chips.add('Ep. $episodeNum');+ if (season.isNotEmpty) chips.add(l.adminPodcastsSeasonChip(season));+ if (episodeNum.isNotEmpty) chips.add(l.adminPodcastsEpChip(episodeNum));if (episodeType.isNotEmpty && episodeType != 'full') chips.add(episodeType);return Container(@@ -2001,7 +2045,7 @@ class _EpisodeDetailSheet extends StatelessWidget {shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14)),padding: const EdgeInsets.symmetric(vertical: 14),),- child: Text('Back', style: TextStyle(color: cs.onSurface.withValues(alpha: 0.54), fontWeight: FontWeight.w600)),+ child: Text(l.adminPodcastsBack, style: TextStyle(color: cs.onSurface.withValues(alpha: 0.54), fontWeight: FontWeight.w600)),),),const SizedBox(width: 12),@@ -2009,7 +2053,7 @@ class _EpisodeDetailSheet extends StatelessWidget {child: FilledButton.icon(onPressed: (alreadyDownloaded || !canDownload) ? null : onDownload,icon: Icon(alreadyDownloaded ? Icons.check_circle_rounded : Icons.download_rounded, size: 18),- label: Text(alreadyDownloaded ? 'Downloaded' : !canDownload ? 'Root Only' : 'Download',+ label: Text(alreadyDownloaded ? l.downloaded : !canDownload ? l.adminPodcastsRootOnly : l.download,style: const TextStyle(fontWeight: FontWeight.w700)),style: FilledButton.styleFrom(backgroundColor: alreadyDownloaded ? Colors.green.withValues(alpha: 0.15) : cs.primary,@@ -2064,8 +2108,9 @@ class _DownloadedEpisodeDetailSheet extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;- final title = episode['title']?.toString() ?? 'Episode';+ final title = episode['title']?.toString() ?? l.adminPodcastsEpisodeFallback;final descriptionHtml = episode['description']?.toString() ?? episode['subtitle']?.toString() ?? '';final pubAt = episode['publishedAt'];final pubDate = pubAt is num ? pubAt : (num.tryParse(pubAt?.toString() ?? ''));@@ -2085,8 +2130,8 @@ class _DownloadedEpisodeDetailSheet extends StatelessWidget {if (pubDate != null) chips.add(_fmtDate(pubDate.toInt()));if (durStr.isNotEmpty) chips.add(durStr);if (sizeStr.isNotEmpty) chips.add(sizeStr);- if (season.isNotEmpty) chips.add('Season $season');- if (episodeNum.isNotEmpty) chips.add('Ep. $episodeNum');+ if (season.isNotEmpty) chips.add(l.adminPodcastsSeasonChip(season));+ if (episodeNum.isNotEmpty) chips.add(l.adminPodcastsEpChip(episodeNum));return Container(constraints: BoxConstraints(maxHeight: MediaQuery.of(context).size.height * 0.75),@@ -2133,7 +2178,7 @@ class _DownloadedEpisodeDetailSheet extends StatelessWidget {shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14)),padding: const EdgeInsets.symmetric(vertical: 14),),- child: Text('Back', style: TextStyle(color: cs.onSurface.withValues(alpha: 0.54), fontWeight: FontWeight.w600)),+ child: Text(l.adminPodcastsBack, style: TextStyle(color: cs.onSurface.withValues(alpha: 0.54), fontWeight: FontWeight.w600)),),),const SizedBox(width: 12),@@ -2143,7 +2188,7 @@ class _DownloadedEpisodeDetailSheet extends StatelessWidget {icon: isDeleting? SizedBox(width: 16, height: 16, child: CircularProgressIndicator(strokeWidth: 1.5, color: cs.onSurface.withValues(alpha: 0.54))): const Icon(Icons.delete_outline_rounded, size: 18),- label: Text(isDeleting ? 'Deleting...' : 'Delete Episode',+ label: Text(isDeleting ? l.adminPodcastsDeleting : l.adminPodcastsDeleteEpisode,style: const TextStyle(fontWeight: FontWeight.w700)),style: FilledButton.styleFrom(backgroundColor: Colors.red.withValues(alpha: 0.15),@@ -2231,17 +2276,18 @@ class _PodcastMatchSheetState extends State<_PodcastMatchSheet> {final author = pod['artistName'] as String? ?? pod['author'] as String?;final result = await api.matchLibraryItem(widget.podcastId, title: title, author: author);if (mounted) {+ final l = AppLocalizations.of(context)!;setState(() => _applying = false);if (result != null) {widget.onMatched();Navigator.pop(context);ScaffoldMessenger.of(context)..clearSnackBars()..showSnackBar(SnackBar(- content: const Text('Podcast matched and updated'),+ content: Text(l.adminPodcastsPodcastMatched),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))));} else {ScaffoldMessenger.of(context)..clearSnackBars()..showSnackBar(SnackBar(- content: const Text('Failed to match podcast'),+ content: Text(l.adminPodcastsFailedMatch),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))));}@@ -2260,6 +2306,7 @@ class _PodcastMatchSheetState extends State<_PodcastMatchSheet> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Container(decoration: BoxDecoration(@@ -2275,7 +2322,7 @@ class _PodcastMatchSheetState extends State<_PodcastMatchSheet> {Padding(padding: const EdgeInsets.fromLTRB(20, 14, 8, 0),child: Row(children: [- Expanded(child: Text('Match Podcast', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700, color: cs.onSurface))),+ Expanded(child: Text(l.adminPodcastsMatchPodcast, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700, color: cs.onSurface))),IconButton(icon: Icon(Icons.close_rounded, color: cs.onSurfaceVariant.withValues(alpha: 0.6), size: 20),onPressed: () => Navigator.pop(context),@@ -2290,7 +2337,7 @@ class _PodcastMatchSheetState extends State<_PodcastMatchSheet> {style: TextStyle(color: cs.onSurface),onSubmitted: (_) => _search(),decoration: InputDecoration(- hintText: 'Search iTunes...',+ hintText: l.adminPodcastsSearchItunesHint,hintStyle: TextStyle(color: cs.onSurface.withValues(alpha: 0.25)),prefixIcon: Icon(Icons.search_rounded, color: cs.onSurface.withValues(alpha: 0.3)),suffixIcon: _searching@@ -2311,19 +2358,19 @@ class _PodcastMatchSheetState extends State<_PodcastMatchSheet> {? Center(child: Column(mainAxisSize: MainAxisSize.min, children: [const CircularProgressIndicator(strokeWidth: 2),const SizedBox(height: 12),- Text('Applying match...', style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.4))),+ Text(l.adminPodcastsApplyingMatch, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.4))),])): _searching? const Center(child: CircularProgressIndicator(strokeWidth: 2)): _results.isEmpty- ? Center(child: Text('No results', style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.24))))+ ? Center(child: Text(l.adminPodcastsNoResults, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.24)))): ListView.builder(controller: sc,padding: const EdgeInsets.fromLTRB(16, 8, 16, 32),itemCount: _results.length,itemBuilder: (_, i) {final pod = _extractPod(_results[i]);- final title = pod['title'] as String? ?? pod['trackName'] as String? ?? pod['collectionName'] as String? ?? 'Unknown';+ final title = pod['title'] as String? ?? pod['trackName'] as String? ?? pod['collectionName'] as String? ?? l.unknown;final author = pod['artistName'] as String? ?? pod['author'] as String? ?? '';final imageUrl = pod['cover'] as String? ?? pod['imageUrl'] as String? ?? pod['artworkUrl600'] as String? ?? pod['artworkUrl100'] as String? ?? '';final genres = (pod['genres'] as List?)?.whereType<String>().where((g) => g != 'Podcasts').toList();diff --git a/lib/screens/admin_screen.dart b/lib/screens/admin_screen.dartindex 920aacf8..516ed56a 100644--- a/lib/screens/admin_screen.dart+++ b/lib/screens/admin_screen.dart@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';import 'package:provider/provider.dart';import '../providers/auth_provider.dart';import '../widgets/absorb_page_header.dart';+import '../l10n/app_localizations.dart';import 'admin_users_screen.dart';import 'admin_podcasts_screen.dart';@@ -65,6 +66,7 @@ class _AdminScreenState extends State<AdminScreen> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Scaffold(backgroundColor: Theme.of(context).scaffoldBackgroundColor,@@ -80,24 +82,24 @@ class _AdminScreenState extends State<AdminScreen> {Padding(padding: const EdgeInsets.fromLTRB(20, 12, 8, 0),child: Row(children: [- const Expanded(child: AbsorbPageHeader(title: 'Server Admin', padding: EdgeInsets.zero)),+ Expanded(child: AbsorbPageHeader(title: l.adminTitle, padding: EdgeInsets.zero)),IconButton(icon: Icon(Icons.close_rounded, color: cs.onSurfaceVariant), onPressed: () => Navigator.pop(context)),]),),const SizedBox(height: 20),// ── Server Overview ──- _section(cs, tt, 'Server'),+ _section(cs, tt, l.adminServer),Padding(padding: const EdgeInsets.symmetric(horizontal: 16),child: Container(padding: const EdgeInsets.all(16),decoration: _cardDeco(cs),child: Row(children: [- _stat(tt, cs, Icons.dns_rounded, _serverVersion ?? '–', 'Version'),- _stat(tt, cs, Icons.people_rounded, '${_users.length}', 'Users'),- _stat(tt, cs, Icons.wifi_rounded, '${_onlineUsers.length}', 'Online'),- _stat(tt, cs, Icons.backup_rounded, '${_backups.length}', 'Backups'),+ _stat(tt, cs, Icons.dns_rounded, _serverVersion ?? '–', l.adminVersion),+ _stat(tt, cs, Icons.people_rounded, '${_users.length}', l.adminUsers),+ _stat(tt, cs, Icons.wifi_rounded, '${_onlineUsers.length}', l.adminOnline),+ _stat(tt, cs, Icons.backup_rounded, '${_backups.length}', l.adminBackupsLabel),]),),),@@ -105,22 +107,22 @@ class _AdminScreenState extends State<AdminScreen> {Padding(padding: const EdgeInsets.symmetric(horizontal: 16),child: Row(children: [- Expanded(child: _actionBtn(cs, tt, Icons.backup_rounded, 'Backup', _creatingBackup, _createBackup)),+ Expanded(child: _actionBtn(cs, tt, Icons.backup_rounded, l.adminBackup, _creatingBackup, _createBackup)),const SizedBox(width: 10),- Expanded(child: _actionBtn(cs, tt, Icons.cleaning_services_rounded, 'Purge Cache', _purgingCache, _purgeCache)),+ Expanded(child: _actionBtn(cs, tt, Icons.cleaning_services_rounded, l.adminPurgeCache, _purgingCache, _purgeCache)),]),),const SizedBox(height: 28),// ── Manage Buttons ──- _section(cs, tt, 'Manage'),+ _section(cs, tt, l.adminManage),Padding(padding: const EdgeInsets.symmetric(horizontal: 16),child: Column(children: [_navButton(cs, tt,icon: Icons.people_rounded,- label: 'Users',- subtitle: '${_users.length} accounts · ${_onlineUsers.length} online',+ label: l.adminUsers,+ subtitle: l.adminUsersSubtitle(_users.length, _onlineUsers.length),onTap: () async {await Navigator.push(context, MaterialPageRoute(builder: (_) => AdminUsersScreen(users: _users, onlineUsers: _onlineUsers, libraries: _libraries)));@@ -131,8 +133,8 @@ class _AdminScreenState extends State<AdminScreen> {if (_hasPodcastLibrary)_navButton(cs, tt,icon: Icons.podcasts_rounded,- label: 'Podcasts',- subtitle: 'Search, add & manage shows',+ label: l.adminPodcasts,+ subtitle: l.adminPodcastsSubtitle,onTap: () {final podLib = _libraries.firstWhere((l) => l['mediaType'] == 'podcast', orElse: () => null);if (podLib != null) {@@ -147,13 +149,13 @@ class _AdminScreenState extends State<AdminScreen> {// ── Active Sessions ──if (_activeSessions.isNotEmpty) ...[- _section(cs, tt, 'Listening Now'),+ _section(cs, tt, l.adminListeningNow),..._activeSessions.map((s) => _sessionCard(cs, tt, s)),const SizedBox(height: 18),],// ── Libraries ──- _section(cs, tt, 'Libraries'),+ _section(cs, tt, l.adminLibraries),..._libraries.map((lib) => _libraryCard(cs, tt, lib)),],),@@ -203,8 +205,9 @@ class _AdminScreenState extends State<AdminScreen> {// ─── Library Card ───────────────────────────────────────────Widget _libraryCard(ColorScheme cs, TextTheme tt, dynamic lib) {+ final l = AppLocalizations.of(context)!;final id = lib['id'] as String? ?? '';- final name = lib['name'] as String? ?? 'Library';+ final name = lib['name'] as String? ?? l.libraryFallback;final mediaType = lib['mediaType'] as String? ?? 'book';final folders = (lib['folders'] as List?)?.length ?? 0;final stats = _libraryStats[id];@@ -228,16 +231,16 @@ class _AdminScreenState extends State<AdminScreen> {]),const SizedBox(height: 12),Row(children: [- _mini(cs, tt, '$totalItems', mediaType == 'podcast' ? 'shows' : 'books'),- if (folders > 0) _mini(cs, tt, '$folders', 'folders'),- if (totalSize != null) _mini(cs, tt, _fmtB(totalSize.toInt()), 'size'),- if (totalDur != null) _mini(cs, tt, _fmtD(totalDur.toDouble()), 'duration'),+ _mini(cs, tt, '$totalItems', mediaType == 'podcast' ? l.adminLibraryShows : l.adminLibraryBooks),+ if (folders > 0) _mini(cs, tt, '$folders', l.adminLibraryFolders),+ if (totalSize != null) _mini(cs, tt, _fmtB(totalSize.toInt()), l.adminLibrarySize),+ if (totalDur != null) _mini(cs, tt, _fmtD(totalDur.toDouble()), l.adminLibraryDuration),]),const SizedBox(height: 12),Row(children: [- Expanded(child: _libAct(cs, tt, Icons.search_rounded, isScanning ? 'Scanning…' : 'Scan', isScanning, () => _scanLib(id, name))),+ Expanded(child: _libAct(cs, tt, Icons.search_rounded, isScanning ? l.adminScanning : l.adminScan, isScanning, () => _scanLib(id, name))),const SizedBox(width: 8),- Expanded(child: _libAct(cs, tt, Icons.auto_fix_high_rounded, isMatching ? 'Matching…' : 'Match All', isMatching, () => _matchLib(id, name))),+ Expanded(child: _libAct(cs, tt, Icons.auto_fix_high_rounded, isMatching ? l.adminMatching : l.adminMatchAll, isMatching, () => _matchLib(id, name))),]),])));}@@ -261,7 +264,8 @@ class _AdminScreenState extends State<AdminScreen> {])));Widget _sessionCard(ColorScheme cs, TextTheme tt, dynamic session) {- final displayTitle = session['displayTitle'] as String? ?? 'Unknown';+ final l = AppLocalizations.of(context)!;+ final displayTitle = session['displayTitle'] as String? ?? l.unknown;final displayAuthor = session['displayAuthor'] as String? ?? '';final userName = _userNameForSession(session);final currentTime = session['currentTime'] as num? ?? 0;@@ -316,35 +320,53 @@ class _AdminScreenState extends State<AdminScreen> {final api = context.read<AuthProvider>().apiService; if (api == null) return;setState(() => _scanningLibraries.add(id));final ok = await api.scanLibrary(id);- if (mounted) { setState(() => _scanningLibraries.remove(id)); _msg(ok ? 'Scan started for $name' : 'Failed to scan $name'); }+ if (mounted) {+ final l = AppLocalizations.of(context)!;+ setState(() => _scanningLibraries.remove(id));+ _msg(ok ? l.adminScanStarted(name) : l.adminScanFailed(name));+ }}Future<void> _matchLib(String id, String name) async {final api = context.read<AuthProvider>().apiService; if (api == null) return;+ final l = AppLocalizations.of(context)!;final yes = await showDialog<bool>(context: context, builder: (ctx) => AlertDialog(- title: const Text('Match All Items?'),- content: Text('Match metadata for all items in $name? This can take a while.'),- actions: [TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),- TextButton(onPressed: () => Navigator.pop(ctx, true), child: const Text('Match'))],+ title: Text(l.adminMatchAllTitle),+ content: Text(l.adminMatchAllContent(name)),+ actions: [TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ TextButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.adminMatchAction))],));if (yes != true) return;setState(() => _matchingLibraries.add(id));final ok = await api.matchLibrary(id);- if (mounted) { setState(() => _matchingLibraries.remove(id)); _msg(ok ? 'Matching started for $name' : 'Failed'); }+ if (mounted) {+ final l2 = AppLocalizations.of(context)!;+ setState(() => _matchingLibraries.remove(id));+ _msg(ok ? l2.adminMatchingStarted(name) : l2.adminMatchFailed);+ }}Future<void> _createBackup() async {final api = context.read<AuthProvider>().apiService; if (api == null) return;setState(() => _creatingBackup = true);final ok = await api.createBackup();- if (mounted) { setState(() => _creatingBackup = false); _msg(ok ? 'Backup created' : 'Backup failed'); if (ok) _loadAll(); }+ if (mounted) {+ final l = AppLocalizations.of(context)!;+ setState(() => _creatingBackup = false);+ _msg(ok ? l.adminBackupCreated : l.adminBackupFailed);+ if (ok) _loadAll();+ }}Future<void> _purgeCache() async {final api = context.read<AuthProvider>().apiService; if (api == null) return;setState(() => _purgingCache = true);final ok = await api.purgeCache();- if (mounted) { setState(() => _purgingCache = false); _msg(ok ? 'Cache purged' : 'Failed'); }+ if (mounted) {+ final l = AppLocalizations.of(context)!;+ setState(() => _purgingCache = false);+ _msg(ok ? l.adminCachePurged : l.adminPurgeCacheFailed);+ }}void _msg(String s) => ScaffoldMessenger.of(context)..clearSnackBars()..showSnackBar(diff --git a/lib/screens/admin_users_screen.dart b/lib/screens/admin_users_screen.dartindex 8ac79e83..1cb98364 100644--- a/lib/screens/admin_users_screen.dart+++ b/lib/screens/admin_users_screen.dart@@ -5,6 +5,7 @@ import '../providers/auth_provider.dart';import '../providers/library_provider.dart';import '../widgets/absorb_page_header.dart';import '../widgets/absorb_wave_icon.dart';+import '../l10n/app_localizations.dart';class AdminUsersScreen extends StatefulWidget {final List<dynamic> users;@@ -31,6 +32,7 @@ class _AdminUsersScreenState extends State<AdminUsersScreen> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Scaffold(backgroundColor: Theme.of(context).scaffoldBackgroundColor,@@ -44,7 +46,7 @@ class _AdminUsersScreenState extends State<AdminUsersScreen> {Padding(padding: const EdgeInsets.fromLTRB(20, 12, 8, 0),child: Row(children: [- const Expanded(child: AbsorbPageHeader(title: 'Users', padding: EdgeInsets.zero)),+ Expanded(child: AbsorbPageHeader(title: l.adminUsers, padding: EdgeInsets.zero)),IconButton(icon: Icon(Icons.close_rounded, color: cs.onSurfaceVariant), onPressed: () => Navigator.pop(context)),]),),@@ -65,7 +67,8 @@ class _AdminUsersScreenState extends State<AdminUsersScreen> {}Widget _userTile(ColorScheme cs, TextTheme tt, dynamic user) {- final username = user['username'] as String? ?? 'Unknown';+ final l = AppLocalizations.of(context)!;+ final username = user['username'] as String? ?? l.unknown;final userId = user['id'] as String? ?? '';final type = user['type'] as String? ?? 'user';final isActive = user['isActive'] as bool? ?? true;@@ -97,20 +100,20 @@ class _AdminUsersScreenState extends State<AdminUsersScreen> {if (type == 'root') Container(padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 1),decoration: BoxDecoration(color: Colors.amber.withValues(alpha: 0.12), borderRadius: BorderRadius.circular(4)),- child: Text('root', style: tt.labelSmall?.copyWith(color: Colors.amber, fontSize: 9, fontWeight: FontWeight.w600)))+ child: Text(l.adminUsersRootBadge, style: tt.labelSmall?.copyWith(color: Colors.amber, fontSize: 9, fontWeight: FontWeight.w600)))else if (type == 'admin') Container(padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 1),decoration: BoxDecoration(color: cs.primary.withValues(alpha: 0.12), borderRadius: BorderRadius.circular(4)),- child: Text('admin', style: tt.labelSmall?.copyWith(color: cs.primary, fontSize: 9, fontWeight: FontWeight.w600))),+ child: Text(l.adminUsersAdminBadge, style: tt.labelSmall?.copyWith(color: cs.primary, fontSize: 9, fontWeight: FontWeight.w600))),if (isLocked) ...[const SizedBox(width: 4), Icon(Icons.lock_rounded, size: 12, color: Colors.red.withValues(alpha: 0.6))],if (!isActive) ...[const SizedBox(width: 4), Container(padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 1),decoration: BoxDecoration(color: Colors.red.withValues(alpha: 0.12), borderRadius: BorderRadius.circular(4)),- child: Text('disabled', style: tt.labelSmall?.copyWith(color: Colors.red.withValues(alpha: 0.7), fontSize: 9)))],+ child: Text(l.adminUsersDisabledBadge, style: tt.labelSmall?.copyWith(color: Colors.red.withValues(alpha: 0.7), fontSize: 9)))],]),if (!isActive) ...[const SizedBox(height: 2),- Text('Disabled', style: tt.labelSmall?.copyWith(color: Colors.red.withValues(alpha: 0.5), fontSize: 10)),+ Text(l.disabled, style: tt.labelSmall?.copyWith(color: Colors.red.withValues(alpha: 0.5), fontSize: 10)),],])),Icon(Icons.chevron_right_rounded, size: 18, color: cs.onSurface.withValues(alpha: 0.15)),@@ -259,7 +262,7 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {});}- String get _username => widget.user['username'] as String? ?? 'User';+ String get _username => widget.user['username'] as String? ?? AppLocalizations.of(context)!.userFallback;String get _userType => widget.user['type'] as String? ?? 'user';bool get _isRoot => _userType == 'root';@@ -283,7 +286,7 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {final userLastSeen = (_fullUser ?? widget.user)['lastSeen'] as num?;final best = (mostRecent != null && (userLastSeen == null || mostRecent > userLastSeen))? mostRecent : userLastSeen;- if (best == null) return 'Never';+ if (best == null) return AppLocalizations.of(context)!.adminUsersNever;return _timeAgo(DateTime.fromMillisecondsSinceEpoch(best.toInt()));}@@ -291,6 +294,7 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final finished = _progressItems.where((p) => p['isFinished'] == true).length;final inProgress = _progressItems.where((p) => (p['isFinished'] != true) && (p['progress'] as num? ?? 0) > 0).length;@@ -306,7 +310,7 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {if (!_isRoot)IconButton(icon: Icon(Icons.edit_rounded, color: cs.primary.withValues(alpha: 0.7), size: 20),- tooltip: 'Edit user',+ tooltip: l.adminUsersEditUserTooltip,onPressed: _showEditor,),IconButton(icon: Icon(Icons.close_rounded, color: cs.onSurfaceVariant), onPressed: () => Navigator.pop(context)),@@ -322,7 +326,7 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {)),const SizedBox(width: 8),Text(- _isOnline ? 'Online now' : 'Last seen $_lastSeenStr',+ _isOnline ? l.adminUsersOnlineNow : l.adminUsersLastSeen(_lastSeenStr),style: tt.labelSmall?.copyWith(color: _isOnline ? const Color(0xFF4CAF50).withValues(alpha: 0.8) : cs.onSurface.withValues(alpha: 0.3),fontSize: 11,@@ -343,11 +347,11 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {Padding(padding: const EdgeInsets.fromLTRB(20, 8, 20, 12),child: Row(children: [- _summaryChip(cs, tt, '$inProgress', 'In Progress', cs.primary),+ _summaryChip(cs, tt, '$inProgress', l.inProgress, cs.primary),const SizedBox(width: 10),- _summaryChip(cs, tt, '$finished', 'Finished', Colors.green),+ _summaryChip(cs, tt, '$finished', l.finished, Colors.green),const SizedBox(width: 10),- _summaryChip(cs, tt, '${_progressItems.length}', 'Total', cs.onSurfaceVariant),+ _summaryChip(cs, tt, '${_progressItems.length}', l.adminUsersTotal, cs.onSurfaceVariant),]),),Expanded(@@ -360,7 +364,7 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {const SizedBox(height: 80),Center(child: Icon(Icons.menu_book_rounded, size: 48, color: cs.onSurface.withValues(alpha: 0.08))),const SizedBox(height: 12),- Center(child: Text('No reading activity', style: tt.bodyMedium?.copyWith(color: cs.onSurface.withValues(alpha: 0.24)))),+ Center(child: Text(l.adminUsersNoReadingActivity, style: tt.bodyMedium?.copyWith(color: cs.onSurface.withValues(alpha: 0.24)))),]): ListView(padding: const EdgeInsets.only(bottom: 40),@@ -383,7 +387,7 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {child: Row(mainAxisAlignment: MainAxisAlignment.center, children: [Icon(Icons.history_rounded, size: 16, color: cs.onSurface.withValues(alpha: 0.4)),const SizedBox(width: 8),- Text('Recent Sessions', style: tt.bodySmall?.copyWith(+ Text(l.statsRecentSessions, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.5), fontWeight: FontWeight.w600)),]),),@@ -398,7 +402,7 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {else if (_sessions.isNotEmpty) ...[Padding(padding: const EdgeInsets.fromLTRB(20, 4, 20, 8),- child: Text('Recent Sessions', style: tt.titleSmall?.copyWith(+ child: Text(l.statsRecentSessions, style: tt.titleSmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.5), fontWeight: FontWeight.w600, letterSpacing: 0.5)),),..._sessions.map((s) => _sessionTile(cs, tt, s)),@@ -420,7 +424,7 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {elseIcon(Icons.expand_more_rounded, size: 14, color: cs.onSurface.withValues(alpha: 0.4)),const SizedBox(width: 6),- Text(_loadingMoreSessions ? 'Loading...' : 'Load more sessions',+ Text(_loadingMoreSessions ? l.adminUsersLoadingDots : l.adminUsersLoadMoreSessions,style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.5), fontWeight: FontWeight.w600)),]),@@ -431,7 +435,7 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {] else ...[Padding(padding: const EdgeInsets.fromLTRB(20, 4, 20, 12),- child: Text('No recent sessions', style: tt.bodySmall?.copyWith(+ child: Text(l.adminUsersNoRecentSessions, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.24))),),],@@ -439,7 +443,7 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {if (_progressItems.isNotEmpty) ...[Padding(padding: const EdgeInsets.fromLTRB(20, 4, 20, 8),- child: Text('Library Progress', style: tt.titleSmall?.copyWith(+ child: Text(l.adminUsersLibraryProgress, style: tt.titleSmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.5), fontWeight: FontWeight.w600, letterSpacing: 0.5)),),..._progressItems.take(_visibleCount).map((p) => _progressTile(cs, tt, p)),@@ -462,7 +466,7 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {Icon(Icons.expand_more_rounded, size: 16, color: cs.onSurface.withValues(alpha: 0.4)),const SizedBox(width: 8),Text(- _fetchingMore ? 'Loading...' : 'Load More (${_progressItems.length - _visibleCount} remaining)',+ _fetchingMore ? l.adminUsersLoadingDots : l.adminUsersLoadMoreRemaining(_progressItems.length - _visibleCount),style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.5), fontWeight: FontWeight.w600)),]),@@ -567,7 +571,7 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {),),const SizedBox(width: 10),- Text(isFinished ? 'Finished' : '$percent%',+ Text(isFinished ? AppLocalizations.of(context)!.finished : '$percent%',style: tt.labelSmall?.copyWith(color: isFinished ? Colors.green.withValues(alpha: 0.8) : cs.onSurfaceVariant.withValues(alpha: 0.6),fontWeight: FontWeight.w600, fontSize: 10)),@@ -589,11 +593,12 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {Widget _sessionTile(ColorScheme cs, TextTheme tt, dynamic s) {if (s is! Map<String, dynamic>) return const SizedBox.shrink();+ final l = AppLocalizations.of(context)!;final rawTitle = s['displayTitle'] as String?;final rawAuthor = s['displayAuthor'] as String?;final meta = s['mediaMetadata'] as Map<String, dynamic>?;final title = (rawTitle != null && !_looksLikeId(rawTitle))- ? rawTitle : meta?['title'] as String? ?? 'Unknown';+ ? rawTitle : meta?['title'] as String? ?? l.unknown;final author = (rawAuthor != null && !_looksLikeId(rawAuthor))? rawAuthor : meta?['authorName'] as String? ?? '';final duration = (s['timeListening'] as num?)?.toDouble() ?? 0;@@ -675,10 +680,11 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {}String _relativeDate(DateTime date) {+ final l = AppLocalizations.of(context)!;final diff = DateTime.now().difference(date);- if (diff.inMinutes < 60) return '${diff.inMinutes}m ago';- if (diff.inHours < 24) return '${diff.inHours}h ago';- if (diff.inDays < 7) return '${diff.inDays}d ago';+ if (diff.inMinutes < 60) return l.minutesAgo(diff.inMinutes);+ if (diff.inHours < 24) return l.hoursAgo(diff.inHours);+ if (diff.inDays < 7) return l.daysAgo(diff.inDays);return '${date.month}/${date.day}';}@@ -696,10 +702,15 @@ class _UserDetailScreenState extends State<_UserDetailScreen> {}));}- String _timeAgo(DateTime dt) { final d = DateTime.now().difference(dt);- if (d.inSeconds < 60) return 'just now'; if (d.inMinutes < 60) return '${d.inMinutes}m ago';- if (d.inHours < 24) return '${d.inHours}h ago'; if (d.inDays < 30) return '${d.inDays}d ago';- return '${(d.inDays / 30).floor()}mo ago'; }+ String _timeAgo(DateTime dt) {+ final l = AppLocalizations.of(context)!;+ final d = DateTime.now().difference(dt);+ if (d.inSeconds < 60) return l.justNow;+ if (d.inMinutes < 60) return l.minutesAgo(d.inMinutes);+ if (d.inHours < 24) return l.hoursAgo(d.inHours);+ if (d.inDays < 30) return l.daysAgo(d.inDays);+ return l.adminUsersMonthsAgo((d.inDays / 30).floor());+ }String _fmtDur(double s) {final h = (s / 3600).floor();@@ -756,6 +767,7 @@ class _UserEditorSheetState extends State<_UserEditorSheet> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Container(decoration: BoxDecoration(color: Theme.of(context).bottomSheetTheme.backgroundColor, borderRadius: const BorderRadius.vertical(top: Radius.circular(24))),@@ -764,7 +776,7 @@ class _UserEditorSheetState extends State<_UserEditorSheet> {decoration: BoxDecoration(color: cs.onSurface.withValues(alpha: 0.12), borderRadius: BorderRadius.circular(2)))),Padding(padding: const EdgeInsets.fromLTRB(20, 16, 12, 0),child: Row(children: [- Expanded(child: Text(_isNew ? 'New User' : 'Edit User', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700, color: cs.onSurface))),+ Expanded(child: Text(_isNew ? l.adminUsersNewUser : l.adminUsersEditUser, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700, color: cs.onSurface))),if (!_isNew) IconButton(icon: Icon(Icons.delete_outline_rounded, color: Colors.red.shade300, size: 20),onPressed: _deleting ? null : _deleteUser),@@ -772,39 +784,39 @@ class _UserEditorSheetState extends State<_UserEditorSheet> {Flexible(child: SingleChildScrollView(padding: const EdgeInsets.fromLTRB(20, 16, 20, 0),child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [- _lbl(cs, tt, 'Username'), const SizedBox(height: 6),+ _lbl(cs, tt, l.adminUsersUsername), const SizedBox(height: 6),TextField(controller: _usernameCtrl, enabled: _isNew, style: TextStyle(color: cs.onSurface),- decoration: _deco(cs, 'Enter username')),+ decoration: _deco(cs, l.adminUsersEnterUsername)),const SizedBox(height: 16),- _lbl(cs, tt, _isNew ? 'Password' : 'New Password'), const SizedBox(height: 6),+ _lbl(cs, tt, _isNew ? l.adminUsersPassword : l.adminUsersNewPassword), const SizedBox(height: 6),TextField(controller: _passwordCtrl, obscureText: true, style: TextStyle(color: cs.onSurface),- decoration: _deco(cs, _isNew ? 'Enter password' : 'Leave blank to keep current')),+ decoration: _deco(cs, _isNew ? l.adminUsersEnterPassword : l.adminUsersLeaveBlankToKeep)),const SizedBox(height: 20),- _lbl(cs, tt, 'Account Type'), const SizedBox(height: 8),+ _lbl(cs, tt, l.adminUsersAccountType), const SizedBox(height: 8),Row(children: [- _chip(cs, tt, 'guest', Icons.person_outline_rounded), const SizedBox(width: 8),- _chip(cs, tt, 'user', Icons.person_rounded), const SizedBox(width: 8),- _chip(cs, tt, 'admin', Icons.admin_panel_settings_rounded),+ _chip(cs, tt, 'guest', Icons.person_outline_rounded, l.adminUsersTypeGuest), const SizedBox(width: 8),+ _chip(cs, tt, 'user', Icons.person_rounded, l.adminUsersTypeUser), const SizedBox(width: 8),+ _chip(cs, tt, 'admin', Icons.admin_panel_settings_rounded, l.adminUsersTypeAdmin),]),const SizedBox(height: 20),- _lbl(cs, tt, 'Status'), const SizedBox(height: 4),- _sw(cs, 'Account Active', _isActive, (v) => setState(() => _isActive = v), sub: 'Disabled accounts cannot log in'),- _sw(cs, 'Locked', _isLocked, (v) => setState(() => _isLocked = v), sub: 'Prevents password changes'),+ _lbl(cs, tt, l.adminUsersStatus), const SizedBox(height: 4),+ _sw(cs, l.adminUsersAccountActive, _isActive, (v) => setState(() => _isActive = v), sub: l.adminUsersAccountActiveSub),+ _sw(cs, l.adminUsersLocked, _isLocked, (v) => setState(() => _isLocked = v), sub: l.adminUsersLockedSub),const SizedBox(height: 12),- _lbl(cs, tt, 'Permissions'), const SizedBox(height: 4),- _sw(cs, 'Download', _canDownload, (v) => setState(() => _canDownload = v)),- _sw(cs, 'Update', _canUpdate, (v) => setState(() => _canUpdate = v), sub: 'Edit metadata and library items'),- _sw(cs, 'Delete', _canDelete, (v) => setState(() => _canDelete = v)),- _sw(cs, 'Upload', _canUpload, (v) => setState(() => _canUpload = v)),- _sw(cs, 'Explicit Content', _accessExplicit, (v) => setState(() => _accessExplicit = v)),+ _lbl(cs, tt, l.adminUsersPermissions), const SizedBox(height: 4),+ _sw(cs, l.adminUsersPermDownload, _canDownload, (v) => setState(() => _canDownload = v)),+ _sw(cs, l.adminUsersPermUpdate, _canUpdate, (v) => setState(() => _canUpdate = v), sub: l.adminUsersPermUpdateSub),+ _sw(cs, l.adminUsersPermDelete, _canDelete, (v) => setState(() => _canDelete = v)),+ _sw(cs, l.adminUsersPermUpload, _canUpload, (v) => setState(() => _canUpload = v)),+ _sw(cs, l.adminUsersPermExplicit, _accessExplicit, (v) => setState(() => _accessExplicit = v)),const SizedBox(height: 12),- _lbl(cs, tt, 'Library Access'), const SizedBox(height: 4),- _sw(cs, 'Access All Libraries', _accessAllLibraries, (v) => setState(() => _accessAllLibraries = v)),+ _lbl(cs, tt, l.adminUsersLibraryAccess), const SizedBox(height: 4),+ _sw(cs, l.adminUsersAccessAllLibraries, _accessAllLibraries, (v) => setState(() => _accessAllLibraries = v)),if (!_accessAllLibraries) ...[const SizedBox(height: 8),...widget.libraries.map((lib) {final id = lib['id'] as String? ?? '';- final name = lib['name'] as String? ?? 'Library';+ final name = lib['name'] as String? ?? l.libraryFallback;final sel = _selectedLibraries.contains(id);return Padding(padding: const EdgeInsets.only(bottom: 4), child: GestureDetector(onTap: () => setState(() { if (sel) _selectedLibraries.remove(id); else _selectedLibraries.add(id); }),@@ -830,7 +842,7 @@ class _UserEditorSheetState extends State<_UserEditorSheet> {style: FilledButton.styleFrom(backgroundColor: cs.primary, shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14))),child: _saving? SizedBox(width: 20, height: 20, child: CircularProgressIndicator(strokeWidth: 2, color: cs.onPrimary))- : Text(_isNew ? 'Create User' : 'Save Changes', style: TextStyle(fontWeight: FontWeight.w700, color: cs.onPrimary)),+ : Text(_isNew ? l.adminUsersCreateUser : l.adminUsersSaveChanges, style: TextStyle(fontWeight: FontWeight.w700, color: cs.onPrimary)),))),]));}@@ -846,7 +858,7 @@ class _UserEditorSheetState extends State<_UserEditorSheet> {disabledBorder: OutlineInputBorder(borderRadius: BorderRadius.circular(12), borderSide: BorderSide(color: cs.onSurface.withValues(alpha: 0.04))),contentPadding: const EdgeInsets.symmetric(horizontal: 14, vertical: 12));- Widget _chip(ColorScheme cs, TextTheme tt, String type, IconData ic) {+ Widget _chip(ColorScheme cs, TextTheme tt, String type, IconData ic, String label) {final on = _type == type;return Expanded(child: GestureDetector(onTap: () => setState(() => _type = type),child: AnimatedContainer(duration: const Duration(milliseconds: 200), padding: const EdgeInsets.symmetric(vertical: 10),@@ -856,7 +868,7 @@ class _UserEditorSheetState extends State<_UserEditorSheet> {border: Border.all(color: on ? cs.primary.withValues(alpha: 0.4) : cs.onSurface.withValues(alpha: 0.06))),child: Column(children: [Icon(ic, size: 20, color: on ? cs.primary : cs.onSurface.withValues(alpha: 0.3)), const SizedBox(height: 4),- Text(type[0].toUpperCase() + type.substring(1),+ Text(label,style: tt.labelSmall?.copyWith(color: on ? cs.primary : cs.onSurfaceVariant.withValues(alpha: 0.6), fontWeight: on ? FontWeight.w700 : FontWeight.w500, fontSize: 11)),]))));}@@ -868,9 +880,10 @@ class _UserEditorSheetState extends State<_UserEditorSheet> {Future<void> _save() async {final api = context.read<AuthProvider>().apiService; if (api == null) return;+ final l = AppLocalizations.of(context)!;final username = _usernameCtrl.text.trim();- if (username.isEmpty) { _snk('Username is required'); return; }- if (_isNew && _passwordCtrl.text.isEmpty) { _snk('Password is required'); return; }+ if (username.isEmpty) { _snk(l.adminUsersUsernameRequired); return; }+ if (_isNew && _passwordCtrl.text.isEmpty) { _snk(l.adminUsersPasswordRequired); return; }setState(() => _saving = true);final perms = {'download': _canDownload, 'update': _canUpdate, 'delete': _canDelete, 'upload': _canUpload,'accessExplicitContent': _accessExplicit, 'accessAllLibraries': _accessAllLibraries, 'accessAllTags': true};@@ -886,26 +899,33 @@ class _UserEditorSheetState extends State<_UserEditorSheet> {if (_passwordCtrl.text.isNotEmpty) up['password'] = _passwordCtrl.text;ok = await api.updateUser(widget.user!['id'] as String, up);}- if (mounted) { setState(() => _saving = false);- if (ok) { widget.onSaved(); Navigator.pop(context); _snk(_isNew ? 'User created' : 'User updated'); }- else { _snk(_isNew ? 'Failed to create user' : 'Failed to update user'); } }+ if (mounted) {+ final l2 = AppLocalizations.of(context)!;+ setState(() => _saving = false);+ if (ok) { widget.onSaved(); Navigator.pop(context); _snk(_isNew ? l2.adminUsersUserCreated : l2.adminUsersUserUpdated); }+ else { _snk(_isNew ? l2.adminUsersFailedCreate : l2.adminUsersFailedUpdate); }+ }}Future<void> _deleteUser() async {- final name = widget.user?['username'] ?? 'this user';+ final l = AppLocalizations.of(context)!;+ final name = widget.user?['username'] ?? l.adminUsersThisUser;final yes = await showDialog<bool>(context: context, builder: (ctx) => AlertDialog(- title: const Text('Delete User?'),- content: Text('Permanently delete $name?'),- actions: [TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),- TextButton(onPressed: () => Navigator.pop(ctx, true), child: Text('Delete', style: TextStyle(color: Colors.red.shade300)))],+ title: Text(l.adminUsersDeleteUserTitle),+ content: Text(l.adminUsersDeleteUserContent(name)),+ actions: [TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ TextButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.delete, style: TextStyle(color: Colors.red.shade300)))],));if (yes != true) return;final api = context.read<AuthProvider>().apiService; if (api == null) return;setState(() => _deleting = true);final ok = await api.deleteUser(widget.user!['id'] as String);- if (mounted) { setState(() => _deleting = false);- if (ok) { widget.onSaved(); Navigator.pop(context); _snk('$name deleted'); }- else { _snk('Failed to delete user'); } }+ if (mounted) {+ final l2 = AppLocalizations.of(context)!;+ setState(() => _deleting = false);+ if (ok) { widget.onSaved(); Navigator.pop(context); _snk(l2.adminUsersUserDeleted(name)); }+ else { _snk(l2.adminUsersFailedDelete); }+ }}void _snk(String s) => ScaffoldMessenger.of(context)..clearSnackBars()..showSnackBar(@@ -953,13 +973,13 @@ class _AdminSessionDetailsSheet extends StatelessWidget {return '${months[d.month - 1]} ${d.day}, ${d.year} at $hour12:$min $ampm';}- String _playMethodLabel(dynamic m) {+ String _playMethodLabel(dynamic m, AppLocalizations l) {final i = m is num ? m.toInt() : -1;switch (i) {- case 0: return 'Direct play';- case 1: return 'Direct stream';- case 2: return 'Transcode';- case 3: return 'Local';+ case 0: return l.adminUsersPlayDirect;+ case 1: return l.adminUsersPlayDirectStream;+ case 2: return l.adminUsersPlayTranscode;+ case 3: return l.adminUsersPlayLocal;default: return m.toString();}}@@ -968,6 +988,7 @@ class _AdminSessionDetailsSheet extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final s = session;final meta = s['mediaMetadata'] as Map<String, dynamic>? ?? {};@@ -980,7 +1001,7 @@ class _AdminSessionDetailsSheet extends StatelessWidget {bool looksLikeId(String v) => idPattern.hasMatch(v);final title = (rawTitle != null && !looksLikeId(rawTitle))? rawTitle- : meta['title'] as String? ?? 'Unknown';+ : meta['title'] as String? ?? l.unknown;final author = (rawAuthor != null && !looksLikeId(rawAuthor))? rawAuthor: meta['authorName'] as String? ?? '';@@ -1074,14 +1095,14 @@ class _AdminSessionDetailsSheet extends StatelessWidget {],if (author.isNotEmpty) ...[const SizedBox(height: 4),- Text('by $author',+ Text(l.adminUsersByAuthor(author),style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.6))),],if (narrator.isNotEmpty) ...[const SizedBox(height: 2),- Text('Narrated by $narrator',+ Text(l.narratedBy(narrator),style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.5))),@@ -1089,37 +1110,37 @@ class _AdminSessionDetailsSheet extends StatelessWidget {])),]),const SizedBox(height: 20),- _infoRow(cs, tt, 'Listened', _fmtDuration(timeListening)),- _infoRow(cs, tt, 'Started at position', _fmtPos(startTime)),- _infoRow(cs, tt, 'Ended at position', _fmtPos(currentTime)),+ _infoRow(cs, tt, l.adminUsersListened, _fmtDuration(timeListening)),+ _infoRow(cs, tt, l.adminUsersStartedAtPosition, _fmtPos(startTime)),+ _infoRow(cs, tt, l.adminUsersEndedAtPosition, _fmtPos(currentTime)),if (totalDuration > 0)- _infoRow(cs, tt, 'Total duration', _fmtPos(totalDuration)),+ _infoRow(cs, tt, l.adminUsersTotalDuration, _fmtPos(totalDuration)),const SizedBox(height: 16),if (startedAt is num)- _infoRow(cs, tt, 'Started', _fmtDate(startedAt.toInt())),+ _infoRow(cs, tt, l.adminUsersStarted, _fmtDate(startedAt.toInt())),if (updatedAt is num)- _infoRow(cs, tt, 'Updated', _fmtDate(updatedAt.toInt())),+ _infoRow(cs, tt, l.adminUsersUpdated, _fmtDate(updatedAt.toInt())),const SizedBox(height: 16),if (clientName.isNotEmpty)_infoRow(cs,tt,- 'Client',+ l.adminUsersClient,clientVersion.isNotEmpty? '$clientName $clientVersion': clientName),if (deviceModel.isNotEmpty)- _infoRow(cs, tt, 'Device', deviceModel),+ _infoRow(cs, tt, l.adminUsersDevice, deviceModel),if (osName.isNotEmpty)_infoRow(cs,tt,- 'OS',+ l.adminUsersOs,osVersion.isNotEmpty? '$osName $osVersion': osName),if (playMethod != null)- _infoRow(cs, tt, 'Play method', _playMethodLabel(playMethod)),+ _infoRow(cs, tt, l.adminUsersPlayMethod, _playMethodLabel(playMethod, l)),],),),diff --git a/lib/screens/app_shell.dart b/lib/screens/app_shell.dartindex 0a8ee35b..e6457cce 100644--- a/lib/screens/app_shell.dart+++ b/lib/screens/app_shell.dart@@ -256,25 +256,30 @@ class _AppShellState extends State<AppShell> with WidgetsBindingObserver, Tickerfinal includePreReleases = await PlayerSettings.getIncludePreReleases();final info = await UpdateCheckerService.check(includePreReleases: includePreReleases);if (info == null || !mounted) return;+ final l = AppLocalizations.of(context)!;showDialog(context: context,builder: (ctx) => AlertDialog(- title: Text(info.isPreRelease ? 'Pre-release available' : 'Update available'),- content: Text('A new ${info.isPreRelease ? 'pre-release' : 'version'} of Absorb is available: ${info.latestVersion}\n\nYou are on ${info.currentVersion}.'),+ title: Text(info.isPreRelease ? l.preReleaseAvailable : l.updateAvailable),+ content: Text(l.updateDialogContent(+ info.isPreRelease ? l.updateKindPreRelease : l.updateKindVersion,+ info.latestVersion,+ info.currentVersion,+ )),actions: [TextButton(onPressed: () {UpdateCheckerService.dismiss(info.latestVersion);Navigator.pop(ctx);},- child: const Text('Later'),+ child: Text(l.later),),FilledButton(onPressed: () {Navigator.pop(ctx);launchUrl(Uri.parse(info.downloadUrl), mode: LaunchMode.externalApplication);},- child: const Text('Download'),+ child: Text(l.downloadButton),),],),diff --git a/lib/screens/bookmarks_screen.dart b/lib/screens/bookmarks_screen.dartindex b72c8eb4..3de752b0 100644--- a/lib/screens/bookmarks_screen.dart+++ b/lib/screens/bookmarks_screen.dart@@ -12,6 +12,7 @@ import '../services/scoped_prefs.dart';import '../widgets/card_buttons.dart';import '../services/download_service.dart';import '../widgets/absorb_page_header.dart';+import '../l10n/app_localizations.dart';class BookmarksScreen extends StatefulWidget {const BookmarksScreen({super.key});@@ -191,21 +192,22 @@ class _BookmarksScreenState extends State<BookmarksScreen> {Future<void> _deleteSelected() async {if (_selected.isEmpty) return;+ final l = AppLocalizations.of(context)!;final count = _selected.length;final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(icon: const Icon(Icons.delete_outline_rounded),- title: Text('Delete $count bookmark${count == 1 ? '' : 's'}?'),- content: const Text('This cannot be undone.'),+ title: Text(l.bookmarksDeleteCount(count)),+ content: Text(l.bookmarksDeleteContent),actions: [TextButton(onPressed: () => Navigator.pop(ctx, false),- child: const Text('Cancel'),+ child: Text(l.cancel),),FilledButton(onPressed: () => Navigator.pop(ctx, true),- child: const Text('Delete'),+ child: Text(l.delete),),],),@@ -231,7 +233,7 @@ class _BookmarksScreenState extends State<BookmarksScreen> {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: Text('Deleted $count bookmark${count == 1 ? '' : 's'}'),+ content: Text(l.bookmarksDeletedCount(count)),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));@@ -258,18 +260,19 @@ class _BookmarksScreenState extends State<BookmarksScreen> {}Future<void> _editBookmark(String itemId, Bookmark bookmark) async {+ final l = AppLocalizations.of(context)!;final titleC = TextEditingController(text: bookmark.title);final noteC = TextEditingController(text: bookmark.note ?? '');final result = await showDialog<Map<String, String>>(context: context, builder: (ctx) => AlertDialog(- title: const Text('Edit Bookmark'),+ title: Text(l.editBookmark),content: Column(mainAxisSize: MainAxisSize.min, children: [- TextField(controller: titleC, decoration: const InputDecoration(labelText: 'Title', border: OutlineInputBorder())),+ TextField(controller: titleC, decoration: InputDecoration(labelText: l.titleLabel, border: const OutlineInputBorder())),const SizedBox(height: 12),- TextField(controller: noteC, maxLines: 3, decoration: const InputDecoration(labelText: 'Note (optional)', border: OutlineInputBorder(), alignLabelWithHint: true)),+ TextField(controller: noteC, maxLines: 3, decoration: InputDecoration(labelText: l.noteOptionalLabel, border: const OutlineInputBorder(), alignLabelWithHint: true)),]),actions: [- TextButton(onPressed: () => Navigator.pop(ctx), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(ctx, {'title': titleC.text, 'note': noteC.text}), child: const Text('Save')),+ TextButton(onPressed: () => Navigator.pop(ctx), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(ctx, {'title': titleC.text, 'note': noteC.text}), child: Text(l.save)),],));if (result != null && result['title']!.isNotEmpty) {@@ -285,6 +288,7 @@ class _BookmarksScreenState extends State<BookmarksScreen> {Future<void> _jumpToBookmark(String itemId, Bookmark bookmark, String bookTitle) async {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final action = await showDialog<String>(context: context,builder: (ctx) => AlertDialog(@@ -303,21 +307,21 @@ class _BookmarksScreenState extends State<BookmarksScreen> {),const SizedBox(height: 12),],- Text('${bookmark.formattedPosition} in $bookTitle',+ Text(l.bookmarksScreenPositionInBook(bookmark.formattedPosition, bookTitle),style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.6))),]),actions: [TextButton(onPressed: () => Navigator.pop(ctx),- child: const Text('Close'),+ child: Text(l.bookmarksScreenClose),),TextButton(onPressed: () => Navigator.pop(ctx, 'edit'),- child: const Text('Edit'),+ child: Text(l.edit),),FilledButton(onPressed: () => Navigator.pop(ctx, 'jump'),- child: const Text('Jump'),+ child: Text(l.bookmarksJump),),],),@@ -347,8 +351,8 @@ class _BookmarksScreenState extends State<BookmarksScreen> {// Otherwise load the book from APIif (api == null) {if (mounted) {- ScaffoldMessenger.of(context).showSnackBar(const SnackBar(- content: Text('Not connected to server'),+ ScaffoldMessenger.of(context).showSnackBar(SnackBar(+ content: Text(l.bookmarksNotConnected),behavior: SnackBarBehavior.floating,));}@@ -358,8 +362,8 @@ class _BookmarksScreenState extends State<BookmarksScreen> {final fullItem = await api.getLibraryItem(itemId);if (fullItem == null) {if (mounted) {- ScaffoldMessenger.of(context).showSnackBar(const SnackBar(- content: Text('Could not load book'),+ ScaffoldMessenger.of(context).showSnackBar(SnackBar(+ content: Text(l.bookmarksCouldNotLoad),behavior: SnackBarBehavior.floating,));}@@ -396,6 +400,7 @@ class _BookmarksScreenState extends State<BookmarksScreen> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Scaffold(backgroundColor: Theme.of(context).scaffoldBackgroundColor,@@ -408,11 +413,11 @@ class _BookmarksScreenState extends State<BookmarksScreen> {Padding(padding: const EdgeInsets.fromLTRB(20, 12, 8, 0),child: Row(children: [- const Expanded(child: AbsorbPageHeader(title: 'All Bookmarks', padding: EdgeInsets.zero)),+ Expanded(child: AbsorbPageHeader(title: l.bookmarksTitle, padding: EdgeInsets.zero)),if (_selecting)IconButton(icon: Icon(Icons.close_rounded, color: cs.onSurfaceVariant),- tooltip: 'Cancel selection',+ tooltip: l.bookmarksCancelSelection,onPressed: _exitSelection,)else ...[@@ -442,9 +447,8 @@ class _BookmarksScreenState extends State<BookmarksScreen> {),const SizedBox(width: 4),Text(- _sort == 'newest' ? 'Newest'- : _sort == 'position' ? 'Position'- : 'Position',+ _sort == 'newest' ? l.bookmarksScreenSortNewest+ : l.bookmarksScreenSortPosition,style: Theme.of(context).textTheme.labelSmall?.copyWith(color: cs.onSurfaceVariant),),]),@@ -452,7 +456,7 @@ class _BookmarksScreenState extends State<BookmarksScreen> {),IconButton(icon: Icon(Icons.checklist_rounded, color: cs.onSurfaceVariant),- tooltip: 'Select',+ tooltip: l.bookmarksSelect,onPressed: () => setState(() => _selecting = true),),],@@ -474,7 +478,7 @@ class _BookmarksScreenState extends State<BookmarksScreen> {children: [Icon(Icons.bookmark_border_rounded, size: 48, color: cs.onSurfaceVariant.withValues(alpha: 0.4)),const SizedBox(height: 12),- Text('No bookmarks yet', style: tt.bodyLarge?.copyWith(color: cs.onSurfaceVariant)),+ Text(l.bookmarksNoBookmarks, style: tt.bodyLarge?.copyWith(color: cs.onSurfaceVariant)),],),),@@ -522,13 +526,13 @@ class _BookmarksScreenState extends State<BookmarksScreen> {top: false,child: Row(children: [Text(- '${_selected.length} selected',+ l.bookmarksSelectedCount(_selected.length),style: tt.bodyMedium?.copyWith(color: cs.onSurface),),const Spacer(),FilledButton.tonalIcon(icon: const Icon(Icons.delete_outline_rounded, size: 18),- label: const Text('Delete'),+ label: Text(l.delete),style: FilledButton.styleFrom(backgroundColor: cs.errorContainer,foregroundColor: cs.onErrorContainer,diff --git a/lib/screens/car_mode_screen.dart b/lib/screens/car_mode_screen.dartindex c3b24c4a..0dee3341 100644--- a/lib/screens/car_mode_screen.dart+++ b/lib/screens/car_mode_screen.dart@@ -10,6 +10,7 @@ import '../providers/library_provider.dart';import '../services/audio_player_service.dart';import '../services/bookmark_service.dart';import '../widgets/card_buttons.dart';+import '../l10n/app_localizations.dart';class CarModeScreen extends StatefulWidget {final AudioPlayerService player;@@ -106,13 +107,14 @@ class _CarModeScreenState extends State<CarModeScreen>Future<void> _startPlayback() async {if (_isStarting || widget.itemId == null) return;setState(() => _isStarting = true);+ final l = AppLocalizations.of(context)!;final auth = context.read<AuthProvider>();final api = auth.apiService;if (api == null) { setState(() => _isStarting = false); return; }await widget.player.playItem(api: api,itemId: widget.itemId!,- title: widget.fallbackTitle ?? 'Unknown',+ title: widget.fallbackTitle ?? l.unknown,author: widget.fallbackAuthor ?? '',coverUrl: widget.fallbackCoverUrl,totalDuration: widget.fallbackDuration,@@ -181,8 +183,9 @@ class _CarModeScreenState extends State<CarModeScreen>@overrideWidget build(BuildContext context) {final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;final player = widget.player;- final title = player.currentTitle ?? widget.fallbackTitle ?? 'No book loaded';+ final title = player.currentTitle ?? widget.fallbackTitle ?? l.carModeNoBookLoaded;final author = player.currentAuthor ?? widget.fallbackAuthor ?? '';final coverUrl = _getCoverUrl(context);final auth = context.read<AuthProvider>();@@ -224,7 +227,7 @@ class _CarModeScreenState extends State<CarModeScreen>const Spacer(),Icon(Icons.directions_car_rounded, color: Colors.white54, size: compact ? 18 : 22),const SizedBox(width: 6),- Text('Car Mode', style: TextStyle(color: Colors.white54, fontSize: compact ? 13 : 16, fontWeight: FontWeight.w600)),+ Text(l.carModeTitle, style: TextStyle(color: Colors.white54, fontSize: compact ? 13 : 16, fontWeight: FontWeight.w600)),const SizedBox(width: 16),],),@@ -492,12 +495,12 @@ class _CarModeScreenState extends State<CarModeScreen>BookmarkService().addBookmark(itemId: itemId,positionSeconds: pos,- title: chTitle.isNotEmpty ? chTitle : 'Bookmark',+ title: chTitle.isNotEmpty ? chTitle : l.carModeBookmarkDefault,);ScaffoldMessenger.of(context).showSnackBar(- const SnackBar(- content: Text('Bookmark added'),- duration: Duration(seconds: 2),+ SnackBar(+ content: Text(l.carModeBookmarkAdded),+ duration: const Duration(seconds: 2),behavior: SnackBarBehavior.floating,),);diff --git a/lib/screens/downloads_screen.dart b/lib/screens/downloads_screen.dartindex 9289e5ad..8b2aa74a 100644--- a/lib/screens/downloads_screen.dart+++ b/lib/screens/downloads_screen.dart@@ -6,6 +6,7 @@ import '../providers/library_provider.dart';import '../services/audio_player_service.dart';import '../services/download_service.dart';import '../widgets/absorb_page_header.dart';+import '../l10n/app_localizations.dart';class DownloadsScreen extends StatefulWidget {const DownloadsScreen({super.key});@@ -72,21 +73,22 @@ class _DownloadsScreenState extends State<DownloadsScreen> {Future<void> _deleteSelected() async {if (_selected.isEmpty) return;+ final l = AppLocalizations.of(context)!;final count = _selected.length;final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(icon: const Icon(Icons.delete_outline_rounded),- title: Text('Delete $count download${count == 1 ? '' : 's'}?'),- content: const Text('Downloaded files will be removed from this device.'),+ title: Text(l.downloadsDeleteCount(count)),+ content: Text(l.downloadsDeleteContent),actions: [TextButton(onPressed: () => Navigator.pop(ctx, false),- child: const Text('Cancel'),+ child: Text(l.cancel),),FilledButton(onPressed: () => Navigator.pop(ctx, true),- child: const Text('Delete'),+ child: Text(l.delete),),],),@@ -103,7 +105,7 @@ class _DownloadsScreenState extends State<DownloadsScreen> {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: Text('Deleted $count download${count == 1 ? '' : 's'}'),+ content: Text(l.downloadsDeletedCount(count)),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));@@ -111,20 +113,21 @@ class _DownloadsScreenState extends State<DownloadsScreen> {}Future<void> _deleteSingle(DownloadInfo info) async {+ final l = AppLocalizations.of(context)!;final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(icon: const Icon(Icons.delete_outline_rounded),- title: const Text('Remove download?'),- content: Text('Delete "${info.title}" from this device?'),+ title: Text(l.downloadsRemoveTitle),+ content: Text(l.downloadsRemoveContent(info.title ?? '')),actions: [TextButton(onPressed: () => Navigator.pop(ctx, false),- child: const Text('Cancel'),+ child: Text(l.cancel),),FilledButton(onPressed: () => Navigator.pop(ctx, true),- child: const Text('Delete'),+ child: Text(l.delete),),],),@@ -134,7 +137,7 @@ class _DownloadsScreenState extends State<DownloadsScreen> {await _load();if (mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: Text('"${info.title}" removed'),+ content: Text(l.downloadsRemovedTitle(info.title ?? '')),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));@@ -154,6 +157,7 @@ class _DownloadsScreenState extends State<DownloadsScreen> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Scaffold(backgroundColor: Theme.of(context).scaffoldBackgroundColor,@@ -166,9 +170,9 @@ class _DownloadsScreenState extends State<DownloadsScreen> {Padding(padding: const EdgeInsets.fromLTRB(20, 12, 8, 0),child: Row(children: [- const Expanded(+ Expanded(child: AbsorbPageHeader(- title: 'Downloads',+ title: l.downloadsTitle,padding: EdgeInsets.zero,),),@@ -176,7 +180,7 @@ class _DownloadsScreenState extends State<DownloadsScreen> {IconButton(icon: Icon(Icons.close_rounded,color: cs.onSurfaceVariant),- tooltip: 'Cancel selection',+ tooltip: l.downloadsCancelSelection,onPressed: _exitSelection,)else ...[@@ -184,7 +188,7 @@ class _DownloadsScreenState extends State<DownloadsScreen> {IconButton(icon: Icon(Icons.checklist_rounded,color: cs.onSurfaceVariant),- tooltip: 'Select',+ tooltip: l.downloadsSelect,onPressed: () =>setState(() => _selecting = true),),@@ -228,7 +232,7 @@ class _DownloadsScreenState extends State<DownloadsScreen> {color: cs.onSurfaceVariant.withValues(alpha: 0.4)),const SizedBox(height: 12),- Text('No downloads',+ Text(l.downloadsNoDownloads,style: tt.bodyLarge?.copyWith(color: cs.onSurfaceVariant)),],@@ -243,7 +247,7 @@ class _DownloadsScreenState extends State<DownloadsScreen> {if (active.isNotEmpty) ...[Padding(padding: const EdgeInsets.only(left: 4, bottom: 8),- child: Text('Downloading',+ child: Text(l.downloadsDownloading,style: tt.labelMedium?.copyWith(color: cs.primary,fontWeight: FontWeight.w600)),@@ -261,7 +265,7 @@ class _DownloadsScreenState extends State<DownloadsScreen> {if (queued.isNotEmpty) ...[Padding(padding: const EdgeInsets.only(left: 4, top: 4, bottom: 8),- child: Text('Queued',+ child: Text(l.downloadsQueued,style: tt.labelMedium?.copyWith(color: cs.onSurfaceVariant,fontWeight: FontWeight.w600)),@@ -281,7 +285,7 @@ class _DownloadsScreenState extends State<DownloadsScreen> {if (active.isNotEmpty || queued.isNotEmpty)Padding(padding: const EdgeInsets.only(left: 4, top: 4, bottom: 8),- child: Text('Completed',+ child: Text(l.downloadsCompleted,style: tt.labelMedium?.copyWith(color: cs.onSurfaceVariant,fontWeight: FontWeight.w600)),@@ -324,7 +328,7 @@ class _DownloadsScreenState extends State<DownloadsScreen> {top: false,child: Row(children: [Text(- '${_selected.length} selected',+ l.downloadsSelectedCount(_selected.length),style: tt.bodyMedium?.copyWith(color: cs.onSurface),),@@ -333,7 +337,7 @@ class _DownloadsScreenState extends State<DownloadsScreen> {icon: const Icon(Icons.delete_outline_rounded,size: 18),- label: const Text('Delete'),+ label: Text(l.delete),style: FilledButton.styleFrom(backgroundColor: cs.errorContainer,foregroundColor: cs.onErrorContainer,@@ -379,6 +383,7 @@ class _DownloadCard extends StatelessWidget {@overrideWidget build(BuildContext context) {+ final l = AppLocalizations.of(context)!;return Padding(padding: const EdgeInsets.only(bottom: 8),child: GestureDetector(@@ -423,7 +428,7 @@ class _DownloadCard extends StatelessWidget {crossAxisAlignment: CrossAxisAlignment.start,children: [Text(- info.title ?? 'Unknown',+ info.title ?? l.unknown,style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600),maxLines: 1,@@ -458,7 +463,7 @@ class _DownloadCard extends StatelessWidget {IconButton(icon: Icon(Icons.delete_outline_rounded,color: cs.error, size: 22),- tooltip: 'Delete',+ tooltip: l.delete,onPressed: onDelete,),],@@ -533,6 +538,7 @@ class _ActiveDownloadCard extends StatelessWidget {@overrideWidget build(BuildContext context) {+ final l = AppLocalizations.of(context)!;final progress = info.progress;final pct = (progress * 100).round();@@ -562,14 +568,14 @@ class _ActiveDownloadCard extends StatelessWidget {crossAxisAlignment: CrossAxisAlignment.start,children: [Text(- info.title ?? 'Unknown',+ info.title ?? l.unknown,style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600),maxLines: 1,overflow: TextOverflow.ellipsis,),const SizedBox(height: 4),if (isQueued)- Text('Waiting...',+ Text(l.downloadsWaiting,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant))else ...[@@ -601,7 +607,7 @@ class _ActiveDownloadCard extends StatelessWidget {IconButton(icon: Icon(Icons.close_rounded,color: cs.onSurfaceVariant, size: 20),- tooltip: 'Cancel',+ tooltip: l.cancel,onPressed: onCancel,),],diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dartindex c218d27e..6c98f225 100644--- a/lib/screens/home_screen.dart+++ b/lib/screens/home_screen.dart@@ -19,6 +19,7 @@ import '../widgets/playlist_detail_sheet.dart';import '../widgets/collection_detail_sheet.dart';import '../widgets/section_detail_sheet.dart';import 'app_shell.dart';+import '../l10n/app_localizations.dart';class HomeScreen extends StatefulWidget {const HomeScreen({super.key});@@ -222,6 +223,7 @@ class HomeScreenState extends State<HomeScreen> {void _showLibraryPicker(BuildContext context, ColorScheme cs, TextTheme tt,List<dynamic> allLibraries, LibraryProvider lib) {+ final l = AppLocalizations.of(context)!;showModalBottomSheet(context: context,isScrollControlled: true,@@ -250,7 +252,7 @@ class HomeScreenState extends State<HomeScreen> {const SizedBox(height: 16),Padding(padding: const EdgeInsets.symmetric(horizontal: 24),- child: Text('Select Library',+ child: Text(l.selectLibrary,style:tt.titleLarge?.copyWith(fontWeight: FontWeight.w600)),),@@ -263,7 +265,7 @@ class HomeScreenState extends State<HomeScreen> {itemBuilder: (_, i) {final library = allLibraries[i] as Map<String, dynamic>;final id = library['id'] as String;- final name = library['name'] as String? ?? 'Library';+ final name = library['name'] as String? ?? l.libraryFallback;final mediaType = library['mediaType'] as String? ?? 'book';final isSelected = id == lib.selectedLibraryId;return ListTile(@@ -292,15 +294,18 @@ class HomeScreenState extends State<HomeScreen> {);}- static const _sectionLabels = {- 'continue-listening': 'Continue Listening',- 'continue-series': 'Continue Series',- 'recently-added': 'Recently Added',- 'listen-again': 'Listen Again',- 'discover': 'Discover',- 'episodes-recently-added': 'New Episodes',- 'downloaded-books': 'Downloads',- };+ String _sectionLabel(String id, AppLocalizations l) {+ switch (id) {+ case 'continue-listening': return l.continueListening;+ case 'continue-series': return l.continueSeries;+ case 'recently-added': return l.recentlyAdded;+ case 'listen-again': return l.listenAgain;+ case 'discover': return l.discover;+ case 'episodes-recently-added': return l.newEpisodes;+ case 'downloaded-books': return l.downloads;+ }+ return _titleCase(id);+ }static const _sectionIcons = {'continue-listening': Icons.play_circle_outline_rounded,@@ -324,11 +329,12 @@ class HomeScreenState extends State<HomeScreen> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final scaffoldBg = Theme.of(context).scaffoldBackgroundColor;final lowerFade = Color.lerp(cs.surface, scaffoldBg, 0.55) ?? scaffoldBg;final lib = context.watch<LibraryProvider>();final allLibraries = lib.libraries;- final libraryName = lib.selectedLibrary?['name'] as String? ?? 'Library';+ final libraryName = lib.selectedLibrary?['name'] as String? ?? l.libraryFallback;if (lib.isLoading) {// Reset cache so stale data isn't shown after a user switch// (where the new user may have the same number of sections).@@ -366,7 +372,7 @@ class HomeScreenState extends State<HomeScreen> {// ── Top bar: ABSORB title + page name ──SliverToBoxAdapter(child: AbsorbPageHeader(- title: 'Home',+ title: l.homeTitle,trailing: GestureDetector(onTap: () {final newVal = !lib.isManualOffline;@@ -486,7 +492,7 @@ class HomeScreenState extends State<HomeScreen> {const SizedBox(height: 16),FilledButton.tonal(onPressed: lib.refresh,- child: const Text('Retry')),+ child: Text(l.retry)),],),),@@ -512,8 +518,8 @@ class HomeScreenState extends State<HomeScreen> {const SizedBox(height: 12),Text(lib.isOffline- ? 'No downloaded books'- : 'Your library is empty',+ ? l.noDownloadedBooks+ : l.yourLibraryIsEmpty,style: tt.bodyLarge?.copyWith(color: cs.onSurfaceVariant,),@@ -521,7 +527,7 @@ class HomeScreenState extends State<HomeScreen> {if (lib.isOffline) ...[const SizedBox(height: 4),Text(- 'Download books while online to listen offline',+ l.downloadBooksWhileOnline,style: tt.bodySmall?.copyWith(color:cs.onSurfaceVariant.withValues(alpha: 0.6),@@ -552,7 +558,7 @@ class HomeScreenState extends State<HomeScreen> {child: GestureDetector(onTap: () => SectionDetailSheet.show(context,- title: 'Continue Listening',+ title: l.continueListening,icon: Icons.play_circle_outline_rounded,entities: clItems,coverAspectRatio: _rectangleCovers ? 2 / 3 : 1.0,@@ -564,7 +570,7 @@ class HomeScreenState extends State<HomeScreen> {Icon(Icons.play_circle_outline_rounded,size: 16, color: cs.primary.withValues(alpha: 0.7)),const SizedBox(width: 8),- Text('Continue Listening',+ Text(l.continueListening,style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w500,color: cs.onSurface.withValues(alpha: 0.8),@@ -604,9 +610,7 @@ class HomeScreenState extends State<HomeScreen> {];}- final label = section['label'] ??- _sectionLabels[id] ??- _titleCase(id);+ final label = section['label'] ?? _sectionLabel(id, l);final entities = _filterEbookOnly((section['entities'] as List<dynamic>?) ?? [],sectionType: section['type'] as String?);@@ -712,6 +716,7 @@ class _ContinueListeningCardState extends State<_ContinueListeningCard> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final item = widget.item;final lib = widget.lib;@@ -724,8 +729,8 @@ class _ContinueListeningCardState extends State<_ContinueListeningCard> {// For podcasts with recentEpisode, show episode title + show namefinal title = recentEpisode != null- ? (recentEpisode['title'] as String? ?? 'Episode')- : (metadata['title'] as String? ?? 'Unknown');+ ? (recentEpisode['title'] as String? ?? l.homeScreenEpisodeFallback)+ : (metadata['title'] as String? ?? l.unknown);final author = recentEpisode != null? (metadata['title'] as String? ?? ''): (metadata['authorName'] as String? ?? '');@@ -930,8 +935,9 @@ class _ContinueListeningCardState extends State<_ContinueListeningCard> {if (recentEpisode != null) {// Podcast episode — play the recent episode directly+ final l = AppLocalizations.of(context)!;final episodeId = recentEpisode['id'] as String? ?? '';- final episodeTitle = recentEpisode['title'] as String? ?? 'Episode';+ final episodeTitle = recentEpisode['title'] as String? ?? l.homeScreenEpisodeFallback;final media = widget.item['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};final showTitle = metadata['title'] as String? ?? '';diff --git a/lib/screens/library_screen.dart b/lib/screens/library_screen.dartindex b70f842c..252077dd 100644--- a/lib/screens/library_screen.dart+++ b/lib/screens/library_screen.dart@@ -20,6 +20,7 @@ import '../widgets/library_authors_tab.dart';import 'admin_podcasts_screen.dart';import 'upcoming_releases_screen.dart';import '../widgets/audible_series_sheet.dart' show showAudibleRegionPicker;+import '../l10n/app_localizations.dart';/// Responsive grid column count based on available width./// Returns 3 on phones, scales up on tablets/iPads.@@ -624,6 +625,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMi/// Offline fallback: populate the grid from downloaded items.void _loadOfflinePage(LibraryProvider lib) {+ final l = AppLocalizations.of(context)!;final isPodcast = lib.isPodcastLibrary;final downloads = DownloadService().downloadedItems.where((dl) => (dl.itemId.length > 36) == isPodcast)@@ -644,7 +646,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMi'id': dl.itemId,'media': {'metadata': {- 'title': dl.title ?? 'Unknown Title',+ 'title': dl.title ?? l.libraryScreenUnknownTitle,'authorName': dl.author ?? '',},'duration': duration,@@ -1038,6 +1040,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMi}void _showLibraryPicker(BuildContext context, ColorScheme cs, TextTheme tt, List<dynamic> allLibraries, LibraryProvider lib) {+ final l = AppLocalizations.of(context)!;showModalBottomSheet(context: context,isScrollControlled: true,@@ -1060,7 +1063,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMiconst SizedBox(height: 16),Padding(padding: const EdgeInsets.symmetric(horizontal: 24),- child: Text('Select Library', style: tt.titleLarge?.copyWith(fontWeight: FontWeight.w600)),+ child: Text(l.selectLibrary, style: tt.titleLarge?.copyWith(fontWeight: FontWeight.w600)),),const SizedBox(height: 12),Flexible(@@ -1071,7 +1074,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMiitemBuilder: (_, i) {final library = allLibraries[i] as Map<String, dynamic>;final id = library['id'] as String;- final name = library['name'] as String? ?? 'Library';+ final name = library['name'] as String? ?? l.libraryFallback;final mediaType = library['mediaType'] as String? ?? 'book';final isSelected = id == lib.selectedLibraryId;return ListTile(@@ -1097,14 +1100,14 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMi);}- String get _filterLabel => switch (_filter) {- LibraryFilter.inProgress => 'In Progress',- LibraryFilter.finished => 'Finished',- LibraryFilter.notStarted => 'Not Started',- LibraryFilter.downloaded => 'Downloaded',- LibraryFilter.inASeries => 'Series',- LibraryFilter.hasEbook => 'Has eBook',- LibraryFilter.genre => _genreFilter ?? 'Genre',+ String _filterLabelOf(AppLocalizations l) => switch (_filter) {+ LibraryFilter.inProgress => l.inProgress,+ LibraryFilter.finished => l.filterFinished,+ LibraryFilter.notStarted => l.notStarted,+ LibraryFilter.downloaded => l.downloaded,+ LibraryFilter.inASeries => l.libraryTabSeries,+ LibraryFilter.hasEbook => l.hasEbook,+ LibraryFilter.genre => _genreFilter ?? l.genre,LibraryFilter.none => '',};@@ -1197,12 +1200,13 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMiWidget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final scaffoldBg = Theme.of(context).scaffoldBackgroundColor;final lowerFade = Color.lerp(cs.surface, scaffoldBg, 0.55) ?? scaffoldBg;final lib = context.watch<LibraryProvider>();final allLibraries = lib.libraries;final hasMultipleLibraries = allLibraries.length > 1;- final libraryName = lib.selectedLibrary?['name'] as String? ?? 'Library';+ final libraryName = lib.selectedLibrary?['name'] as String? ?? l.libraryFallback;final hasTabs = _tabController != null && !_isInSearchMode;return Scaffold(@@ -1241,7 +1245,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMiaxisAlignment: -1.0,child: Column(mainAxisSize: MainAxisSize.min, children: [AbsorbPageHeader(- title: 'Library',+ title: l.libraryTitle,trailing: GestureDetector(onTap: () {final newVal = !lib.isManualOffline;@@ -1301,8 +1305,8 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMicontroller: _searchController,focusNode: _focusNode,hintText: lib.isPodcastLibrary- ? 'Search shows and episodes...'- : 'Search books, series, and authors...',+ ? l.librarySearchShowsHint+ : l.librarySearchBooksHint,leading: const Padding(padding: EdgeInsets.only(left: 8),child: Icon(Icons.search_rounded),@@ -1327,14 +1331,14 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMi),// Item count + filter badge rowif (!_isInSearchMode)- _buildInfoRow(cs, tt),+ _buildInfoRow(cs, tt, l),]),),Expanded(child: Stack(children: [_isInSearchMode- ? _buildSearchResults(cs, tt)+ ? _buildSearchResults(cs, tt, l): hasTabs? _buildTabbedContent(cs, tt): _buildGrid(),@@ -1397,7 +1401,8 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMi}Widget _buildFloatingTabBar(ColorScheme cs) {- const labels = ['Library', 'Series', 'Authors'];+ final l = AppLocalizations.of(context)!;+ final labels = [l.libraryTabLibrary, l.libraryTabSeries, l.libraryTabAuthors];return Center(child: ClipRRect(borderRadius: BorderRadius.circular(24),child: BackdropFilter(@@ -1488,7 +1493,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMimainAxisSize: MainAxisSize.min,children: [Text(- 'Sort',+ AppLocalizations.of(context)!.sort,style: TextStyle(fontSize: 13,fontWeight: FontWeight.w700,@@ -1532,17 +1537,17 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMi);}- Widget _buildInfoRow(ColorScheme cs, TextTheme tt) {+ Widget _buildInfoRow(ColorScheme cs, TextTheme tt, AppLocalizations l) {String countText;switch (_currentTab) {case 1:- countText = '$_totalSeries series';+ countText = l.librarySeriesCount(_totalSeries);break;case 2:- countText = '${_authors.length} authors';+ countText = l.libraryAuthorsCount(_authors.length);break;default:- countText = '${_items.length}${_totalItems > 0 ? '/$_totalItems' : ''} books';+ countText = l.libraryBooksCount(_items.length, _totalItems);break;}@@ -1564,7 +1569,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMichildren: [Icon(Icons.filter_list_rounded, size: 14, color: cs.tertiary),const SizedBox(width: 4),- Text(_filterLabel, style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: cs.tertiary),+ Text(_filterLabelOf(l), style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: cs.tertiary),overflow: TextOverflow.ellipsis, maxLines: 1),const SizedBox(width: 4),Icon(Icons.close_rounded, size: 14, color: cs.tertiary),@@ -1676,7 +1681,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMi// ═══════════════════════════════════════════════════════════════// SEARCH RESULTS// ═══════════════════════════════════════════════════════════════- Widget _buildSearchResults(ColorScheme cs, TextTheme tt) {+ Widget _buildSearchResults(ColorScheme cs, TextTheme tt, AppLocalizations l) {if (_isSearching) {return const Center(child: CircularProgressIndicator());}@@ -1690,7 +1695,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMichildren: [Icon(Icons.search_off_rounded, size: 48, color: cs.onSurfaceVariant),const SizedBox(height: 12),- Text('No results found',+ Text(l.libraryNoResults,style: tt.bodyLarge?.copyWith(color: cs.onSurfaceVariant)),],),@@ -1718,7 +1723,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMireturn <Widget>[Padding(padding: const EdgeInsets.fromLTRB(4, 8, 4, 8),- child: Text(isPodcast ? 'Shows' : 'Books',+ child: Text(isPodcast ? l.librarySearchShows : l.librarySearchBooks,style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.primary)),),@@ -1740,7 +1745,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMiPadding(padding: EdgeInsets.fromLTRB(4, _searchBookResults.isNotEmpty ? 20 : 8, 4, 8),- child: Text('Episodes',+ child: Text(l.librarySearchEpisodes,style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.primary)),),@@ -1759,7 +1764,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMiPadding(padding: EdgeInsets.fromLTRB(4, _searchBookResults.isNotEmpty ? 20 : 8, 4, 8),- child: Text('Series',+ child: Text(l.librarySearchSeries,style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.primary)),),@@ -1781,7 +1786,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMiPadding(padding: EdgeInsets.fromLTRB(4, (_searchBookResults.isNotEmpty || _searchSeriesResults.isNotEmpty) ? 20 : 8, 4, 8),- child: Text('Authors',+ child: Text(l.librarySearchAuthors,style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.primary)),),diff --git a/lib/screens/login_screen.dart b/lib/screens/login_screen.dartindex 24725647..43bd17eb 100644--- a/lib/screens/login_screen.dart+++ b/lib/screens/login_screen.dart@@ -15,6 +15,7 @@ import '../services/user_account_service.dart';import '../widgets/absorb_wave_icon.dart';import '../services/audio_player_service.dart';import '../main.dart' show applyTrustAllCerts, oledNotifier;+import '../l10n/app_localizations.dart';class LoginScreen extends StatefulWidget {const LoginScreen({super.key});@@ -171,7 +172,7 @@ class _LoginScreenState extends State<LoginScreen>setState(() {_serverChecking = false;_serverValid = ok;- _serverError = ok ? null : 'Could not reach server';+ _serverError = ok ? null : AppLocalizations.of(context)!.loginCouldNotReachServer;if (ok) {_lastValidatedServer = fullUrl;} else {@@ -195,7 +196,7 @@ class _LoginScreenState extends State<LoginScreen>setState(() {_serverChecking = false;_serverValid = false;- _serverError = 'Could not reach server';+ _serverError = AppLocalizations.of(context)!.loginCouldNotReachServer;_oidcConfig = null;});}@@ -208,7 +209,7 @@ class _LoginScreenState extends State<LoginScreen>if (!_serverValid) {await _checkServer();if (!_serverValid) {- setState(() => _loginError = _serverError ?? 'Could not reach server');+ setState(() => _loginError = _serverError ?? AppLocalizations.of(context)!.loginCouldNotReachServer);return;}}@@ -236,6 +237,7 @@ class _LoginScreenState extends State<LoginScreen>username: _usernameController.text.trim(),password: _passwordController.text,customHeaders: headers,+ l: AppLocalizations.of(context),);if (mounted) {@@ -243,7 +245,7 @@ class _LoginScreenState extends State<LoginScreen>if (!success) {setState(() {- _loginError = auth.errorMessage ?? 'Login failed';+ _loginError = auth.errorMessage ?? AppLocalizations.of(context)!.loginFailed;});} else {TextInput.finishAutofillContext();@@ -273,7 +275,7 @@ class _LoginScreenState extends State<LoginScreen>if (callbackUri == null) {if (mounted) setState(() {_isOidcLoading = false;- _loginError = 'SSO login failed or was cancelled';+ _loginError = AppLocalizations.of(context)!.loginSsoFailed;});return;}@@ -285,11 +287,12 @@ class _LoginScreenState extends State<LoginScreen>final success = await auth.loginWithOidc(serverUrl: fullUrl,result: result,+ l: AppLocalizations.of(context),);if (mounted) {setState(() => _isOidcLoading = false);if (!success) {- setState(() => _loginError = auth.errorMessage ?? 'SSO login failed');+ setState(() => _loginError = auth.errorMessage ?? AppLocalizations.of(context)!.loginSsoFailed);} else if (Navigator.of(context).canPop()) {Navigator.of(context).pop();}@@ -297,7 +300,7 @@ class _LoginScreenState extends State<LoginScreen>} else if (mounted) {setState(() {_isOidcLoading = false;- _loginError = 'SSO authentication failed. Please try again.';+ _loginError = AppLocalizations.of(context)!.loginSsoAuthFailed;});}}@@ -306,6 +309,7 @@ class _LoginScreenState extends State<LoginScreen>Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Scaffold(resizeToAvoidBottomInset: true,@@ -371,7 +375,7 @@ class _LoginScreenState extends State<LoginScreen>),const SizedBox(height: 28),Text(- 'A B S O R B',+ l.appTitle,style: tt.headlineMedium?.copyWith(fontWeight: FontWeight.w200,color: cs.onSurface,@@ -380,7 +384,7 @@ class _LoginScreenState extends State<LoginScreen>),const SizedBox(height: 10),Text(- 'Start Absorbing',+ l.loginTagline,style: tt.bodyLarge?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.6),fontWeight: FontWeight.w400,@@ -422,7 +426,7 @@ class _LoginScreenState extends State<LoginScreen>Padding(padding: const EdgeInsets.only(left: 4, bottom: 16),child: Text(- 'Connect to your server',+ l.loginConnectToServer,style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.7),fontWeight: FontWeight.w500,@@ -433,9 +437,9 @@ class _LoginScreenState extends State<LoginScreen>// Server URL_buildInputField(controller: _serverController,- label: 'Server address',- hint: 'my.server.com',- helperText: 'IP:port works too (e.g. 192.168.1.5:13378)',+ label: l.loginServerAddress,+ hint: l.loginServerHint,+ helperText: l.loginServerHelper,keyboardType: TextInputType.url,textInputAction: TextInputAction.next,onFieldSubmitted: (_) {@@ -513,15 +517,15 @@ class _LoginScreenState extends State<LoginScreen>Icon(_showAdvanced ? Icons.expand_less_rounded : Icons.expand_more_rounded,size: 18, color: cs.onSurfaceVariant.withValues(alpha: 0.5)),const SizedBox(width: 4),- Text('Advanced', style: TextStyle(fontSize: 13, color: cs.onSurfaceVariant.withValues(alpha: 0.5))),+ Text(l.loginAdvanced, style: TextStyle(fontSize: 13, color: cs.onSurfaceVariant.withValues(alpha: 0.5))),],),),if (_showAdvanced) ...[const SizedBox(height: 8),- Text('Custom HTTP Headers', style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: cs.onSurfaceVariant.withValues(alpha: 0.7))),+ Text(l.loginCustomHttpHeaders, style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: cs.onSurfaceVariant.withValues(alpha: 0.7))),const SizedBox(height: 4),- Text('For Cloudflare tunnels or reverse proxies that require extra headers. Add headers before entering your server URL.',+ Text(l.loginCustomHeadersDescription,style: TextStyle(fontSize: 11, color: cs.onSurfaceVariant.withValues(alpha: 0.4))),const SizedBox(height: 8),..._headerControllers.asMap().entries.map((entry) {@@ -538,7 +542,7 @@ class _LoginScreenState extends State<LoginScreen>style: TextStyle(fontSize: 13, color: cs.onSurface),onChanged: (_) => _revalidateServer(),decoration: InputDecoration(- hintText: 'Header name',+ hintText: l.loginHeaderName,hintStyle: TextStyle(color: cs.onSurfaceVariant.withValues(alpha: 0.3), fontSize: 13),filled: true,fillColor: cs.surfaceContainerHighest.withValues(alpha: 0.5),@@ -555,7 +559,7 @@ class _LoginScreenState extends State<LoginScreen>style: TextStyle(fontSize: 13, color: cs.onSurface),onChanged: (_) => _revalidateServer(),decoration: InputDecoration(- hintText: 'Value',+ hintText: l.loginHeaderValue,hintStyle: TextStyle(color: cs.onSurfaceVariant.withValues(alpha: 0.3), fontSize: 13),filled: true,fillColor: cs.surfaceContainerHighest.withValues(alpha: 0.5),@@ -591,7 +595,7 @@ class _LoginScreenState extends State<LoginScreen>children: [Icon(Icons.add_rounded, size: 16, color: cs.primary),const SizedBox(width: 4),- Text('Add Header', style: TextStyle(fontSize: 13, fontWeight: FontWeight.w600, color: cs.primary)),+ Text(l.loginAddHeader, style: TextStyle(fontSize: 13, fontWeight: FontWeight.w600, color: cs.primary)),],),),@@ -599,12 +603,12 @@ class _LoginScreenState extends State<LoginScreen>const SizedBox(height: 8),const Divider(height: 1),const SizedBox(height: 4),- Text('Self-signed Certificates', style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: cs.onSurfaceVariant.withValues(alpha: 0.7))),+ Text(l.loginSelfSignedCertificates, style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: cs.onSurfaceVariant.withValues(alpha: 0.7))),Row(children: [Expanded(child: Text(- 'Trust all certificates (for self-signed / custom CA setups)',+ l.loginTrustAllCertificates,style: TextStyle(fontSize: 11, color: cs.onSurfaceVariant.withValues(alpha: 0.4)),),),@@ -662,7 +666,7 @@ class _LoginScreenState extends State<LoginScreen>ActionChip(avatar: Icon(Icons.restore_rounded, size: 16,color: cs.onSurfaceVariant.withValues(alpha: 0.6)),- label: Text('Restore from backup',+ label: Text(l.loginRestoreFromBackup,style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.6),)),@@ -692,6 +696,7 @@ class _LoginScreenState extends State<LoginScreen>Widget _buildSavedAccounts(ColorScheme cs, TextTheme tt) {final accounts = UserAccountService().accounts;if (accounts.isEmpty) return const SizedBox.shrink();+ final l = AppLocalizations.of(context)!;return FadeTransition(opacity: _fadeAnim,@@ -704,7 +709,7 @@ class _LoginScreenState extends State<LoginScreen>Expanded(child: Divider(color: cs.outlineVariant.withValues(alpha: 0.15))),Padding(padding: const EdgeInsets.symmetric(horizontal: 14),- child: Text('saved accounts',+ child: Text(l.loginSavedAccounts,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.4))),),@@ -784,8 +789,9 @@ class _LoginScreenState extends State<LoginScreen>if (!data.containsKey('version')) {if (mounted) {+ final l = AppLocalizations.of(context)!;ScaffoldMessenger.of(context).showSnackBar(- const SnackBar(content: Text('Invalid backup file')),+ SnackBar(content: Text(l.loginInvalidBackupFile)),);}return;@@ -796,21 +802,22 @@ class _LoginScreenState extends State<LoginScreen>final hasAccounts = accountCount > 0;if (!mounted) return;+ final l = AppLocalizations.of(context)!;final confirm = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Restore backup?'),+ title: Text(l.loginRestoreBackupTitle),content: Text(hasAccounts- ? 'This will restore all settings and $accountCount saved account(s). You\'ll be signed in automatically.'- : 'This will restore all settings. No accounts were included in this backup.'),+ ? l.loginRestoreBackupWithAccounts(accountCount)+ : l.loginRestoreBackupNoAccounts),actions: [TextButton(onPressed: () => Navigator.pop(ctx, false),- child: const Text('Cancel'),+ child: Text(l.cancel),),FilledButton(onPressed: () => Navigator.pop(ctx, true),- child: const Text('Restore'),+ child: Text(l.loginRestore),),],),@@ -828,16 +835,17 @@ class _LoginScreenState extends State<LoginScreen>await auth.switchToAccount(restoredAccounts.first);if (mounted) {+ final l2 = AppLocalizations.of(context)!;if (auth.isAuthenticated && auth.serverReachable) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: Text('Restored settings and signed in as ${restoredAccounts.first.username}'),+ content: Text(l2.loginRestoredAndSignedIn(restoredAccounts.first.username)),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));} else {// Token expired — accounts are saved but need re-authScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: const Text('Settings restored. Session expired \u2014 sign in to continue.'),+ content: Text(l2.loginSessionExpired),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));@@ -846,16 +854,18 @@ class _LoginScreenState extends State<LoginScreen>}}} else if (mounted) {+ final l3 = AppLocalizations.of(context)!;ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: const Text('Settings restored'),+ content: Text(l3.loginSettingsRestored),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));}} catch (e) {if (mounted) {+ final l4 = AppLocalizations.of(context)!;ScaffoldMessenger.of(context).showSnackBar(- SnackBar(content: Text('Restore failed: $e')),+ SnackBar(content: Text(l4.loginRestoreFailed(e.toString()))),);}}@@ -938,6 +948,7 @@ class _LoginScreenState extends State<LoginScreen>}Widget _buildOidcButton(ColorScheme cs, TextTheme tt) {+ final l = AppLocalizations.of(context)!;return Column(children: [const SizedBox(height: 16),@@ -953,7 +964,7 @@ class _LoginScreenState extends State<LoginScreen>): Icon(Icons.login_rounded, size: 20, color: cs.primary),label: Text(- _isOidcLoading ? 'Waiting for SSO...' : _oidcConfig!.buttonText,+ _isOidcLoading ? l.loginWaitingForSso : _oidcConfig!.buttonText,style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600,color: cs.primary,@@ -969,7 +980,7 @@ class _LoginScreenState extends State<LoginScreen>),const SizedBox(height: 8),Text(- 'Redirect URI: audiobookshelf://oauth',+ l.loginRedirectUri,style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.4),letterSpacing: 0.3,@@ -981,7 +992,7 @@ class _LoginScreenState extends State<LoginScreen>Expanded(child: Divider(color: cs.outlineVariant.withValues(alpha: 0.2))),Padding(padding: const EdgeInsets.symmetric(horizontal: 14),- child: Text('or sign in manually', style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.5))),+ child: Text(l.loginOrSignInManually, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.5))),),Expanded(child: Divider(color: cs.outlineVariant.withValues(alpha: 0.2))),],@@ -991,6 +1002,7 @@ class _LoginScreenState extends State<LoginScreen>}Widget _buildCredentialFields(ColorScheme cs, TextTheme tt) {+ final l = AppLocalizations.of(context)!;return AutofillGroup(child: Column(children: [@@ -1027,7 +1039,7 @@ class _LoginScreenState extends State<LoginScreen>_buildInputField(controller: _usernameController,focusNode: _usernameFocus,- label: 'Username',+ label: l.loginUsername,cs: cs,textInputAction: TextInputAction.next,autofillHints: const [AutofillHints.username],@@ -1035,7 +1047,7 @@ class _LoginScreenState extends State<LoginScreen>color: cs.onSurfaceVariant.withValues(alpha: 0.5)),validator: (v) {if (v == null || v.trim().isEmpty) {- return 'Please enter your username';+ return l.loginUsernameRequired;}return null;},@@ -1045,7 +1057,7 @@ class _LoginScreenState extends State<LoginScreen>// Password_buildInputField(controller: _passwordController,- label: 'Password',+ label: l.loginPassword,cs: cs,obscureText: _obscurePassword,textInputAction: TextInputAction.done,@@ -1096,7 +1108,7 @@ class _LoginScreenState extends State<LoginScreen>),): Text(- 'Sign In',+ l.loginSignIn,key: const ValueKey('text'),style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600,diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dartindex 7826a289..ddc409a5 100644--- a/lib/screens/settings_screen.dart+++ b/lib/screens/settings_screen.dart@@ -28,6 +28,7 @@ import '../widgets/absorb_slider.dart';import '../widgets/collapsible_section.dart';import '../widgets/overlay_toast.dart';import '../widgets/tips_sheet.dart';+import '../l10n/app_localizations.dart';class SettingsScreen extends StatefulWidget {const SettingsScreen({super.key});@@ -299,13 +300,14 @@ class _SettingsScreenState extends State<SettingsScreen> {Widget _infoIcon(String title, String content) {final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;return GestureDetector(onTap: () => showDialog(context: context,builder: (ctx) => AlertDialog(title: Text(title),content: Text(content),- actions: [TextButton(onPressed: () => Navigator.pop(ctx), child: const Text('Got it'))],+ actions: [TextButton(onPressed: () => Navigator.pop(ctx), child: Text(l.gotIt))],),),child: Padding(@@ -326,6 +328,7 @@ class _SettingsScreenState extends State<SettingsScreen> {final tt = Theme.of(context).textTheme;final auth = context.watch<AuthProvider>();final lib = context.watch<LibraryProvider>();+ final l = AppLocalizations.of(context)!;return Scaffold(body: Container(@@ -346,7 +349,7 @@ class _SettingsScreenState extends State<SettingsScreen> {slivers: [SliverToBoxAdapter(child: AbsorbPageHeader(- title: 'Settings',+ title: l.settingsTitle,padding: const EdgeInsets.fromLTRB(20, 12, 20, 8),),),@@ -376,10 +379,10 @@ class _SettingsScreenState extends State<SettingsScreen> {Expanded(child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- Text('Tips & Hidden Features', style: tt.titleSmall?.copyWith(+ Text(l.tipsAndHiddenFeatures, style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600, color: cs.onPrimaryContainer)),const SizedBox(height: 2),- Text('Get the most out of Absorb', style: tt.bodySmall?.copyWith(+ Text(l.tipsSubtitle, style: tt.bodySmall?.copyWith(color: cs.onPrimaryContainer.withValues(alpha: 0.7))),],)),@@ -422,7 +425,7 @@ class _SettingsScreenState extends State<SettingsScreen> {const SizedBox(width: 14),Expanded(child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [Row(children: [- Flexible(child: Text(auth.username ?? 'User', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700),+ Flexible(child: Text(auth.username ?? l.userFallback, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700),overflow: TextOverflow.ellipsis)),if (auth.isAdmin) ...[const SizedBox(width: 8),@@ -432,7 +435,7 @@ class _SettingsScreenState extends State<SettingsScreen> {color: auth.isRoot ? Colors.amber.withValues(alpha: 0.12) : cs.primary.withValues(alpha: 0.12),borderRadius: BorderRadius.circular(4),),- child: Text(auth.isRoot ? 'Root' : 'Admin', style: tt.labelSmall?.copyWith(+ child: Text(auth.isRoot ? l.root : l.admin, style: tt.labelSmall?.copyWith(color: auth.isRoot ? Colors.amber : cs.primary, fontWeight: FontWeight.w600, fontSize: 9)),),],@@ -472,9 +475,9 @@ class _SettingsScreenState extends State<SettingsScreen> {Expanded(child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- Text('Server Admin', style: tt.titleSmall?.copyWith(+ Text(l.serverAdmin, style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600)),- Text('Manage users, libraries & server settings',+ Text(l.serverAdminSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),],)),@@ -492,7 +495,7 @@ class _SettingsScreenState extends State<SettingsScreen> {CollapsibleSection(key: _keyFor('Appearance'),icon: Icons.palette_outlined,- title: 'Appearance',+ title: l.sectionAppearance,cs: cs,isExpanded: _expandedSection == 'Appearance',onExpansionChanged: (v) => _onSectionExpanded('Appearance', v),@@ -502,17 +505,17 @@ class _SettingsScreenState extends State<SettingsScreen> {child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- Text('Theme', style: tt.titleSmall),+ Text(l.themeLabel, style: tt.titleSmall),const SizedBox(height: 12),SizedBox(width: double.infinity,child: SegmentedButton<String>(showSelectedIcon: false,- segments: const [- ButtonSegment(value: 'dark', label: Text('Dark')),- ButtonSegment(value: 'oled', label: Text('OLED')),- ButtonSegment(value: 'light', label: Text('Light')),- ButtonSegment(value: 'system', label: Text('Auto')),+ segments: [+ ButtonSegment(value: 'dark', label: Text(l.themeDark)),+ ButtonSegment(value: 'oled', label: Text(l.themeOled)),+ ButtonSegment(value: 'light', label: Text(l.themeLight)),+ ButtonSegment(value: 'system', label: Text(l.themeAuto)),],selected: {_themeMode},onSelectionChanged: _loaded ? (selected) {@@ -535,10 +538,10 @@ class _SettingsScreenState extends State<SettingsScreen> {child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- Text('Start screen', style: tt.titleSmall),+ Text(l.startScreenLabel, style: tt.titleSmall),const SizedBox(height: 4),Text(- 'Which tab to open when the app launches',+ l.startScreenSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant),),const SizedBox(height: 12),@@ -546,11 +549,11 @@ class _SettingsScreenState extends State<SettingsScreen> {width: double.infinity,child: SegmentedButton<int>(showSelectedIcon: false,- segments: const [- ButtonSegment(value: 0, label: Text('Home')),- ButtonSegment(value: 1, label: Text('Library')),- ButtonSegment(value: 2, label: Text('Absorb')),- ButtonSegment(value: 3, label: Text('Stats')),+ segments: [+ ButtonSegment(value: 0, label: Text(l.startScreenHome)),+ ButtonSegment(value: 1, label: Text(l.startScreenLibrary)),+ ButtonSegment(value: 2, label: Text(l.startScreenAbsorb)),+ ButtonSegment(value: 3, label: Text(l.startScreenStats)),],selected: {_startScreen},onSelectionChanged: _loaded ? (selected) {@@ -568,9 +571,9 @@ class _SettingsScreenState extends State<SettingsScreen> {),const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(- title: const Text('Disable page fade'),+ title: Text(l.disablePageFade),subtitle: Text(- _snappyTransitions ? 'Pages switch instantly' : 'Pages fade when switching tabs',+ _snappyTransitions ? l.disablePageFadeOnSubtitle : l.disablePageFadeOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _snappyTransitions,onChanged: _loaded ? (v) {@@ -581,9 +584,9 @@ class _SettingsScreenState extends State<SettingsScreen> {),const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(- title: const Text('Rectangle book covers'),+ title: Text(l.rectangleBookCovers),subtitle: Text(- _rectangleCovers ? 'Covers display in 2:3 book proportion' : 'Covers are square',+ _rectangleCovers ? l.rectangleBookCoversOnSubtitle : l.rectangleBookCoversOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _rectangleCovers,onChanged: _loaded ? (v) {@@ -599,15 +602,15 @@ class _SettingsScreenState extends State<SettingsScreen> {CollapsibleSection(key: _keyFor('Absorbing Cards'),icon: Icons.style_rounded,- title: 'Absorbing Cards',+ title: l.sectionAbsorbingCards,cs: cs,isExpanded: _expandedSection == 'Absorbing Cards',onExpansionChanged: (v) => _onSectionExpanded('Absorbing Cards', v),children: [SwitchListTile(- title: const Text('Full screen player'),+ title: Text(l.fullScreenPlayer),subtitle: Text(- _fullScreenPlayer ? 'On - books open in full screen when played' : 'Off - play within card view',+ _fullScreenPlayer ? l.fullScreenPlayerOnSubtitle : l.fullScreenPlayerOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _fullScreenPlayer,onChanged: _loaded ? (v) {@@ -617,9 +620,9 @@ class _SettingsScreenState extends State<SettingsScreen> {),const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(- title: const Text('Cover play/pause'),+ title: Text(l.coverPlayPause),subtitle: Text(- _coverPlayButton ? 'On - tap cover art to play/pause' : 'Off - dedicated play/pause button in controls',+ _coverPlayButton ? l.coverPlayPauseOnSubtitle : l.coverPlayPauseOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _coverPlayButton,onChanged: _loaded ? (v) {@@ -629,9 +632,9 @@ class _SettingsScreenState extends State<SettingsScreen> {),const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(- title: const Text('Full book scrubber'),+ title: Text(l.fullBookScrubber),subtitle: Text(- _showBookSlider ? 'On - seekable slider across entire book' : 'Off - progress bar only',+ _showBookSlider ? l.fullBookScrubberOnSubtitle : l.fullBookScrubberOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _showBookSlider,onChanged: _loaded ? (v) {@@ -641,9 +644,9 @@ class _SettingsScreenState extends State<SettingsScreen> {),const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(- title: const Text('Speed-adjusted time'),+ title: Text(l.speedAdjustedTime),subtitle: Text(- _speedAdjustedTime ? 'On - remaining time reflects playback speed' : 'Off - showing raw audio duration',+ _speedAdjustedTime ? l.speedAdjustedTimeOnSubtitle : l.speedAdjustedTimeOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _speedAdjustedTime,onChanged: _loaded ? (v) {@@ -654,13 +657,13 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(title: Row(children: [- const Flexible(child: Text('Merge libraries')),- _infoIcon('Merge Libraries', 'When enabled, the Absorbing screen shows all your in-progress books and podcasts from every library in a single view. When disabled, only items from the library you currently have selected are shown.'),+ Flexible(child: Text(l.mergeLibraries)),+ _infoIcon(l.mergeLibrariesInfoTitle, l.mergeLibrariesInfoContent),]),subtitle: Text(_mergeAbsorbingLibraries- ? 'Absorbing page shows items from all libraries'- : 'Absorbing page shows current library only',+ ? l.mergeLibrariesOnSubtitle+ : l.mergeLibrariesOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _mergeAbsorbingLibraries,onChanged: _loaded ? (v) {@@ -673,31 +676,31 @@ class _SettingsScreenState extends State<SettingsScreen> {padding: const EdgeInsets.fromLTRB(16, 12, 16, 8),child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [Row(children: [- Text('Queue mode', style: tt.bodyMedium?.copyWith(color: cs.onSurface)),+ Text(l.queueMode, style: tt.bodyMedium?.copyWith(color: cs.onSurface)),const SizedBox(width: 4),GestureDetector(onTap: () => showDialog(context: context,builder: (ctx) => AlertDialog(- title: const Text('Queue Mode'),- content: const Column(+ title: Text(l.queueModeInfoTitle),+ content: Column(mainAxisSize: MainAxisSize.min,crossAxisAlignment: CrossAxisAlignment.start,children: [- Text('Off', style: TextStyle(fontWeight: FontWeight.w600)),- SizedBox(height: 4),- Text('Playback stops when the current book or episode finishes.'),- SizedBox(height: 12),- Text('Manual Queue', style: TextStyle(fontWeight: FontWeight.w600)),- SizedBox(height: 4),- Text('Your absorbing cards act as a playlist. When one finishes, the next non-finished card auto-plays. Add items with the "Add to Absorbing" button on a book or episode and reorder from the absorbing screen.'),- SizedBox(height: 12),- Text('Series', style: TextStyle(fontWeight: FontWeight.w600)),- SizedBox(height: 4),- Text('Automatically plays the next book in a series or the next episode in a podcast show.'),+ Text(l.queueModeInfoOff, style: const TextStyle(fontWeight: FontWeight.w600)),+ const SizedBox(height: 4),+ Text(l.queueModeInfoOffDesc),+ const SizedBox(height: 12),+ Text(l.queueModeInfoManual, style: const TextStyle(fontWeight: FontWeight.w600)),+ const SizedBox(height: 4),+ Text(l.queueModeInfoManualDesc),+ const SizedBox(height: 12),+ Text(l.queueModeInfoSeries, style: const TextStyle(fontWeight: FontWeight.w600)),+ const SizedBox(height: 4),+ Text(l.queueModeInfoSeriesDesc),],),- actions: [TextButton(onPressed: () => Navigator.pop(ctx), child: Text('Got it'))],+ actions: [TextButton(onPressed: () => Navigator.pop(ctx), child: Text(l.gotIt))],),),child: Icon(Icons.info_outline_rounded, size: 16, color: cs.onSurfaceVariant),@@ -706,15 +709,15 @@ class _SettingsScreenState extends State<SettingsScreen> {const SizedBox(height: 8),// When libraries are merged, show a single unified controlif (_mergeAbsorbingLibraries) ...[- Text('Playback stops, manual queue, or auto-absorbs next item',+ Text(l.queueModeMergedSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),const SizedBox(height: 8),SizedBox(width: double.infinity, child: SegmentedButton<String>(showSelectedIcon: false,- segments: const [- ButtonSegment(value: 'off', icon: Icon(Icons.stop_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text('Off'))),- ButtonSegment(value: 'manual', icon: Icon(Icons.queue_music_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text('Manual'))),- ButtonSegment(value: 'auto_next', icon: Icon(Icons.skip_next_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text('Auto'))),+ segments: [+ ButtonSegment(value: 'off', icon: const Icon(Icons.stop_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text(l.queueModeOff))),+ ButtonSegment(value: 'manual', icon: const Icon(Icons.queue_music_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text(l.queueModeManual))),+ ButtonSegment(value: 'auto_next', icon: const Icon(Icons.skip_next_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text(l.queueModeAuto))),],selected: {_mergedQueueMode},onSelectionChanged: _loaded ? (s) {@@ -730,14 +733,14 @@ class _SettingsScreenState extends State<SettingsScreen> {)),] else ...[// Separate controls per type- Text('Books', style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),+ Text(l.queueModeBooks, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),const SizedBox(height: 4),SizedBox(width: double.infinity, child: SegmentedButton<String>(showSelectedIcon: false,- segments: const [- ButtonSegment(value: 'off', icon: Icon(Icons.stop_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text('Off'))),- ButtonSegment(value: 'manual', icon: Icon(Icons.queue_music_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text('Manual'))),- ButtonSegment(value: 'auto_next', icon: Icon(Icons.skip_next_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text('Series'))),+ segments: [+ ButtonSegment(value: 'off', icon: const Icon(Icons.stop_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text(l.queueModeOff))),+ ButtonSegment(value: 'manual', icon: const Icon(Icons.queue_music_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text(l.queueModeManual))),+ ButtonSegment(value: 'auto_next', icon: const Icon(Icons.skip_next_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text(l.queueModeSeriesLabel))),],selected: {_bookQueueMode},onSelectionChanged: _loaded ? (s) {@@ -747,16 +750,16 @@ class _SettingsScreenState extends State<SettingsScreen> {} : null,style: const ButtonStyle(visualDensity: VisualDensity.compact),)),- if (lib.libraries.any((l) => l['mediaType'] == 'podcast')) ...[+ if (lib.libraries.any((lib) => lib['mediaType'] == 'podcast')) ...[const SizedBox(height: 8),- Text('Podcasts', style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),+ Text(l.queueModePodcasts, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),const SizedBox(height: 4),SizedBox(width: double.infinity, child: SegmentedButton<String>(showSelectedIcon: false,- segments: const [- ButtonSegment(value: 'off', icon: Icon(Icons.stop_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text('Off'))),- ButtonSegment(value: 'manual', icon: Icon(Icons.queue_music_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text('Manual'))),- ButtonSegment(value: 'auto_next', icon: Icon(Icons.skip_next_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text('Show'))),+ segments: [+ ButtonSegment(value: 'off', icon: const Icon(Icons.stop_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text(l.queueModeOff))),+ ButtonSegment(value: 'manual', icon: const Icon(Icons.queue_music_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text(l.queueModeManual))),+ ButtonSegment(value: 'auto_next', icon: const Icon(Icons.skip_next_rounded, size: 18), label: FittedBox(fit: BoxFit.scaleDown, child: Text(l.queueModeShowLabel))),],selected: {_podcastQueueMode},onSelectionChanged: _loaded ? (s) {@@ -771,11 +774,11 @@ class _SettingsScreenState extends State<SettingsScreen> {if (_bookQueueMode == 'manual' || _podcastQueueMode == 'manual') ...[const SizedBox(height: 4),SwitchListTile(- title: const Text('Auto-download queue'),+ title: Text(l.autoDownloadQueue),subtitle: Text(_queueAutoDownload- ? 'Keep next $_rollingDownloadCount items downloaded'- : 'Off - manual downloads only',+ ? l.autoDownloadQueueOnSubtitle(_rollingDownloadCount)+ : l.autoDownloadQueueOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _queueAutoDownload,onChanged: _loaded ? (v) {@@ -796,11 +799,11 @@ class _SettingsScreenState extends State<SettingsScreen> {final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Reset button grid?'),- content: const Text('This will restore the default button layout, order, and toggle settings.'),+ title: Text(l.resetButtonGridQuestion),+ content: Text(l.resetButtonGridContent),actions: [- TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),- TextButton(onPressed: () => Navigator.pop(ctx, true), child: const Text('Reset')),+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ TextButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.reset)),],),);@@ -809,10 +812,10 @@ class _SettingsScreenState extends State<SettingsScreen> {await PlayerSettings.setCardButtonVisibleCount(PlayerSettings.defaultButtonVisibleCount);await PlayerSettings.setCardIconsOnly(false);await PlayerSettings.setCardMoreInline(false);- if (mounted) showOverlayToast(context, 'Button grid reset', icon: Icons.restart_alt_rounded);+ if (mounted) showOverlayToast(context, l.buttonGridReset, icon: Icons.restart_alt_rounded);} : null,icon: Icon(Icons.restart_alt_rounded, size: 16, color: cs.onSurfaceVariant),- label: Text('Reset button grid', style: TextStyle(fontSize: 13, color: cs.onSurfaceVariant)),+ label: Text(l.resetButtonGrid, style: TextStyle(fontSize: 13, color: cs.onSurfaceVariant)),)),),],@@ -823,7 +826,7 @@ class _SettingsScreenState extends State<SettingsScreen> {CollapsibleSection(key: _keyFor('Playback'),icon: Icons.play_circle_outline_rounded,- title: 'Playback',+ title: l.sectionPlayback,cs: cs,isExpanded: _expandedSection == 'Playback',onExpansionChanged: (v) => _onSectionExpanded('Playback', v),@@ -834,8 +837,8 @@ class _SettingsScreenState extends State<SettingsScreen> {child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween,children: [- Text('Default speed', style: tt.bodyMedium),- Text('${_defaultSpeed.toStringAsFixed(2)}x',+ Text(l.defaultSpeed, style: tt.bodyMedium),+ Text(l.speedValue(_defaultSpeed.toStringAsFixed(2)),style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w700, color: cs.primary)),],@@ -843,7 +846,7 @@ class _SettingsScreenState extends State<SettingsScreen> {),Padding(padding: const EdgeInsets.fromLTRB(16, 0, 16, 0),- child: Text('New books start at this speed - each book remembers its own',+ child: Text(l.defaultSpeedSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 11)),),AbsorbSlider(@@ -863,7 +866,7 @@ class _SettingsScreenState extends State<SettingsScreen> {children: [0.75, 1.0, 1.25, 1.5, 1.75, 2.0, 2.5, 3.0].map((s) {final isActive = (_defaultSpeed - s).abs() < 0.01;return ActionChip(- label: Text('${s}x',+ label: Text(l.speedValue(s.toString()),style: TextStyle(fontSize: 12,fontWeight: isActive ? FontWeight.w700 : FontWeight.w400,@@ -886,8 +889,8 @@ class _SettingsScreenState extends State<SettingsScreen> {child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween,children: [- Text('Skip back', style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),- Text('${_backSkip}s', style: tt.bodyMedium?.copyWith(+ Text(l.skipBack, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),+ Text(l.secondsValue(_backSkip.toString()), style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.primary)),],),@@ -905,8 +908,8 @@ class _SettingsScreenState extends State<SettingsScreen> {child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween,children: [- Text('Skip forward', style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),- Text('${_forwardSkip}s', style: tt.bodyMedium?.copyWith(+ Text(l.skipForward, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),+ Text(l.secondsValue(_forwardSkip.toString()), style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.primary)),],),@@ -921,14 +924,14 @@ class _SettingsScreenState extends State<SettingsScreen> {),SwitchListTile(title: Row(children: [- const Expanded(child: Text('Chapter barrier on rewind')),+ Expanded(child: Text(l.chapterBarrierOnRewind)),GestureDetector(onTap: () => showDialog(context: context,builder: (_) => AlertDialog(- title: const Text('Chapter barrier'),- content: const Text('When skipping back, the playback will snap to the start of the current chapter instead of crossing into the previous one.\n\nDouble-tap the skip back button within 2 seconds to break through the barrier.'),- actions: [TextButton(onPressed: () => Navigator.pop(context), child: const Text('Got it'))],+ title: Text(l.chapterBarrierInfoTitle),+ content: Text(l.chapterBarrierInfoContent),+ actions: [TextButton(onPressed: () => Navigator.pop(context), child: Text(l.gotIt))],),),child: Padding(@@ -938,7 +941,7 @@ class _SettingsScreenState extends State<SettingsScreen> {),]),subtitle: Text(- _skipChapterBarrier ? 'On - rewind snaps to chapter start' : 'Off - rewind crosses chapter boundaries',+ _skipChapterBarrier ? l.chapterBarrierOnRewindOnSubtitle : l.chapterBarrierOnRewindOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant),),value: _skipChapterBarrier,@@ -949,9 +952,9 @@ class _SettingsScreenState extends State<SettingsScreen> {),const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(- title: const Text('Chapter progress in notification'),+ title: Text(l.chapterProgressInNotification),subtitle: Text(- _notifChapterProgress ? 'On - lockscreen shows chapter progress' : 'Off - lockscreen shows full book progress',+ _notifChapterProgress ? l.chapterProgressOnSubtitle : l.chapterProgressOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _notifChapterProgress,onChanged: _loaded ? (v) {@@ -962,11 +965,11 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),// ── Auto-Rewind ──SwitchListTile(- title: const Text('Auto-rewind on resume'),+ title: Text(l.autoRewindOnResume),subtitle: Text(_rewindSettings.enabled- ? 'On -${_rewindSettings.minRewind.round()}s to ${_rewindSettings.maxRewind.round()}s based on pause length'- : 'Off',+ ? l.autoRewindOnSubtitleFormat(_rewindSettings.minRewind.round().toString(), _rewindSettings.maxRewind.round().toString())+ : l.autoRewindOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _rewindSettings.enabled,onChanged: _loaded ? (v) => _saveRewind(@@ -987,8 +990,8 @@ class _SettingsScreenState extends State<SettingsScreen> {child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween,children: [- Text('Rewind range', style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),- Text('${_rewindSettings.minRewind.round()}s – ${_rewindSettings.maxRewind.round()}s',+ Text(l.rewindRange, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),+ Text(l.rewindRangeValue(_rewindSettings.minRewind.round().toString(), _rewindSettings.maxRewind.round().toString()),style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.primary)),],),@@ -1009,9 +1012,9 @@ class _SettingsScreenState extends State<SettingsScreen> {child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween,children: [- Expanded(child: Text('Rewind after paused for',+ Expanded(child: Text(l.rewindAfterPausedFor,style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant))),- Text(_rewindSettings.activationDelay == 0 ? 'Any pause' : '${_rewindSettings.activationDelay.round()}s+',+ Text(_rewindSettings.activationDelay == 0 ? l.rewindAnyPause : l.rewindActivationDelayValue(_rewindSettings.activationDelay.round().toString()),style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.primary)),],),@@ -1020,7 +1023,7 @@ class _SettingsScreenState extends State<SettingsScreen> {padding: const EdgeInsets.symmetric(horizontal: 8),child: Slider(value: _rewindSettings.activationDelay, min: 0, max: 10, divisions: 10,- label: _rewindSettings.activationDelay == 0 ? 'Always' : '${_rewindSettings.activationDelay.round()}s',+ label: _rewindSettings.activationDelay == 0 ? l.rewindAlwaysLabel : l.secondsValue(_rewindSettings.activationDelay.round().toString()),onChanged: (v) => _saveRewind(AutoRewindSettings(enabled: true, minRewind: _rewindSettings.minRewind,maxRewind: _rewindSettings.maxRewind, activationDelay: v,@@ -1033,15 +1036,15 @@ class _SettingsScreenState extends State<SettingsScreen> {padding: const EdgeInsets.fromLTRB(16, 0, 16, 4),child: Text(_rewindSettings.activationDelay == 0- ? 'Rewinds every time you resume, even after quick interruptions'- : 'Only rewinds if paused for ${_rewindSettings.activationDelay.round()}+ seconds',+ ? l.rewindAlwaysDescription+ : l.rewindAfterDescription(_rewindSettings.activationDelay.round().toString()),style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 11)),),const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(- title: const Text('Chapter barrier'),+ title: Text(l.chapterBarrier),subtitle: Text(- "Don't rewind past the start of the current chapter",+ l.chapterBarrierSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _rewindSettings.chapterBarrier,onChanged: (v) => _saveRewind(AutoRewindSettings(@@ -1056,14 +1059,14 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(title: Row(children: [- const Expanded(child: Text('Rewind on session start')),+ Expanded(child: Text(l.rewindOnSessionStart)),GestureDetector(onTap: () => showDialog(context: context,builder: (_) => AlertDialog(- title: const Text('Rewind on session start'),- content: const Text('Normal auto-rewind triggers when you resume from a pause within an active session. This setting adds a rewind when starting a completely new session - for example after the app was closed, playback was stopped, or you open the app fresh.\n\nWhen enabled, playback rewinds by the full max rewind amount at the start of every new session so you can re-hear where you left off.'),- actions: [TextButton(onPressed: () => Navigator.pop(context), child: const Text('Got it'))],+ title: Text(l.rewindOnSessionStart),+ content: Text(l.rewindOnSessionStartInfoContent),+ actions: [TextButton(onPressed: () => Navigator.pop(context), child: Text(l.gotIt))],),),child: Padding(@@ -1074,8 +1077,8 @@ class _SettingsScreenState extends State<SettingsScreen> {]),subtitle: Text(_rewindSettings.sessionStartRewind- ? 'On - rewinds ${_rewindSettings.maxRewind.round()}s when starting a new session'- : 'Off',+ ? l.rewindOnSessionStartOnSubtitle(_rewindSettings.maxRewind.round().toString())+ : l.autoRewindOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _rewindSettings.sessionStartRewind,onChanged: (v) => _saveRewind(AutoRewindSettings(@@ -1098,9 +1101,9 @@ class _SettingsScreenState extends State<SettingsScreen> {child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- Text('Preview', style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),+ Text(l.preview, style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),const SizedBox(height: 4),- ..._buildRewindPreviews(cs, tt),+ ..._buildRewindPreviews(cs, tt, l),],),),@@ -1114,14 +1117,14 @@ class _SettingsScreenState extends State<SettingsScreen> {CollapsibleSection(key: _keyFor('Sleep Timer'),icon: Icons.bedtime_outlined,- title: 'Sleep Timer',+ title: l.sectionSleepTimer,cs: cs,isExpanded: _expandedSection == 'Sleep Timer',onExpansionChanged: (v) => _onSectionExpanded('Sleep Timer', v),children: [Padding(padding: const EdgeInsets.fromLTRB(16, 8, 16, 4),- child: Text('Shake during sleep timer', style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),+ child: Text(l.shakeDuringSleepTimer, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),),Padding(padding: const EdgeInsets.fromLTRB(16, 8, 16, 8),@@ -1129,10 +1132,10 @@ class _SettingsScreenState extends State<SettingsScreen> {width: double.infinity,child: SegmentedButton<String>(showSelectedIcon: false,- segments: const [- ButtonSegment(value: 'off', label: FittedBox(fit: BoxFit.scaleDown, child: Text('Off'))),- ButtonSegment(value: 'addTime', label: FittedBox(fit: BoxFit.scaleDown, child: Text('Add Time'))),- ButtonSegment(value: 'resetTimer', label: FittedBox(fit: BoxFit.scaleDown, child: Text('Reset'))),+ segments: [+ ButtonSegment(value: 'off', label: FittedBox(fit: BoxFit.scaleDown, child: Text(l.shakeOff))),+ ButtonSegment(value: 'addTime', label: FittedBox(fit: BoxFit.scaleDown, child: Text(l.shakeAddTime))),+ ButtonSegment(value: 'resetTimer', label: FittedBox(fit: BoxFit.scaleDown, child: Text(l.shakeReset))),],selected: {_shakeMode},onSelectionChanged: _loaded ? (v) {@@ -1149,8 +1152,8 @@ class _SettingsScreenState extends State<SettingsScreen> {child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween,children: [- Text('Shake adds', style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),- Text('$_shakeAddMinutes min',+ Text(l.shakeAdds, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),+ Text(l.shakeAddsValue(_shakeAddMinutes),style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.primary)),],),@@ -1167,11 +1170,11 @@ class _SettingsScreenState extends State<SettingsScreen> {],const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(- title: const Text('Reset timer on pause'),+ title: Text(l.resetTimerOnPause),subtitle: Text(_resetSleepOnPause- ? 'Timer restarts from full duration when you resume'- : 'Timer continues from where it left off',+ ? l.resetTimerOnPauseOnSubtitle+ : l.resetTimerOnPauseOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _resetSleepOnPause,onChanged: _loaded ? (v) {@@ -1181,11 +1184,11 @@ class _SettingsScreenState extends State<SettingsScreen> {),const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(- title: const Text('Fade volume before sleep'),+ title: Text(l.fadeVolumeBeforeSleep),subtitle: Text(_sleepFadeOut- ? 'Gradually lowers volume over the last ${_sleepFadeDuration}s'- : 'Playback stops immediately when timer ends',+ ? l.fadeVolumeOnSubtitleDynamic(_sleepFadeDuration)+ : l.fadeVolumeOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _sleepFadeOut,onChanged: _loaded ? (v) {@@ -1195,11 +1198,11 @@ class _SettingsScreenState extends State<SettingsScreen> {),const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(- title: const Text('Chime before sleep'),+ title: Text(l.chimeBeforeSleep),subtitle: Text(_sleepChime- ? 'Plays a gentle bell when the timer is about to end'- : 'No sound warning before sleep',+ ? l.chimeBeforeSleepOnSubtitle+ : l.chimeBeforeSleepOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _sleepChime,onChanged: _loaded ? (v) {@@ -1228,19 +1231,19 @@ class _SettingsScreenState extends State<SettingsScreen> {if (_sleepFadeOut || _sleepChime) ...[const Divider(height: 1, indent: 16, endIndent: 16),ListTile(- title: const Text('Wind-down duration'),+ title: Text(l.windDownDuration),subtitle: Text(- 'Fade and chime start ${_sleepFadeDuration}s before sleep',+ l.windDownDurationSubtitle(_sleepFadeDuration),style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),),Padding(padding: const EdgeInsets.symmetric(horizontal: 16),child: Row(children: [- Text('${_sleepFadeDuration}s', style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),+ Text(l.secondsValue(_sleepFadeDuration.toString()), style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),Expanded(child: Slider(value: _sleepFadeDuration.toDouble(),min: 10, max: 60, divisions: 10,- label: '${_sleepFadeDuration}s',+ label: l.secondsValue(_sleepFadeDuration.toString()),onChanged: _loaded ? (v) {setState(() => _sleepFadeDuration = v.round());PlayerSettings.setSleepFadeDuration(v.round());@@ -1252,11 +1255,16 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),// ── Auto Sleep Timer ──SwitchListTile(- title: const Text('Auto sleep timer'),+ title: Text(l.autoSleepTimer),subtitle: Text(_autoSleepSettings.enabled- ? '${_autoSleepSettings.startLabel} – ${_autoSleepSettings.endLabel} · ${_autoSleepSettings.useEndOfChapter ? 'End of chapter' : '${_autoSleepSettings.durationMinutes} min'}'- : 'Automatically start a sleep timer during a time window',+ ? l.autoSleepTimerEnabledSubtitle(+ _autoSleepSettings.startLabel,+ _autoSleepSettings.endLabel,+ _autoSleepSettings.useEndOfChapter+ ? l.endOfChapterShort+ : l.shakeAddsValue(_autoSleepSettings.durationMinutes))+ : l.autoSleepTimerOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _autoSleepSettings.enabled,onChanged: _loaded ? (v) {@@ -1270,7 +1278,7 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),// Start time pickerListTile(- title: const Text('Window start'),+ title: Text(l.windowStart),trailing: Text(_autoSleepSettings.startLabel,style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.primary)),onTap: () async {@@ -1289,7 +1297,7 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),// End time pickerListTile(- title: const Text('Window end'),+ title: Text(l.windowEnd),trailing: Text(_autoSleepSettings.endLabel,style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.primary)),onTap: () async {@@ -1308,11 +1316,11 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),// End of chapter toggleSwitchListTile(- title: const Text('End of chapter'),+ title: Text(l.endOfChapterShort),subtitle: Text(_autoSleepSettings.useEndOfChapter- ? 'Stop at the end of the current chapter'- : 'Use a timed sleep timer',+ ? l.endOfChapterOnSubtitle+ : l.endOfChapterOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _autoSleepSettings.useEndOfChapter,onChanged: _loaded ? (v) {@@ -1330,8 +1338,8 @@ class _SettingsScreenState extends State<SettingsScreen> {child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween,children: [- Text('Timer duration', style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),- Text('${_autoSleepSettings.durationMinutes} min',+ Text(l.timerDuration, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),+ Text(l.shakeAddsValue(_autoSleepSettings.durationMinutes),style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.primary)),],),@@ -1357,15 +1365,15 @@ class _SettingsScreenState extends State<SettingsScreen> {CollapsibleSection(key: _keyFor('Downloads & Storage'),icon: Icons.download_outlined,- title: 'Downloads & Storage',+ title: l.sectionDownloadsAndStorage,cs: cs,isExpanded: _expandedSection == 'Downloads & Storage',onExpansionChanged: (v) => _onSectionExpanded('Downloads & Storage', v),children: [SwitchListTile(- title: const Text('Download over Wi-Fi only'),+ title: Text(l.downloadOverWifiOnly),subtitle: Text(- _wifiOnlyDownloads ? 'On - mobile data blocked for downloads' : 'Off - downloads on any connection',+ _wifiOnlyDownloads ? l.downloadOverWifiOnSubtitle : l.downloadOverWifiOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _wifiOnlyDownloads,onChanged: _loaded ? (v) {@@ -1376,13 +1384,13 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(title: Row(children: [- const Flexible(child: Text('Auto download on Wi-Fi')),- _infoIcon('Auto Download on Wi-Fi', 'When you start streaming a book over Wi-Fi, it will automatically begin downloading the full book in the background. This way you\'ll have it available offline without having to manually start the download.'),+ Flexible(child: Text(l.autoDownloadOnWifi)),+ _infoIcon(l.autoDownloadOnWifiInfoTitle, l.autoDownloadOnWifiInfoContent),]),subtitle: Text(_autoDownloadOnStream- ? 'Books download in the background when you start streaming on Wi-Fi'- : 'Off',+ ? l.autoDownloadOnWifiOnSubtitle+ : l.autoDownloadOnWifiOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _autoDownloadOnStream,onChanged: _loaded ? (v) {@@ -1397,7 +1405,7 @@ class _SettingsScreenState extends State<SettingsScreen> {crossAxisAlignment: CrossAxisAlignment.start,children: [const SizedBox(height: 12),- Text('Concurrent downloads', style: tt.bodyMedium?.copyWith(color: cs.onSurface)),+ Text(l.concurrentDownloads, style: tt.bodyMedium?.copyWith(color: cs.onSurface)),const SizedBox(height: 8),SizedBox(width: double.infinity, child: SegmentedButton<int>(showSelectedIcon: false,@@ -1420,9 +1428,9 @@ class _SettingsScreenState extends State<SettingsScreen> {),const Divider(height: 1, indent: 16, endIndent: 16),ListTile(- title: const Text('Auto-download'),+ title: Text(l.autoDownload),subtitle: Text(- 'Enable per series or podcast from their detail pages',+ l.autoDownloadSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),leading: Icon(Icons.downloading_rounded, color: cs.primary),),@@ -1432,8 +1440,8 @@ class _SettingsScreenState extends State<SettingsScreen> {crossAxisAlignment: CrossAxisAlignment.start,children: [Row(children: [- Text('Keep next', style: tt.bodyMedium?.copyWith(color: cs.onSurface)),- _infoIcon('Keep Next', 'The number of items to keep downloaded, including the one you\'re currently listening to. For example, "Keep next 3" means the current book plus the next 2 in the series or podcast will stay downloaded.'),+ Text(l.keepNext, style: tt.bodyMedium?.copyWith(color: cs.onSurface)),+ _infoIcon(l.keepNextInfoTitle, l.keepNextInfoContent),]),const SizedBox(height: 8),SizedBox(width: double.infinity, child: SegmentedButton<int>(@@ -1456,13 +1464,13 @@ class _SettingsScreenState extends State<SettingsScreen> {),SwitchListTile(title: Row(children: [- const Flexible(child: Text('Delete absorbed downloads')),- _infoIcon('Delete Absorbed Downloads', 'When enabled, downloaded books or episodes are automatically deleted from your device after you finish listening to them. This helps free up storage space as you work through your library.'),+ Flexible(child: Text(l.deleteAbsorbedDownloads)),+ _infoIcon(l.deleteAbsorbedDownloadsInfoTitle, l.deleteAbsorbedDownloadsInfoContent),]),subtitle: Text(_rollingDownloadDeleteFinished- ? 'Finished items are removed to save space'- : 'Off - finished downloads kept',+ ? l.deleteAbsorbedOnSubtitle+ : l.deleteAbsorbedOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _rollingDownloadDeleteFinished,onChanged: _loaded ? (v) {@@ -1474,7 +1482,7 @@ class _SettingsScreenState extends State<SettingsScreen> {if (!Platform.isIOS && _canPickDownloadLocation)ListTile(leading: Icon(Icons.folder_outlined, color: cs.primary),- title: const Text('Download location'),+ title: Text(l.downloadLocation),subtitle: Text(_downloadLocationLabel,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant),@@ -1488,11 +1496,12 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),ListTile(leading: Icon(Icons.data_usage_rounded, color: cs.onSurfaceVariant),- title: const Text('Storage used'),+ title: Text(l.storageUsed),subtitle: Text(- '${_totalDownloadSizeBytes > 0 ? '${_formatBytes(_totalDownloadSizeBytes)} used by downloads' : ''}'- '${_totalDownloadSizeBytes > 0 && _deviceTotalBytes > 0 ? '\n' : ''}'- '${_deviceTotalBytes > 0 ? '${_formatBytes(_deviceAvailableBytes)} free of ${_formatBytes(_deviceTotalBytes)}' : ''}',+ [+ if (_totalDownloadSizeBytes > 0) l.storageUsedByDownloads(_formatBytes(_totalDownloadSizeBytes)),+ if (_deviceTotalBytes > 0) l.storageFreeOfTotal(_formatBytes(_deviceAvailableBytes), _formatBytes(_deviceTotalBytes)),+ ].join('\n'),style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),isThreeLine: _totalDownloadSizeBytes > 0 && _deviceTotalBytes > 0,),@@ -1500,7 +1509,7 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),ListTile(leading: Icon(Icons.storage_rounded, color: cs.primary),- title: const Text('Manage downloads'),+ title: Text(l.manageDownloads),trailing: const Icon(Icons.chevron_right),onTap: () => Navigator.push(context,MaterialPageRoute(builder: (_) => const DownloadsScreen())),@@ -1513,23 +1522,23 @@ class _SettingsScreenState extends State<SettingsScreen> {children: [const SizedBox(height: 12),Row(children: [- Text('Streaming cache', style: tt.bodyMedium?.copyWith(color: cs.onSurface)),- _infoIcon('Streaming Cache', 'Caches streamed audio to disk so it doesn\'t need to be re-downloaded if you seek back or re-listen to sections. The cache is automatically managed - oldest files are removed when the size limit is reached. This is separate from fully downloaded books.'),+ Text(l.streamingCache, style: tt.bodyMedium?.copyWith(color: cs.onSurface)),+ _infoIcon(l.streamingCacheInfoTitle, l.streamingCacheInfoContent),]),const SizedBox(height: 4),Text(_streamingCacheSizeMb == 0- ? 'Off - audio is streamed without caching'- : '$_streamingCacheSizeMb MB - recently streamed audio is cached to disk',+ ? l.streamingCacheOffSubtitle+ : l.streamingCacheOnSubtitle(_streamingCacheSizeMb),style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),const SizedBox(height: 8),SizedBox(width: double.infinity, child: SegmentedButton<int>(showSelectedIcon: false,- segments: const [- ButtonSegment(value: 0, label: FittedBox(fit: BoxFit.scaleDown, child: Text('Off'))),- ButtonSegment(value: 128, label: FittedBox(fit: BoxFit.scaleDown, child: Text('128 MB'))),- ButtonSegment(value: 256, label: FittedBox(fit: BoxFit.scaleDown, child: Text('256 MB'))),- ButtonSegment(value: 512, label: FittedBox(fit: BoxFit.scaleDown, child: Text('512 MB'))),+ segments: [+ ButtonSegment(value: 0, label: FittedBox(fit: BoxFit.scaleDown, child: Text(l.streamingCacheOff))),+ const ButtonSegment(value: 128, label: FittedBox(fit: BoxFit.scaleDown, child: Text('128 MB'))),+ const ButtonSegment(value: 256, label: FittedBox(fit: BoxFit.scaleDown, child: Text('256 MB'))),+ const ButtonSegment(value: 512, label: FittedBox(fit: BoxFit.scaleDown, child: Text('512 MB'))),],selected: {_streamingCacheSizeMb},onSelectionChanged: (v) {@@ -1541,14 +1550,14 @@ class _SettingsScreenState extends State<SettingsScreen> {const SizedBox(height: 8),TextButton.icon(icon: const Icon(Icons.delete_sweep_outlined, size: 18),- label: const Text('Clear cache'),+ label: Text(l.clearCache),onPressed: () async {try {await AudioPlayer.clearStreamingCache();} catch (_) {}if (mounted) {ScaffoldMessenger.of(context).showSnackBar(- const SnackBar(content: Text('Streaming cache cleared')));+ SnackBar(content: Text(l.streamingCacheCleared)));}},),@@ -1565,17 +1574,17 @@ class _SettingsScreenState extends State<SettingsScreen> {CollapsibleSection(key: _keyFor('Library'),icon: Icons.auto_stories_outlined,- title: 'Library',+ title: l.sectionLibrary,cs: cs,isExpanded: _expandedSection == 'Library',onExpansionChanged: (v) => _onSectionExpanded('Library', v),children: [SwitchListTile(- title: const Text('Hide eBook-only titles'),+ title: Text(l.hideEbookOnlyTitles),subtitle: Text(_hideEbookOnly- ? 'Books with no audio files are hidden'- : 'Off - all library items shown',+ ? l.hideEbookOnlyOnSubtitle+ : l.hideEbookOnlyOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _hideEbookOnly,onChanged: _loaded ? (v) {@@ -1585,11 +1594,11 @@ class _SettingsScreenState extends State<SettingsScreen> {),const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(- title: const Text('Show Goodreads button'),+ title: Text(l.showGoodreadsButton),subtitle: Text(_showGoodreadsButton- ? 'Book detail sheet shows a link to Goodreads'- : 'Off - Goodreads button hidden',+ ? l.showGoodreadsOnSubtitle+ : l.showGoodreadsOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _showGoodreadsButton,onChanged: _loaded ? (v) {@@ -1599,11 +1608,11 @@ class _SettingsScreenState extends State<SettingsScreen> {),const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(- title: const Text('Show explicit badge'),+ title: Text(l.showExplicitBadge),subtitle: Text(_showExplicitBadge- ? 'Explicit items show an "E" badge'- : 'Off - explicit badge hidden',+ ? l.showExplicitBadgeOnSubtitle+ : l.showExplicitBadgeOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _showExplicitBadge,onChanged: _loaded ? (v) {@@ -1616,7 +1625,7 @@ class _SettingsScreenState extends State<SettingsScreen> {...lib.libraries.map((library) {final id = library['id'] as String;- final name = library['name'] as String? ?? 'Library';+ final name = library['name'] as String? ?? l.libraryFallback;final mediaType = library['mediaType'] as String? ?? 'book';final isSelected = id == lib.selectedLibraryId;return ListTile(@@ -1637,15 +1646,15 @@ class _SettingsScreenState extends State<SettingsScreen> {CollapsibleSection(key: _keyFor('Permissions'),icon: Icons.shield_outlined,- title: 'Permissions',+ title: l.sectionPermissions,cs: cs,isExpanded: _expandedSection == 'Permissions',onExpansionChanged: (v) => _onSectionExpanded('Permissions', v),children: [ListTile(leading: const Icon(Icons.notifications_outlined),- title: const Text('Notifications'),- subtitle: Text('For download progress and playback controls',+ title: Text(l.notifications),+ subtitle: Text(l.notificationsSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),trailing: Icon(Icons.chevron_right_rounded, color: cs.onSurfaceVariant),onTap: () async {@@ -1654,7 +1663,7 @@ class _SettingsScreenState extends State<SettingsScreen> {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(duration: const Duration(seconds: 2),- content: const Text('Notifications already enabled'),+ content: Text(l.notificationsAlreadyEnabled),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));@@ -1669,8 +1678,8 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),ListTile(leading: const Icon(Icons.battery_saver_outlined),- title: const Text('Unrestricted battery'),- subtitle: Text('Prevents Android from killing background playback',+ title: Text(l.unrestrictedBattery),+ subtitle: Text(l.unrestrictedBatterySubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),trailing: Icon(Icons.chevron_right_rounded, color: cs.onSurfaceVariant),onTap: () async {@@ -1679,7 +1688,7 @@ class _SettingsScreenState extends State<SettingsScreen> {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(duration: const Duration(seconds: 2),- content: const Text('Battery already unrestricted'),+ content: Text(l.batteryAlreadyUnrestricted),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));@@ -1699,15 +1708,15 @@ class _SettingsScreenState extends State<SettingsScreen> {CollapsibleSection(key: _keyFor('Issues & Support'),icon: Icons.support_agent_rounded,- title: 'Issues & Support',+ title: l.sectionIssuesAndSupport,cs: cs,isExpanded: _expandedSection == 'Issues & Support',onExpansionChanged: (v) => _onSectionExpanded('Issues & Support', v),children: [ListTile(leading: Icon(Icons.bug_report_outlined, color: cs.onSurfaceVariant),- title: const Text('Bugs & Feature Requests'),- subtitle: Text('Open an issue on GitHub',+ title: Text(l.bugsAndFeatureRequests),+ subtitle: Text(l.bugsAndFeatureRequestsSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),trailing: Icon(Icons.open_in_new_rounded,size: 18, color: cs.onSurfaceVariant),@@ -1718,8 +1727,8 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),ListTile(leading: Icon(Icons.discord, color: cs.onSurfaceVariant),- title: const Text('Join Discord'),- subtitle: Text('Community, support, and updates',+ title: Text(l.joinDiscord),+ subtitle: Text(l.joinDiscordSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),trailing: Icon(Icons.open_in_new_rounded,size: 18, color: cs.onSurfaceVariant),@@ -1730,8 +1739,8 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),ListTile(leading: Icon(Icons.email_outlined, color: cs.primary),- title: const Text('Contact'),- subtitle: Text('Send device info via email',+ title: Text(l.contact),+ subtitle: Text(l.contactSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),trailing: const Icon(Icons.chevron_right_rounded),onTap: () {@@ -1742,11 +1751,11 @@ class _SettingsScreenState extends State<SettingsScreen> {),const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(- title: const Text('Enable logging'),+ title: Text(l.enableLogging),subtitle: Text(_loggingEnabled- ? 'On - logs saved to file (restart to apply)'- : 'Off - no logs captured',+ ? l.enableLoggingOnSubtitle+ : l.enableLoggingOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _loggingEnabled,onChanged: _loaded ? (v) {@@ -1754,8 +1763,8 @@ class _SettingsScreenState extends State<SettingsScreen> {PlayerSettings.setLoggingEnabled(v);ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(v- ? 'Logging enabled - restart app to start capturing'- : 'Logging disabled - restart app to stop capturing'),+ ? l.loggingEnabledSnackbar+ : l.loggingDisabledSnackbar),));} : null,),@@ -1763,8 +1772,8 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),ListTile(leading: Icon(Icons.attach_file_rounded, color: cs.primary),- title: const Text('Send logs'),- subtitle: Text('Share log file as attachment',+ title: Text(l.sendLogs),+ subtitle: Text(l.sendLogsSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),trailing: const Icon(Icons.chevron_right_rounded),onTap: () async {@@ -1780,7 +1789,7 @@ class _SettingsScreenState extends State<SettingsScreen> {} catch (e) {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(- SnackBar(content: Text('Failed to share: $e')),+ SnackBar(content: Text(l.failedToShare(e.toString()))),);}}@@ -1789,12 +1798,12 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),ListTile(leading: Icon(Icons.delete_outline_rounded, color: cs.error),- title: const Text('Clear logs'),+ title: Text(l.clearLogs),onTap: () async {await LogService().clearLogs();if (mounted) {ScaffoldMessenger.of(context).showSnackBar(- const SnackBar(content: Text('Logs cleared')),+ SnackBar(content: Text(l.logsCleared)),);}},@@ -1808,22 +1817,22 @@ class _SettingsScreenState extends State<SettingsScreen> {CollapsibleSection(key: _keyFor('Advanced'),icon: Icons.tune_rounded,- title: 'Advanced',+ title: l.sectionAdvanced,cs: cs,isExpanded: _expandedSection == 'Advanced',onExpansionChanged: (v) => _onSectionExpanded('Advanced', v),children: [SwitchListTile(title: Row(children: [- const Flexible(child: Text('Local server')),- _infoIcon('Local Server', 'If you run your Audiobookshelf server at home, you can set a local/LAN URL here. Absorb will automatically switch to the faster local connection when it detects you\'re on your home network, and fall back to your remote URL when you\'re away.'),+ Flexible(child: Text(l.localServer)),+ _infoIcon(l.localServerInfoTitle, l.localServerInfoContent),]),subtitle: Text(_localServerEnabled? (auth.useLocalServer- ? 'Connected via local server'- : 'Enabled - using remote server')- : 'Auto-switch to a LAN server on your home WiFi',+ ? l.localServerOnConnectedSubtitle+ : l.localServerOnRemoteSubtitle)+ : l.localServerOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _localServerEnabled,onChanged: _loaded ? (v) {@@ -1838,12 +1847,12 @@ class _SettingsScreenState extends State<SettingsScreen> {child: TextField(controller: _localServerController,decoration: InputDecoration(- labelText: 'Local server URL',- hintText: 'http://192.168.1.100:13378',+ labelText: l.localServerUrlLabel,+ hintText: l.localServerUrlHint,border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),suffixIcon: IconButton(icon: const Icon(Icons.check_rounded),- tooltip: 'Set',+ tooltip: l.setTooltip,onPressed: () async {final url = _localServerController.text.trim();if (url.isEmpty) return;@@ -1852,7 +1861,7 @@ class _SettingsScreenState extends State<SettingsScreen> {FocusScope.of(context).unfocus();if (!mounted) return;ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: const Text('Local server URL set - will connect automatically when on your home network'),+ content: Text(l.localServerUrlSetSnackbar),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));@@ -1868,7 +1877,7 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),ListTile(leading: Icon(Icons.check_circle_rounded, color: Colors.greenAccent.shade400),- title: const Text('Connected via local server'),+ title: Text(l.localServerOnConnectedSubtitle),subtitle: Text(_localServerUrl,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),),@@ -1877,16 +1886,13 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(title: Row(children: [- const Flexible(child: Text('Trust all certificates')),- _infoIcon('Self-signed Certificates',- 'Enable this if your Audiobookshelf server uses a self-signed certificate or a custom root CA. '- 'When enabled, Absorb will skip TLS certificate verification for all connections. '- 'Only enable this if you trust your network.'),+ Flexible(child: Text(l.trustAllCertificates)),+ _infoIcon(l.trustAllCertificatesInfoTitle, l.trustAllCertificatesInfoContent),]),subtitle: Text(_trustAllCerts- ? 'On - accepting all certificates'- : 'Off - only trusted certificates accepted',+ ? l.trustAllCertificatesOnSubtitle+ : l.trustAllCertificatesOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _trustAllCerts,onChanged: _loaded ? (v) async {@@ -1899,15 +1905,13 @@ class _SettingsScreenState extends State<SettingsScreen> {const Divider(height: 1, indent: 16, endIndent: 16),SwitchListTile(title: Row(children: [- const Flexible(child: Text('Include pre-releases')),- _infoIcon('Pre-release Updates',- 'When enabled, the update checker will also notify you about alpha and pre-release builds from GitHub. '- 'These may be less stable but include the latest features and fixes.'),+ Flexible(child: Text(l.includePreReleases)),+ _infoIcon(l.preReleaseUpdatesInfoTitle, l.preReleaseUpdatesInfoContent),]),subtitle: Text(_includePreReleases- ? 'On - checking for alpha & pre-release builds'- : 'Off - stable releases only',+ ? l.includePreReleasesOnSubtitle+ : l.includePreReleasesOffSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),value: _includePreReleases,onChanged: _loaded ? (v) async {@@ -1933,8 +1937,8 @@ class _SettingsScreenState extends State<SettingsScreen> {child: ListTile(leading: Icon(Icons.coffee_rounded,color: Colors.amber.shade600),- title: const Text('Support the Dev'),- subtitle: Text('Buy me a coffee',+ title: Text(l.supportTheDev),+ subtitle: Text(l.buyMeACoffee,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),trailing: Icon(Icons.favorite_rounded,@@ -1966,22 +1970,22 @@ class _SettingsScreenState extends State<SettingsScreen> {Row(children: [Icon(Icons.settings_backup_restore_rounded, color: cs.primary, size: 22),const SizedBox(width: 10),- Text('Backup & Restore', style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600)),+ Text(l.backupAndRestore, style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600)),]),const SizedBox(height: 4),- Text('Save or restore all your settings to a file',+ Text(l.backupAndRestoreSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),const SizedBox(height: 14),Row(children: [Expanded(child: FilledButton.tonalIcon(icon: const Icon(Icons.upload_rounded, size: 18),- label: const Text('Back up'),+ label: Text(l.backUp),onPressed: () => _backupSettings(context, cs, tt),)),const SizedBox(width: 10),Expanded(child: OutlinedButton.icon(icon: const Icon(Icons.download_rounded, size: 18),- label: const Text('Restore'),+ label: Text(l.restore),onPressed: () => _restoreSettings(context, cs, tt),)),]),@@ -2002,8 +2006,8 @@ class _SettingsScreenState extends State<SettingsScreen> {shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14)),child: ListTile(leading: Icon(Icons.bookmarks_rounded, color: cs.primary),- title: const Text('All Bookmarks'),- subtitle: Text('View bookmarks across all books',+ title: Text(l.allBookmarks),+ subtitle: Text(l.allBookmarksSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),trailing: Icon(Icons.chevron_right_rounded, color: cs.onSurfaceVariant),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14)),@@ -2018,7 +2022,7 @@ class _SettingsScreenState extends State<SettingsScreen> {mainAxisSize: MainAxisSize.min,children: [Text(- 'Absorb v$_appVersion',+ l.appVersionFormat(_appVersion),style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.4)),),@@ -2030,7 +2034,7 @@ class _SettingsScreenState extends State<SettingsScreen> {),if (auth.serverVersion != null)Text(- ' · Server ${auth.serverVersion}',+ l.appVersionServerSuffix(auth.serverVersion!),style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.4)),),@@ -2045,33 +2049,37 @@ class _SettingsScreenState extends State<SettingsScreen> {if (!mounted) return;if (info == null || !info.hasUpdate) {ScaffoldMessenger.of(context).showSnackBar(- const SnackBar(content: Text('You\'re on the latest version')),+ SnackBar(content: Text(l.onLatestVersion)),);return;}showDialog(context: context,builder: (ctx) => AlertDialog(- title: Text(info.isPreRelease ? 'Pre-release available' : 'Update available'),- content: Text('A new ${info.isPreRelease ? 'pre-release' : 'version'} of Absorb is available: ${info.latestVersion}\n\nYou are on ${info.currentVersion}.'),+ title: Text(info.isPreRelease ? l.preReleaseAvailable : l.updateAvailable),+ content: Text(l.updateDialogContent(+ info.isPreRelease ? l.updateKindPreRelease : l.updateKindVersion,+ info.latestVersion,+ info.currentVersion,+ )),actions: [TextButton(onPressed: () => Navigator.pop(ctx),- child: const Text('Later'),+ child: Text(l.later),),FilledButton(onPressed: () {Navigator.pop(ctx);launchUrl(Uri.parse(info.downloadUrl), mode: LaunchMode.externalApplication);},- child: const Text('Download'),+ child: Text(l.downloadButton),),],),);},icon: const Icon(Icons.system_update_rounded, size: 16),- label: const Text('Check for update'),+ label: Text(l.checkForUpdate),)),],@@ -2086,30 +2094,41 @@ class _SettingsScreenState extends State<SettingsScreen> {);}- List<Widget> _buildRewindPreviews(ColorScheme cs, TextTheme tt) {+ List<Widget> _buildRewindPreviews(ColorScheme cs, TextTheme tt, AppLocalizations l) {final s = _rewindSettings;final delay = s.activationDelay.round();// Build dynamic preview durations starting from the delay valuefinal durations = <int, String>{};+ String pauseLabel(int seconds) {+ if (seconds < 60) return l.rewindSecondsPause(seconds.toString());+ if (seconds < 3600) {+ final m = seconds ~/ 60;+ return l.rewindMinPause(m.toString());+ }+ final h = seconds ~/ 3600;+ if (h == 1) return l.rewindOneHrPause;+ return l.rewindHrPause(h.toString());+ }+// First row: the activation delay itself (or instant if 0)if (delay == 0) {- durations[0] = 'Instant';+ durations[0] = l.rewindInstant;} else {- durations[delay] = '${_formatDuration(delay)} pause';+ durations[delay] = pauseLabel(delay);}// Add useful reference points above the delay, spread across the full rangefor (final secs in [30, 120, 600, 1800, 3600]) {if (secs > delay && durations.length < 5) {- durations[secs] = '${_formatDuration(secs)} pause';+ durations[secs] = pauseLabel(secs);}}// Always include 1 hour as the max referenceif (!durations.containsKey(3600)) {- durations[3600] = '1 hr pause';+ durations[3600] = l.rewindOneHrPause;}final rows = <Widget>[];@@ -2117,24 +2136,14 @@ class _SettingsScreenState extends State<SettingsScreen> {final rewind = AudioPlayerService.calculateAutoRewind(Duration(seconds: entry.key), s.minRewind, s.maxRewind,activationDelay: s.activationDelay);- rows.add(_rewindPreviewRow(entry.value, rewind, cs, tt));+ rows.add(_rewindPreviewRow(entry.value, rewind, cs, tt, l));}return rows;}- static String _formatDuration(int seconds) {- if (seconds < 60) return '${seconds}s';- if (seconds < 3600) {- final m = seconds ~/ 60;- return '$m min';- }- final h = seconds ~/ 3600;- return '$h hr';- }-Widget _rewindPreviewRow(- String label, double rewind, ColorScheme cs, TextTheme tt) {+ String label, double rewind, ColorScheme cs, TextTheme tt, AppLocalizations l) {final isSkipped = rewind < 0;return Padding(padding: const EdgeInsets.symmetric(vertical: 2),@@ -2143,7 +2152,7 @@ class _SettingsScreenState extends State<SettingsScreen> {children: [Text(label, style: tt.bodySmall?.copyWith(color: isSkipped ? cs.onSurfaceVariant.withValues(alpha: 0.4) : cs.onSurfaceVariant)),- Text(isSkipped ? '→ no rewind' : '→ ${rewind.toStringAsFixed(1)}s rewind',+ Text(isSkipped ? '→ ${l.rewindNoRewind}' : '→ ${l.rewindSeconds(rewind.toStringAsFixed(1))}',style: tt.bodySmall?.copyWith(fontWeight: FontWeight.w600,color: isSkipped ? cs.onSurfaceVariant.withValues(alpha: 0.3) : cs.primary)),@@ -2160,6 +2169,7 @@ class _SettingsScreenState extends State<SettingsScreen> {}Future<void> _pickDownloadLocation(BuildContext context, ColorScheme cs, TextTheme tt) async {+ final l = AppLocalizations.of(context)!;final dl = DownloadService();final hasExistingDownloads = dl.downloadedItems.isNotEmpty;@@ -2179,10 +2189,10 @@ class _SettingsScreenState extends State<SettingsScreen> {color: cs.onSurfaceVariant.withValues(alpha: 0.3),borderRadius: BorderRadius.circular(2))),const SizedBox(height: 16),- Text('Download Location',+ Text(l.downloadLocationSheetTitle,style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),const SizedBox(height: 4),- Text('Choose where audiobooks are saved',+ Text(l.downloadLocationSheetSubtitle,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),const SizedBox(height: 20),@@ -2202,7 +2212,7 @@ class _SettingsScreenState extends State<SettingsScreen> {child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- Text('Current location',+ Text(l.currentLocation,style: tt.labelSmall?.copyWith(color: cs.primary, fontWeight: FontWeight.w600)),const SizedBox(height: 2),@@ -2232,7 +2242,7 @@ class _SettingsScreenState extends State<SettingsScreen> {const SizedBox(width: 10),Expanded(child: Text(- 'Existing downloads stay in their current location. Only new downloads use the new path.',+ l.existingDownloadsWarning,style: tt.bodySmall?.copyWith(color: cs.error.withValues(alpha: 0.8), fontSize: 11),),@@ -2246,7 +2256,7 @@ class _SettingsScreenState extends State<SettingsScreen> {width: double.infinity,child: FilledButton.icon(icon: const Icon(Icons.folder_open_rounded),- label: const Text('Choose folder'),+ label: Text(l.chooseFolder),onPressed: () async {Navigator.pop(ctx);if (Platform.isAndroid) {@@ -2262,12 +2272,12 @@ class _SettingsScreenState extends State<SettingsScreen> {if (status.isPermanentlyDenied) {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: const Text('Storage permission permanently denied - enable it in app settings'),+ content: Text(l.storagePermissionDenied),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),action: SnackBarAction(- label: 'Open Settings',+ label: l.openSettings,onPressed: openAppSettings,),));@@ -2279,7 +2289,7 @@ class _SettingsScreenState extends State<SettingsScreen> {if (!result.isGranted) {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: const Text('Storage permission is required for custom download locations'),+ content: Text(l.storagePermissionRequired),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -2290,7 +2300,7 @@ class _SettingsScreenState extends State<SettingsScreen> {}}final result = await FilePicker.platform.getDirectoryPath(- dialogTitle: 'Choose download folder',+ dialogTitle: l.chooseDownloadFolder,);if (result != null) {// Write test - verify we can actually create files here@@ -2303,12 +2313,12 @@ class _SettingsScreenState extends State<SettingsScreen> {} catch (e) {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: Text('Cannot write to that folder - choose another location or grant file access in system settings'),+ content: Text(l.cannotWriteToFolder),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),action: SnackBarAction(- label: 'Open Settings',+ label: l.openSettings,onPressed: openAppSettings,),));@@ -2320,7 +2330,7 @@ class _SettingsScreenState extends State<SettingsScreen> {if (mounted) {setState(() => _downloadLocationLabel = label);ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: Text('Download location set to $label'),+ content: Text(l.downloadLocationSetTo(label)),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -2338,7 +2348,7 @@ class _SettingsScreenState extends State<SettingsScreen> {width: double.infinity,child: OutlinedButton.icon(icon: const Icon(Icons.restart_alt_rounded),- label: const Text('Reset to default'),+ label: Text(l.resetToDefault),onPressed: () async {Navigator.pop(ctx);await dl.setCustomDownloadPath(null);@@ -2346,7 +2356,7 @@ class _SettingsScreenState extends State<SettingsScreen> {if (mounted) {setState(() => _downloadLocationLabel = label);ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: Text('Reset to default storage'),+ content: Text(l.resetToDefaultStorage),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -2362,29 +2372,27 @@ class _SettingsScreenState extends State<SettingsScreen> {}void _backupSettings(BuildContext context, ColorScheme cs, TextTheme tt) {+ final l = AppLocalizations.of(context)!;showDialog(context: context,builder: (ctx) => AlertDialog(icon: const Icon(Icons.shield_rounded),- title: const Text('Include login info?'),- content: const Text(- 'Would you like to include login credentials for all your saved accounts in the backup?\n\n'- 'This makes it easy to restore on a new device, but the file will contain your auth tokens.',- ),+ title: Text(l.includeLoginInfoTitle),+ content: Text(l.includeLoginInfoContent),actions: [TextButton(onPressed: () {Navigator.pop(ctx);_performBackup(context, includeAccounts: false);},- child: const Text('No, settings only'),+ child: Text(l.noSettingsOnly),),FilledButton(onPressed: () {Navigator.pop(ctx);_performBackup(context, includeAccounts: true);},- child: const Text('Yes, include accounts'),+ child: Text(l.yesIncludeAccounts),),],),@@ -2392,6 +2400,7 @@ class _SettingsScreenState extends State<SettingsScreen> {}Future<void> _performBackup(BuildContext context, {required bool includeAccounts}) async {+ final l = AppLocalizations.of(context)!;try {final data = await BackupService.exportSettings(includeAccounts: includeAccounts);final jsonStr = const JsonEncoder.withIndent(' ').convert(data);@@ -2402,7 +2411,7 @@ class _SettingsScreenState extends State<SettingsScreen> {final bytes = Uint8List.fromList(utf8.encode(jsonStr));final result = await FilePicker.platform.saveFile(- dialogTitle: 'Save Absorb backup',+ dialogTitle: l.saveAbsorbBackup,fileName: fileName,type: FileType.any,bytes: bytes,@@ -2416,8 +2425,8 @@ class _SettingsScreenState extends State<SettingsScreen> {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(includeAccounts- ? 'Backup saved (with accounts)'- : 'Backup saved (settings only)'),+ ? l.backupSavedWithAccounts+ : l.backupSavedSettingsOnly),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));@@ -2426,13 +2435,14 @@ class _SettingsScreenState extends State<SettingsScreen> {} catch (e) {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(- SnackBar(content: Text('Backup failed: $e')),+ SnackBar(content: Text(l.backupFailed(e.toString()))),);}}}void _restoreSettings(BuildContext context, ColorScheme cs, TextTheme tt) async {+ final l = AppLocalizations.of(context)!;try {final result = await FilePicker.platform.pickFiles(type: FileType.any);if (result == null || result.files.single.path == null) return;@@ -2444,7 +2454,7 @@ class _SettingsScreenState extends State<SettingsScreen> {if (data['version'] == null) {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(- const SnackBar(content: Text('Invalid backup file')),+ SnackBar(content: Text(l.invalidBackupFile)),);}return;@@ -2461,12 +2471,12 @@ class _SettingsScreenState extends State<SettingsScreen> {final appVersion = data['appVersion'] as String?;String details = '';- if (appVersion != null) details += 'From Absorb v$appVersion';+ if (appVersion != null) details += l.fromAbsorbVersion(appVersion);if (createdAt != null) {final dt = DateTime.tryParse(createdAt);if (dt != null) {- details += details.isEmpty ? '' : ' · ';- details += '${dt.month}/${dt.day}/${dt.year}';+ details += details.isEmpty ? '' : l.backupDetailsSeparator;+ details += l.backupDateFormat(dt.month, dt.day, dt.year);}}@@ -2474,12 +2484,12 @@ class _SettingsScreenState extends State<SettingsScreen> {context: context,builder: (ctx) => AlertDialog(icon: const Icon(Icons.restore_rounded),- title: const Text('Restore backup?'),+ title: Text(l.restoreBackupTitle),content: Column(mainAxisSize: MainAxisSize.min,crossAxisAlignment: CrossAxisAlignment.start,children: [- const Text('This will replace all your current settings with the backup values.'),+ Text(l.restoreBackupContent),if (details.isNotEmpty) ...[const SizedBox(height: 12),Text(details, style: TextStyle(color: cs.onSurfaceVariant, fontSize: 12)),@@ -2491,11 +2501,11 @@ class _SettingsScreenState extends State<SettingsScreen> {runSpacing: 8,children: [if (hasAccounts)- _restoreChip(Icons.people_rounded, '${accounts.length} account(s)', cs),+ _restoreChip(Icons.people_rounded, l.restoreAccountsChip(accounts.length), cs),if (hasBookmarks)- _restoreChip(Icons.bookmark_rounded, 'Bookmarks for ${bookmarks.length} book(s)', cs),+ _restoreChip(Icons.bookmark_rounded, l.restoreBookmarksChip(bookmarks.length), cs),if (hasCustomHeaders)- _restoreChip(Icons.vpn_key_rounded, 'Custom headers', cs),+ _restoreChip(Icons.vpn_key_rounded, l.restoreCustomHeadersChip, cs),],),],@@ -2504,11 +2514,11 @@ class _SettingsScreenState extends State<SettingsScreen> {actions: [TextButton(onPressed: () => Navigator.pop(ctx, false),- child: const Text('Cancel'),+ child: Text(l.cancel),),FilledButton(onPressed: () => Navigator.pop(ctx, true),- child: const Text('Restore'),+ child: Text(l.restore),),],),@@ -2529,7 +2539,7 @@ class _SettingsScreenState extends State<SettingsScreen> {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: const Text('Settings restored successfully'),+ content: Text(l.settingsRestoredSuccessfully),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));@@ -2537,7 +2547,7 @@ class _SettingsScreenState extends State<SettingsScreen> {} catch (e) {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(- SnackBar(content: Text('Restore failed: $e')),+ SnackBar(content: Text(l.restoreFailed(e.toString()))),);}}@@ -2561,6 +2571,7 @@ class _SettingsScreenState extends State<SettingsScreen> {void _showAccountSheet(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final auth = context.read<AuthProvider>();final lib = context.read<LibraryProvider>();final accounts = UserAccountService().accounts;@@ -2569,7 +2580,7 @@ class _SettingsScreenState extends State<SettingsScreen> {).toList();final shortServer = auth.serverUrl?.replaceAll(RegExp(r'^https?://'), '').replaceAll(RegExp(r'/+$'), '') ?? '';- final userType = auth.isRoot ? 'Root Admin' : auth.isAdmin ? 'Admin' : 'User';+ final userType = auth.isRoot ? l.rootAdmin : auth.isAdmin ? l.admin : l.userFallback;final libraryCount = lib.libraries.length;showModalBottomSheet(@@ -2590,7 +2601,7 @@ class _SettingsScreenState extends State<SettingsScreen> {Padding(padding: const EdgeInsets.symmetric(horizontal: 20),child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [- Text(auth.username ?? 'User', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700)),+ Text(auth.username ?? l.userFallback, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700)),const SizedBox(height: 6),Row(children: [Icon(Icons.dns_rounded, size: 13, color: cs.onSurfaceVariant.withValues(alpha: 0.4)),@@ -2606,7 +2617,7 @@ class _SettingsScreenState extends State<SettingsScreen> {const SizedBox(width: 12),Icon(Icons.library_books_rounded, size: 13, color: cs.onSurfaceVariant.withValues(alpha: 0.4)),const SizedBox(width: 6),- Text('$libraryCount ${libraryCount == 1 ? 'library' : 'libraries'}',+ Text(libraryCount == 1 ? l.libraryCountOne(libraryCount) : l.libraryCountOther(libraryCount),style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.5))),]),if (auth.serverVersion != null) ...[@@ -2614,7 +2625,7 @@ class _SettingsScreenState extends State<SettingsScreen> {Row(children: [Icon(Icons.info_outline_rounded, size: 13, color: cs.onSurfaceVariant.withValues(alpha: 0.4)),const SizedBox(width: 6),- Text('Server ${auth.serverVersion}', style: tt.labelSmall?.copyWith(+ Text(l.serverVersionLabel(auth.serverVersion!), style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.5))),]),],@@ -2628,7 +2639,7 @@ class _SettingsScreenState extends State<SettingsScreen> {Padding(padding: const EdgeInsets.fromLTRB(20, 8, 20, 4),child: Align(alignment: Alignment.centerLeft,- child: Text('Switch Account', style: tt.labelSmall?.copyWith(+ child: Text(l.switchAccount, style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.4), fontWeight: FontWeight.w600, letterSpacing: 0.5))),),...otherAccounts.map((account) {@@ -2664,7 +2675,7 @@ class _SettingsScreenState extends State<SettingsScreen> {child: Row(children: [Icon(Icons.person_add_rounded, size: 20, color: cs.primary),const SizedBox(width: 14),- Text('Add Account', style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.primary)),+ Text(l.addAccount, style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.primary)),]),),),@@ -2676,7 +2687,7 @@ class _SettingsScreenState extends State<SettingsScreen> {child: Row(children: [Icon(Icons.logout_rounded, size: 20, color: cs.error),const SizedBox(width: 14),- Text('Sign Out', style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.error)),+ Text(l.signOut, style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.error)),]),),),@@ -2699,16 +2710,17 @@ class _SettingsScreenState extends State<SettingsScreen> {void _confirmLogout(BuildContext context) {final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;showDialog(context: context,builder: (ctx) => AlertDialog(icon: const Icon(Icons.logout_rounded),- title: const Text('Log out?'),- content: const Text('This will sign you out. Your downloads will stay on this device.'),+ title: Text(l.logOutTitle),+ content: Text(l.logOutContent),actions: [TextButton(onPressed: () => Navigator.pop(ctx),- child: const Text('Stay'),+ child: Text(l.stay),),FilledButton(onPressed: () async {@@ -2717,7 +2729,7 @@ class _SettingsScreenState extends State<SettingsScreen> {if (context.mounted) context.read<AuthProvider>().logout();},style: FilledButton.styleFrom(backgroundColor: cs.error),- child: const Text('Sign Out'),+ child: Text(l.signOut),),],),@@ -2744,22 +2756,24 @@ class _SettingsScreenState extends State<SettingsScreen> {}void _removeAccount(BuildContext context, SavedAccount account) async {+ final l = AppLocalizations.of(context)!;final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Remove Account?'),- content: Text(- 'Remove ${account.username} on ${account.serverUrl.replaceAll(RegExp(r'^https?://'), '')} from saved accounts?\n\n'- 'You can always add it back later by signing in again.'),+ title: Text(l.removeAccountTitle),+ content: Text(l.removeAccountContent(+ account.username,+ account.serverUrl.replaceAll(RegExp(r'^https?://'), ''),+ )),actions: [TextButton(onPressed: () => Navigator.pop(ctx, false),- child: const Text('Cancel')),+ child: Text(l.cancel)),FilledButton(onPressed: () => Navigator.pop(ctx, true),style: FilledButton.styleFrom(backgroundColor: Theme.of(ctx).colorScheme.error),- child: const Text('Remove')),+ child: Text(l.remove)),],),);@@ -2769,20 +2783,22 @@ class _SettingsScreenState extends State<SettingsScreen> {}void _switchAccount(BuildContext context, SavedAccount account) async {+ final l = AppLocalizations.of(context)!;final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Switch Account?'),- content: Text(- 'Switch to ${account.username} on ${account.serverUrl.replaceAll(RegExp(r'^https?://'), '')}?\n\n'- 'Your current playback will be stopped and the app will reload with the other account\'s data.'),+ title: Text(l.switchAccountTitle),+ content: Text(l.switchAccountContent(+ account.username,+ account.serverUrl.replaceAll(RegExp(r'^https?://'), ''),+ )),actions: [TextButton(onPressed: () => Navigator.pop(ctx, false),- child: const Text('Cancel')),+ child: Text(l.cancel)),FilledButton(onPressed: () => Navigator.pop(ctx, true),- child: const Text('Switch')),+ child: Text(l.switchButton)),],),);diff --git a/lib/screens/stats_screen.dart b/lib/screens/stats_screen.dartindex 0dbf1f61..d1535127 100644--- a/lib/screens/stats_screen.dart+++ b/lib/screens/stats_screen.dart@@ -12,6 +12,7 @@ import '../widgets/absorb_wave_icon.dart';import '../widgets/card_buttons.dart';import '../main.dart' show oledNotifier;import 'app_shell.dart';+import '../l10n/app_localizations.dart';class StatsScreen extends StatefulWidget {const StatsScreen({super.key});@@ -158,6 +159,7 @@ class _StatsScreenState extends State<StatsScreen>Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Scaffold(backgroundColor: Theme.of(context).scaffoldBackgroundColor,@@ -182,7 +184,7 @@ class _StatsScreenState extends State<StatsScreen>strokeWidth: 2,color: cs.onSurface.withValues(alpha: 0.24))): _stats == null- ? _errorState(tt, cs)+ ? _errorState(tt, cs, l): RefreshIndicator(onRefresh: () async {setState(() => _isLoading = true);@@ -192,7 +194,7 @@ class _StatsScreenState extends State<StatsScreen>backgroundColor: cs.surfaceContainerHigh,child: AnimatedBuilder(animation: _animValue,- builder: (_, __) => _buildContent(cs, tt),+ builder: (_, __) => _buildContent(cs, tt, l),),),),@@ -200,13 +202,13 @@ class _StatsScreenState extends State<StatsScreen>);}- Widget _errorState(TextTheme tt, ColorScheme cs) {+ Widget _errorState(TextTheme tt, ColorScheme cs, AppLocalizations l) {return Center(child: Column(mainAxisSize: MainAxisSize.min, children: [Icon(Icons.signal_wifi_off_rounded,size: 48, color: cs.onSurface.withValues(alpha: 0.15)),const SizedBox(height: 12),- Text('Couldn\'t load stats',+ Text(l.statsCouldNotLoad,style: tt.bodyMedium?.copyWith(color: cs.onSurface.withValues(alpha: 0.38))),const SizedBox(height: 8),@@ -215,11 +217,11 @@ class _StatsScreenState extends State<StatsScreen>setState(() => _isLoading = true);_loadStats();},- child: const Text('Retry')),+ child: Text(l.retry)),]));}- Widget _buildContent(ColorScheme cs, TextTheme tt) {+ Widget _buildContent(ColorScheme cs, TextTheme tt, AppLocalizations l) {final totalSeconds = _safeNum(_stats!['totalTime']);final dailyMap = _extractDailyMap(_stats!);final today = _todaySeconds(dailyMap);@@ -236,28 +238,28 @@ class _StatsScreenState extends State<StatsScreen>controller: _scrollController,padding: const EdgeInsets.fromLTRB(20, 0, 20, 32),children: [- const AbsorbPageHeader(- title: 'Your Stats',- padding: EdgeInsets.only(top: 12),+ AbsorbPageHeader(+ title: l.statsTitle,+ padding: const EdgeInsets.only(top: 12),),const SizedBox(height: 24),// -- Hero stat --- _heroStat(tt, cs, totalSeconds),+ _heroStat(tt, cs, l, totalSeconds),const SizedBox(height: 16),// -- Time periods --Row(children: [- Expanded(child: _periodCard(tt, cs, 'Today', today)),+ Expanded(child: _periodCard(tt, cs, l.statsToday, today)),const SizedBox(width: 8),- Expanded(child: _periodCard(tt, cs, 'This Week', thisWeek)),+ Expanded(child: _periodCard(tt, cs, l.statsThisWeek, thisWeek)),const SizedBox(width: 8),- Expanded(child: _periodCard(tt, cs, 'This Month', thisMonth)),+ Expanded(child: _periodCard(tt, cs, l.statsThisMonth, thisMonth)),]),const SizedBox(height: 24),// -- Activity stats --- _sectionTitle(tt, cs, 'Activity'),+ _sectionTitle(tt, cs, l.statsActivity),const SizedBox(height: 10),Row(children: [Expanded(@@ -266,47 +268,47 @@ class _StatsScreenState extends State<StatsScreen>cs,Icons.local_fire_department_rounded,Colors.orange,- '${streak}d',- 'Current Streak')),+ l.statsScreenStreakDays(streak),+ l.statsCurrentStreak)),const SizedBox(width: 8),Expanded(child: _accentStatCard(tt, cs, Icons.emoji_events_rounded,- Colors.amber.shade600, '${longestStreak}d', 'Best Streak')),+ Colors.amber.shade600, l.statsScreenStreakDays(longestStreak), l.statsBestStreak)),]),const SizedBox(height: 8),Row(children: [Expanded(child: _accentStatCard(tt, cs, Icons.check_circle_rounded,- Colors.green, '$_booksFinished', 'Finished')),+ Colors.green, '$_booksFinished', l.statsFinished)),const SizedBox(width: 8),Expanded(child: _accentStatCard(tt, cs, Icons.calendar_today_rounded,- cs.primary, '$activeDays', 'Days Active')),+ cs.primary, '$activeDays', l.statsDaysActive)),]),const SizedBox(height: 8),_accentStatCard(tt, cs, Icons.speed_rounded, cs.tertiary,- _formatDuration(avgDaily), 'Daily Average'),+ _formatDuration(avgDaily), l.statsDailyAverage),const SizedBox(height: 28),// -- Last 7 days chart --- _sectionTitle(tt, cs, 'Last 7 Days'),+ _sectionTitle(tt, cs, l.statsLast7Days),const SizedBox(height: 10),_barChart(weekData, cs, tt),const SizedBox(height: 28),// -- Top items --if (topItems.isNotEmpty) ...[- _sectionTitle(tt, cs, 'Most Listened'),+ _sectionTitle(tt, cs, l.statsMostListened),const SizedBox(height: 10),- ...topItems.map((item) => _topItemCard(tt, cs, item)),+ ...topItems.map((item) => _topItemCard(tt, cs, l, item)),const SizedBox(height: 28),],// -- Recent Sessions --if (_sessions.isNotEmpty) ...[- _sectionTitle(tt, cs, 'Recent Sessions'),+ _sectionTitle(tt, cs, l.statsRecentSessions),const SizedBox(height: 10),- ..._buildSessions(tt, cs),+ ..._buildSessions(tt, cs, l),if (_isLoadingMoreSessions)Padding(padding: const EdgeInsets.symmetric(vertical: 16),@@ -338,7 +340,7 @@ class _StatsScreenState extends State<StatsScreen>// --- HERO STAT ---- Widget _heroStat(TextTheme tt, ColorScheme cs, double totalSeconds) {+ Widget _heroStat(TextTheme tt, ColorScheme cs, AppLocalizations l, double totalSeconds) {final hours = (totalSeconds / 3600).floor();final minutes = ((totalSeconds % 3600) / 60).floor();final anim = _animValue.value;@@ -358,7 +360,7 @@ class _StatsScreenState extends State<StatsScreen>border: Border.all(color: cs.primary.withValues(alpha: oledNotifier.value ? 0.08 : 0.15)),),child: Column(children: [- Text('TOTAL LISTENING TIME',+ Text(l.statsTotalListeningTime,style: tt.labelSmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.35),letterSpacing: 2,@@ -378,7 +380,7 @@ class _StatsScreenState extends State<StatsScreen>fontSize: 52,height: 1)),const SizedBox(width: 2),- Text('h',+ Text(l.statsHoursUnit,style: tt.titleLarge?.copyWith(color: cs.onSurface.withValues(alpha: 0.3),fontWeight: FontWeight.w300)),@@ -390,25 +392,25 @@ class _StatsScreenState extends State<StatsScreen>fontSize: 52,height: 1)),const SizedBox(width: 2),- Text('m',+ Text(l.statsMinutesUnit,style: tt.titleLarge?.copyWith(color: cs.onSurface.withValues(alpha: 0.3),fontWeight: FontWeight.w300)),],),const SizedBox(height: 10),- Text(_daysEquivalent(totalSeconds),+ Text(_daysEquivalent(totalSeconds, l),style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.25))),]),);}- String _daysEquivalent(double seconds) {+ String _daysEquivalent(double seconds, AppLocalizations l) {final days = seconds / 86400;- if (days >= 1) return 'That\'s ${days.toStringAsFixed(1)} days of audio';+ if (days >= 1) return l.statsDaysOfAudio(days.toStringAsFixed(1));final hours = seconds / 3600;- return 'That\'s ${hours.toStringAsFixed(1)} hours of audio';+ return l.statsHoursOfAudio(hours.toStringAsFixed(1));}// --- ACCENT STAT CARD ---@@ -574,7 +576,7 @@ class _StatsScreenState extends State<StatsScreen>return items.take(5).toList();}- Widget _topItemCard(TextTheme tt, ColorScheme cs, _TopItem item) {+ Widget _topItemCard(TextTheme tt, ColorScheme cs, AppLocalizations l, _TopItem item) {return Padding(padding: const EdgeInsets.only(bottom: 6),child: Container(@@ -610,7 +612,9 @@ class _StatsScreenState extends State<StatsScreen>color: cs.onSurface.withValues(alpha: 0.5),fontWeight: FontWeight.w700)),Text(- '${item.sessionCount} ${item.sessionCount == 1 ? 'session' : 'sessions'}',+ item.sessionCount == 1+ ? l.statsScreenSessionCountOne(item.sessionCount)+ : l.statsScreenSessionCountOther(item.sessionCount),style: TextStyle(color: cs.onSurface.withValues(alpha: 0.2), fontSize: 9)),]),@@ -621,7 +625,7 @@ class _StatsScreenState extends State<StatsScreen>// --- SESSIONS ---- List<Widget> _buildSessions(TextTheme tt, ColorScheme cs) {+ List<Widget> _buildSessions(TextTheme tt, ColorScheme cs, AppLocalizations l) {return _sessions.map((s) {if (s is! Map<String, dynamic>) return const SizedBox.shrink();final rawTitle = s['displayTitle'] as String?;@@ -629,7 +633,7 @@ class _StatsScreenState extends State<StatsScreen>final meta = s['mediaMetadata'] as Map<String, dynamic>?;final title = (rawTitle != null && !_looksLikeId(rawTitle))? rawTitle- : meta?['title'] as String? ?? 'Unknown';+ : meta?['title'] as String? ?? l.unknown;final author = (rawAuthor != null && !_looksLikeId(rawAuthor))? rawAuthor: meta?['authorName'] as String? ?? '';@@ -853,11 +857,12 @@ class _StatsScreenState extends State<StatsScreen>}List<_DayData> _last7Days(Map<String, dynamic> dailyMap) {+ final l = AppLocalizations.of(context)!;final now = DateTime.now();return List.generate(7, (i) {final date = now.subtract(Duration(days: 6 - i));return _DayData(- label: _dayLabel(date),+ label: _dayLabel(date, l),fullLabel: _dateKey(date),seconds: _daySeconds(dailyMap, _dateKey(date)),);@@ -867,30 +872,43 @@ class _StatsScreenState extends State<StatsScreen>String _dateKey(DateTime d) =>'${d.year}-${d.month.toString().padLeft(2, '0')}-${d.day.toString().padLeft(2, '0')}';- String _dayLabel(DateTime d) =>- ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'][d.weekday - 1];+ String _dayLabel(DateTime d, AppLocalizations l) {+ switch (d.weekday) {+ case 1: return l.statsScreenDayMon;+ case 2: return l.statsScreenDayTue;+ case 3: return l.statsScreenDayWed;+ case 4: return l.statsScreenDayThu;+ case 5: return l.statsScreenDayFri;+ case 6: return l.statsScreenDaySat;+ case 7: return l.statsScreenDaySun;+ }+ return '';+ }String _formatDuration(double seconds) {+ final l = AppLocalizations.of(context)!;final h = (seconds / 3600).floor();final m = ((seconds % 3600) / 60).floor();- if (h > 0) return '${h}h ${m}m';- if (m > 0) return '${m}m';- if (seconds > 0) return '<1m';- return '0m';+ if (h > 0) return l.statsScreenDurationHm(h, m);+ if (m > 0) return l.statsScreenDurationM(m);+ if (seconds > 0) return l.statsScreenDurationLessThanMin;+ return l.statsScreenDurationZero;}String _shortDuration(double seconds) {+ final l = AppLocalizations.of(context)!;final h = (seconds / 3600).floor();final m = ((seconds % 3600) / 60).floor();- if (h > 0) return '${h}h';- return '${m}m';+ if (h > 0) return l.statsScreenDurationShortH(h);+ return l.statsScreenDurationShortM(m);}String _relativeDate(DateTime date) {+ final l = AppLocalizations.of(context)!;final diff = DateTime.now().difference(date);- if (diff.inMinutes < 60) return '${diff.inMinutes}m ago';- if (diff.inHours < 24) return '${diff.inHours}h ago';- if (diff.inDays < 7) return '${diff.inDays}d ago';+ if (diff.inMinutes < 60) return l.minutesAgo(diff.inMinutes);+ if (diff.inHours < 24) return l.hoursAgo(diff.inHours);+ if (diff.inDays < 7) return l.daysAgo(diff.inDays);return '${date.month}/${date.day}';}}@@ -939,24 +957,40 @@ class _SessionDetailsSheetState extends State<_SessionDetailsSheet> {return '$m:${sec.toString().padLeft(2, '0')}';}- String _fmtDuration(double seconds) {+ String _fmtDuration(double seconds, AppLocalizations l) {final h = (seconds / 3600).floor();final m = ((seconds % 3600) / 60).floor();- if (h > 0) return '${h}h ${m}m';- if (m > 0) return '${m}m';- if (seconds > 0) return '<1m';- return '0m';+ if (h > 0) return l.statsScreenDurationHm(h, m);+ if (m > 0) return l.statsScreenDurationM(m);+ if (seconds > 0) return l.statsScreenDurationLessThanMin;+ return l.statsScreenDurationZero;}- String _fmtDate(int ms) {+ String _fmtDate(int ms, AppLocalizations l) {final d = DateTime.fromMillisecondsSinceEpoch(ms);- final months = [- 'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'- ];+ final monthName = _monthShort(d.month, l);final hour12 = d.hour == 0 ? 12 : (d.hour > 12 ? d.hour - 12 : d.hour);- final ampm = d.hour >= 12 ? 'PM' : 'AM';+ final ampm = d.hour >= 12 ? l.statsScreenPmLabel : l.statsScreenAmLabel;final min = d.minute.toString().padLeft(2, '0');- return '${months[d.month - 1]} ${d.day}, ${d.year} at $hour12:$min $ampm';+ return l.statsScreenDateAtTime(monthName, d.day, d.year, hour12, min, ampm);+ }++ String _monthShort(int m, AppLocalizations l) {+ switch (m) {+ case 1: return l.statsScreenMonthJan;+ case 2: return l.statsScreenMonthFeb;+ case 3: return l.statsScreenMonthMar;+ case 4: return l.statsScreenMonthApr;+ case 5: return l.statsScreenMonthMay;+ case 6: return l.statsScreenMonthJun;+ case 7: return l.statsScreenMonthJul;+ case 8: return l.statsScreenMonthAug;+ case 9: return l.statsScreenMonthSep;+ case 10: return l.statsScreenMonthOct;+ case 11: return l.statsScreenMonthNov;+ case 12: return l.statsScreenMonthDec;+ }+ return '';}Future<void> _jumpToStart() async {@@ -984,9 +1018,10 @@ class _SessionDetailsSheetState extends State<_SessionDetailsSheet> {if (api == null) {if (mounted) {+ final l = AppLocalizations.of(context)!;setState(() => _jumping = false);- ScaffoldMessenger.of(context).showSnackBar(const SnackBar(- content: Text('Not connected to server'),+ ScaffoldMessenger.of(context).showSnackBar(SnackBar(+ content: Text(l.bookmarksNotConnected),behavior: SnackBarBehavior.floating,));}@@ -1004,9 +1039,10 @@ class _SessionDetailsSheetState extends State<_SessionDetailsSheet> {final fullItem = await api.getLibraryItem(itemId);if (fullItem == null) {if (mounted) {+ final l = AppLocalizations.of(context)!;setState(() => _jumping = false);- ScaffoldMessenger.of(context).showSnackBar(const SnackBar(- content: Text('Could not load item'),+ ScaffoldMessenger.of(context).showSnackBar(SnackBar(+ content: Text(l.statsScreenCouldNotLoadItem),behavior: SnackBarBehavior.floating,));}@@ -1031,9 +1067,10 @@ class _SessionDetailsSheetState extends State<_SessionDetailsSheet> {);if (episode is! Map<String, dynamic>) {if (mounted) {+ final l = AppLocalizations.of(context)!;setState(() => _jumping = false);- ScaffoldMessenger.of(context).showSnackBar(const SnackBar(- content: Text('Could not find episode'),+ ScaffoldMessenger.of(context).showSnackBar(SnackBar(+ content: Text(l.statsScreenCouldNotFindEpisode),behavior: SnackBarBehavior.floating,));}@@ -1085,6 +1122,7 @@ class _SessionDetailsSheetState extends State<_SessionDetailsSheet> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final s = widget.session;final meta = s['mediaMetadata'] as Map<String, dynamic>? ?? {};@@ -1097,7 +1135,7 @@ class _SessionDetailsSheetState extends State<_SessionDetailsSheet> {bool looksLikeId(String v) => idPattern.hasMatch(v);final title = (rawTitle != null && !looksLikeId(rawTitle))? rawTitle- : meta['title'] as String? ?? 'Unknown';+ : meta['title'] as String? ?? l.unknown;final author = (rawAuthor != null && !looksLikeId(rawAuthor))? rawAuthor: meta['authorName'] as String? ?? '';@@ -1191,14 +1229,14 @@ class _SessionDetailsSheetState extends State<_SessionDetailsSheet> {],if (author.isNotEmpty) ...[const SizedBox(height: 4),- Text('by $author',+ Text(l.statsScreenByAuthor(author),style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.6))),],if (narrator.isNotEmpty) ...[const SizedBox(height: 2),- Text('Narrated by $narrator',+ Text(l.narratedBy(narrator),style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.5))),@@ -1206,39 +1244,39 @@ class _SessionDetailsSheetState extends State<_SessionDetailsSheet> {])),]),const SizedBox(height: 20),- _infoRow(cs, tt, 'Listened', _fmtDuration(timeListening)),- _infoRow(cs, tt, 'Started at position', _fmtPos(startTime)),- _infoRow(cs, tt, 'Ended at position', _fmtPos(currentTime)),+ _infoRow(cs, tt, l.statsScreenListened, _fmtDuration(timeListening, l)),+ _infoRow(cs, tt, l.statsScreenStartedAtPosition, _fmtPos(startTime)),+ _infoRow(cs, tt, l.statsScreenEndedAtPosition, _fmtPos(currentTime)),if (totalDuration > 0)- _infoRow(cs, tt, 'Total duration',+ _infoRow(cs, tt, l.statsScreenTotalDuration,_fmtPos(totalDuration)),const SizedBox(height: 16),if (startedAt is num)- _infoRow(cs, tt, 'Started', _fmtDate(startedAt.toInt())),+ _infoRow(cs, tt, l.statsScreenStarted, _fmtDate(startedAt.toInt(), l)),if (updatedAt is num)- _infoRow(cs, tt, 'Updated', _fmtDate(updatedAt.toInt())),+ _infoRow(cs, tt, l.statsScreenUpdated, _fmtDate(updatedAt.toInt(), l)),const SizedBox(height: 16),if (clientName.isNotEmpty)_infoRow(cs,tt,- 'Client',+ l.statsScreenClient,clientVersion.isNotEmpty? '$clientName $clientVersion': clientName),if (deviceModel.isNotEmpty)- _infoRow(cs, tt, 'Device', deviceModel),+ _infoRow(cs, tt, l.statsScreenDevice, deviceModel),if (osName.isNotEmpty)_infoRow(cs,tt,- 'OS',+ l.statsScreenOs,osVersion.isNotEmpty? '$osName $osVersion': osName),if (playMethod != null)- _infoRow(cs, tt, 'Play method',- _playMethodLabel(playMethod)),+ _infoRow(cs, tt, l.statsScreenPlayMethod,+ _playMethodLabel(playMethod, l)),const SizedBox(height: 24),if (itemId != null)SizedBox(@@ -1253,8 +1291,8 @@ class _SessionDetailsSheetState extends State<_SessionDetailsSheet> {strokeWidth: 2)): const Icon(Icons.replay_rounded),label: Text(_jumping- ? 'Loading...'- : 'Jump to session start (${_fmtPos(startTime)})'),+ ? l.statsScreenLoading+ : l.statsScreenJumpToSessionStart(_fmtPos(startTime))),style: FilledButton.styleFrom(padding: const EdgeInsets.symmetric(vertical: 14),),@@ -1284,17 +1322,17 @@ class _SessionDetailsSheetState extends State<_SessionDetailsSheet> {);}- String _playMethodLabel(dynamic m) {+ String _playMethodLabel(dynamic m, AppLocalizations l) {final i = m is num ? m.toInt() : -1;switch (i) {case 0:- return 'Direct play';+ return l.statsScreenPlayMethodDirect;case 1:- return 'Direct stream';+ return l.statsScreenPlayMethodDirectStream;case 2:- return 'Transcode';+ return l.statsScreenPlayMethodTranscode;case 3:- return 'Local';+ return l.statsScreenPlayMethodLocal;default:return m.toString();}diff --git a/lib/screens/upcoming_releases_screen.dart b/lib/screens/upcoming_releases_screen.dartindex f5d7bfaa..b961d8a7 100644--- a/lib/screens/upcoming_releases_screen.dart+++ b/lib/screens/upcoming_releases_screen.dart@@ -9,6 +9,7 @@ import '../services/upcoming_releases_service.dart';import '../widgets/absorb_page_header.dart';import '../widgets/audible_series_sheet.dart';import '../widgets/overlay_toast.dart';+import '../l10n/app_localizations.dart';class UpcomingReleasesScreen extends StatefulWidget {const UpcomingReleasesScreen({super.key});@@ -84,17 +85,16 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {}void _showStalePrompt() {+ final l = AppLocalizations.of(context)!;final days = DateTime.now().difference(_service.cacheTime!).inDays;showDialog(context: context,builder: (ctx) => AlertDialog(- title: const Text('Rescan?'),- content: Text(- 'These results are $days days old. Release dates may have changed - would you like to rescan?',- ),+ title: Text(l.upcomingReleasesRescanTitle),+ content: Text(l.upcomingReleasesRescanContent(days)),actions: [- TextButton(onPressed: () => Navigator.pop(ctx), child: const Text('Not now')),- FilledButton(onPressed: () { Navigator.pop(ctx); _rescan(); }, child: const Text('Rescan')),+ TextButton(onPressed: () => Navigator.pop(ctx), child: Text(l.upcomingReleasesNotNow)),+ FilledButton(onPressed: () { Navigator.pop(ctx); _rescan(); }, child: Text(l.upcomingReleasesRescan)),],),);@@ -106,25 +106,43 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {super.dispose();}- String _formatDate(String dateStr) {+ String _formatDate(String dateStr, AppLocalizations l) {final date = DateTime.tryParse(dateStr);if (date == null) return dateStr;- const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',- 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];- return '${months[date.month - 1]} ${date.day}, ${date.year}';+ final monthName = _monthShort(date.month, l);+ return l.upcomingReleasesDateFormat(monthName, date.day, date.year);+ }++ String _monthShort(int m, AppLocalizations l) {+ switch (m) {+ case 1: return l.statsScreenMonthJan;+ case 2: return l.statsScreenMonthFeb;+ case 3: return l.statsScreenMonthMar;+ case 4: return l.statsScreenMonthApr;+ case 5: return l.statsScreenMonthMay;+ case 6: return l.statsScreenMonthJun;+ case 7: return l.statsScreenMonthJul;+ case 8: return l.statsScreenMonthAug;+ case 9: return l.statsScreenMonthSep;+ case 10: return l.statsScreenMonthOct;+ case 11: return l.statsScreenMonthNov;+ case 12: return l.statsScreenMonthDec;+ }+ return '';}- String _formatRuntime(dynamic minutes) {+ String _formatRuntime(dynamic minutes, AppLocalizations l) {final mins = (minutes is num) ? minutes.toInt() : 0;if (mins <= 0) return '';final h = mins ~/ 60;final m = mins % 60;- if (h > 0 && m > 0) return '${h}h ${m}m';- if (h > 0) return '${h}h';- return '${m}m';+ if (h > 0 && m > 0) return l.statsScreenDurationHm(h, m);+ if (h > 0) return l.statsScreenDurationShortH(h);+ return l.statsScreenDurationShortM(m);}void _showBookMenu(Map<String, dynamic> book, String seriesName) {+ final l = AppLocalizations.of(context)!;showAudibleBookMenu(context,book: book,seriesName: seriesName,@@ -132,7 +150,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {extraActions: [ListTile(leading: Icon(Icons.refresh_rounded, color: Theme.of(context).colorScheme.primary, size: 22),- title: const Text('Rescan Release Date', style: TextStyle(fontSize: 14, fontWeight: FontWeight.w500)),+ title: Text(l.upcomingReleasesRescanReleaseDate, style: const TextStyle(fontSize: 14, fontWeight: FontWeight.w500)),dense: true, visualDensity: VisualDensity.compact,onTap: () {Navigator.pop(context);@@ -145,18 +163,19 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {Future<void> _rescanBook(String asin) async {if (!mounted) return;- showOverlayToast(context, 'Rescanning...', icon: Icons.refresh_rounded);+ final l = AppLocalizations.of(context)!;+ showOverlayToast(context, l.upcomingReleasesRescanning, icon: Icons.refresh_rounded);final updated = await _service.rescanBook(asin);if (!mounted) return;if (updated != null) {final newDate = updated['releaseDate'] as String? ?? '';if (newDate.isNotEmpty) {- showOverlayToast(context, 'Updated - ${_formatDate(newDate)}', icon: Icons.check_rounded);+ showOverlayToast(context, l.upcomingReleasesUpdatedWithDate(_formatDate(newDate, l)), icon: Icons.check_rounded);} else {- showOverlayToast(context, 'No release date found', icon: Icons.info_outline_rounded);+ showOverlayToast(context, l.upcomingReleasesNoReleaseDateFound, icon: Icons.info_outline_rounded);}} else {- showOverlayToast(context, 'Rescan failed', icon: Icons.error_outline_rounded);+ showOverlayToast(context, l.upcomingReleasesRescanFailed, icon: Icons.error_outline_rounded);}}@@ -164,13 +183,14 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Scaffold(body: SafeArea(child: Column(children: [AbsorbPageHeader(- title: 'Upcoming Releases',+ title: l.upcomingReleasesTitle,actions: [// Sort by date toggle (only when scan is done and has results)if (_service.isComplete && _service.results.isNotEmpty)@@ -187,7 +207,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {Icon(Icons.calendar_today_rounded, size: 13,color: _sortByDate ? cs.primary : cs.onSurfaceVariant),const SizedBox(width: 4),- Text('Date', style: TextStyle(fontSize: 11, fontWeight: FontWeight.w600,+ Text(l.upcomingReleasesDateChip, style: TextStyle(fontSize: 11, fontWeight: FontWeight.w600,color: _sortByDate ? cs.primary : cs.onSurfaceVariant)),]),),@@ -249,8 +269,8 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {const SizedBox(height: 6),Text(_service.currentSeriesName != null- ? 'Checking ${_service.currentSeriesName}... (${_service.processedCount}/${_service.totalSeries})'- : 'Loading series...',+ ? l.upcomingReleasesCheckingSeries(_service.currentSeriesName!, _service.processedCount, _service.totalSeries)+ : l.upcomingReleasesLoadingSeries,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 11),maxLines: 1,overflow: TextOverflow.ellipsis,@@ -266,12 +286,12 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {padding: const EdgeInsets.fromLTRB(20, 12, 20, 0),child: Row(children: [Text(- _buildSummary(),+ _buildSummary(l),style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant),),if (_service.hasCachedResults && _service.cacheTime != null) ...[const SizedBox(width: 6),- Text(_cacheAgeLabel(), style: tt.bodySmall?.copyWith(+ Text(_cacheAgeLabel(l), style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.5), fontSize: 11)),],]),@@ -281,7 +301,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {// Results listExpanded(- child: _buildContent(cs, tt),+ child: _buildContent(cs, tt, l),),],),@@ -289,25 +309,25 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {);}- String _cacheAgeLabel() {+ String _cacheAgeLabel(AppLocalizations l) {final age = DateTime.now().difference(_service.cacheTime!);- if (age.inDays == 0) return '(scanned today)';- if (age.inDays == 1) return '(scanned yesterday)';- return '(scanned ${age.inDays} days ago)';+ if (age.inDays == 0) return l.upcomingReleasesScannedToday;+ if (age.inDays == 1) return l.upcomingReleasesScannedYesterday;+ return l.upcomingReleasesScannedDaysAgo(age.inDays);}- String _buildSummary() {+ String _buildSummary(AppLocalizations l) {final totalUpcoming = _service.results.fold<int>(0, (sum, r) => sum + r.upcomingBooks.length);final totalRecent = _service.results.fold<int>(0, (sum, r) => sum + r.recentBooks.length);final parts = <String>[];- if (totalUpcoming > 0) parts.add('$totalUpcoming upcoming');- if (totalRecent > 0) parts.add('$totalRecent recent');- if (parts.isEmpty) return 'No upcoming or recent releases found';+ if (totalUpcoming > 0) parts.add(l.upcomingReleasesUpcomingCount(totalUpcoming));+ if (totalRecent > 0) parts.add(l.upcomingReleasesRecentCount(totalRecent));+ if (parts.isEmpty) return l.upcomingReleasesNoneFound;final seriesCount = _service.results.length;- return '${parts.join(', ')} across $seriesCount series';+ return l.upcomingReleasesAcrossSeries(parts.join(', '), seriesCount);}- Widget _buildContent(ColorScheme cs, TextTheme tt) {+ Widget _buildContent(ColorScheme cs, TextTheme tt, AppLocalizations l) {if (_service.error != null) {return Center(child: Padding(@@ -329,10 +349,10 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {child: Column(mainAxisSize: MainAxisSize.min, children: [Icon(Icons.event_available_rounded, size: 48, color: cs.primary.withValues(alpha: 0.5)),const SizedBox(height: 12),- Text('No upcoming or recent releases found', style: tt.bodyLarge?.copyWith(color: cs.onSurfaceVariant),+ Text(l.upcomingReleasesNoneFound, style: tt.bodyLarge?.copyWith(color: cs.onSurfaceVariant),textAlign: TextAlign.center),const SizedBox(height: 4),- Text('Checked ${_service.totalSeries} series on Audible',+ Text(l.upcomingReleasesCheckedSeries(_service.totalSeries),style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.6)),textAlign: TextAlign.center),]),@@ -345,7 +365,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {}if (_sortByDate && !_service.isRunning) {- return _buildDateSortedList(cs, tt);+ return _buildDateSortedList(cs, tt, l);}return ListView.builder(@@ -358,12 +378,12 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {child: Center(child: CircularProgressIndicator(strokeWidth: 2)),);}- return _buildSeriesSection(cs, tt, _service.results[index]);+ return _buildSeriesSection(cs, tt, l, _service.results[index]);},);}- Widget _buildDateSortedList(ColorScheme cs, TextTheme tt) {+ Widget _buildDateSortedList(ColorScheme cs, TextTheme tt, AppLocalizations l) {// Flatten all books with their series name and upcoming/recent statusfinal allBooks = <({Map<String, dynamic> book, String seriesName, bool isUpcoming})>[];for (final result in _service.results) {@@ -387,19 +407,19 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {itemCount: allBooks.length,itemBuilder: (context, index) {final entry = allBooks[index];- return _buildDateSortedCard(cs, tt, entry.book, entry.seriesName, entry.isUpcoming);+ return _buildDateSortedCard(cs, tt, l, entry.book, entry.seriesName, entry.isUpcoming);},);}- Widget _buildDateSortedCard(ColorScheme cs, TextTheme tt, Map<String, dynamic> book, String seriesName, bool isUpcoming) {+ Widget _buildDateSortedCard(ColorScheme cs, TextTheme tt, AppLocalizations l, Map<String, dynamic> book, String seriesName, bool isUpcoming) {final title = book['title'] as String? ?? '';final subtitle = book['subtitle'] as String? ?? '';final authors = book['authors'] as String? ?? '';final sequence = book['sequence'] as String? ?? '';final coverUrl = book['coverUrl'] as String? ?? '';final releaseDate = book['releaseDate'] as String? ?? '';- final runtime = _formatRuntime(book['runtimeMinutes']);+ final runtime = _formatRuntime(book['runtimeMinutes'], l);final isOwned = book['_owned'] == true;final isDark = Theme.of(context).brightness == Brightness.dark;final downloadGreen = isDark ? Colors.greenAccent[400]! : Colors.green.shade700;@@ -440,7 +460,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {child: Container(padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 2),decoration: BoxDecoration(color: Colors.black.withValues(alpha: 0.7), borderRadius: BorderRadius.circular(6)),- child: Text('#$sequence', style: const TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w600)),+ child: Text(l.upcomingReleasesSequenceLabel(sequence), style: const TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w600)),),),if (isUpcoming)@@ -448,7 +468,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {child: Container(padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 2),decoration: BoxDecoration(color: cs.primary.withValues(alpha: 0.9), borderRadius: BorderRadius.circular(6)),- child: const Text('UPCOMING', style: TextStyle(color: Colors.white, fontSize: 8, fontWeight: FontWeight.w700)),+ child: Text(l.upcomingReleasesBadgeUpcoming, style: const TextStyle(color: Colors.white, fontSize: 8, fontWeight: FontWeight.w700)),),),if (!isUpcoming)@@ -459,7 +479,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {color: isOwned ? downloadGreen.withValues(alpha: 0.9) : cs.error.withValues(alpha: 0.9),borderRadius: BorderRadius.circular(6),),- child: Text(isOwned ? 'ADDED' : 'MISSING',+ child: Text(isOwned ? l.upcomingReleasesBadgeAdded : l.upcomingReleasesBadgeMissing,style: const TextStyle(color: Colors.white, fontSize: 8, fontWeight: FontWeight.w700)),),),@@ -496,7 +516,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {Icon(isUpcoming ? Icons.event_rounded : Icons.calendar_today_rounded,size: 11, color: isUpcoming ? cs.primary : cs.onSurfaceVariant.withValues(alpha: 0.5)),const SizedBox(width: 3),- Text(_formatDate(releaseDate),+ Text(_formatDate(releaseDate, l),style: TextStyle(fontSize: 10,fontWeight: isUpcoming ? FontWeight.w600 : FontWeight.w400,color: isUpcoming ? cs.primary : cs.onSurfaceVariant.withValues(alpha: 0.5))),@@ -523,7 +543,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {);}- Widget _buildSeriesSection(ColorScheme cs, TextTheme tt, UpcomingSeriesResult result) {+ Widget _buildSeriesSection(ColorScheme cs, TextTheme tt, AppLocalizations l, UpcomingSeriesResult result) {final totalCount = result.upcomingBooks.length + result.recentBooks.length;return Padding(padding: const EdgeInsets.only(bottom: 16),@@ -557,15 +577,15 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {]),),// Upcoming books- ...result.upcomingBooks.map((book) => _buildBookCard(cs, tt, book, result.seriesName, isUpcoming: true)),+ ...result.upcomingBooks.map((book) => _buildBookCard(cs, tt, l, book, result.seriesName, isUpcoming: true)),// Recent releases- ...result.recentBooks.map((book) => _buildBookCard(cs, tt, book, result.seriesName, isUpcoming: false)),+ ...result.recentBooks.map((book) => _buildBookCard(cs, tt, l, book, result.seriesName, isUpcoming: false)),],),);}- Widget _buildBookCard(ColorScheme cs, TextTheme tt, Map<String, dynamic> book, String seriesName, {required bool isUpcoming}) {+ Widget _buildBookCard(ColorScheme cs, TextTheme tt, AppLocalizations l, Map<String, dynamic> book, String seriesName, {required bool isUpcoming}) {final title = book['title'] as String? ?? '';final subtitle = book['subtitle'] as String? ?? '';final authors = book['authors'] as String? ?? '';@@ -573,7 +593,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {final sequence = book['sequence'] as String? ?? '';final coverUrl = book['coverUrl'] as String? ?? '';final releaseDate = book['releaseDate'] as String? ?? '';- final runtime = _formatRuntime(book['runtimeMinutes']);+ final runtime = _formatRuntime(book['runtimeMinutes'], l);final isOwned = book['_owned'] == true;final isDark = Theme.of(context).brightness == Brightness.dark;final downloadGreen = isDark ? Colors.greenAccent[400]! : Colors.green.shade700;@@ -614,7 +634,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {child: Container(padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 2),decoration: BoxDecoration(color: Colors.black.withValues(alpha: 0.7), borderRadius: BorderRadius.circular(6)),- child: Text('#$sequence', style: const TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w600)),+ child: Text(l.upcomingReleasesSequenceLabel(sequence), style: const TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w600)),),),if (isUpcoming)@@ -622,7 +642,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {child: Container(padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 2),decoration: BoxDecoration(color: cs.primary.withValues(alpha: 0.9), borderRadius: BorderRadius.circular(6)),- child: const Text('UPCOMING', style: TextStyle(color: Colors.white, fontSize: 8, fontWeight: FontWeight.w700)),+ child: Text(l.upcomingReleasesBadgeUpcoming, style: const TextStyle(color: Colors.white, fontSize: 8, fontWeight: FontWeight.w700)),),),if (!isUpcoming)@@ -636,7 +656,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {borderRadius: BorderRadius.circular(6),),child: Text(- isOwned ? 'ADDED' : 'MISSING',+ isOwned ? l.upcomingReleasesBadgeAdded : l.upcomingReleasesBadgeMissing,style: const TextStyle(color: Colors.white, fontSize: 8, fontWeight: FontWeight.w700),),),@@ -665,7 +685,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {Text(authors, maxLines: 1, overflow: TextOverflow.ellipsis,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 11)),if (narrators.isNotEmpty)- Text('Narrated by $narrators', maxLines: 1, overflow: TextOverflow.ellipsis,+ Text(l.narratedBy(narrators), maxLines: 1, overflow: TextOverflow.ellipsis,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.6), fontSize: 10)),const SizedBox(height: 4),Row(children: [@@ -673,7 +693,7 @@ class _UpcomingReleasesScreenState extends State<UpcomingReleasesScreen> {Icon(isUpcoming ? Icons.event_rounded : Icons.calendar_today_rounded,size: 11, color: isUpcoming ? cs.primary : cs.onSurfaceVariant.withValues(alpha: 0.5)),const SizedBox(width: 3),- Text(_formatDate(releaseDate),+ Text(_formatDate(releaseDate, l),style: TextStyle(fontSize: 10,fontWeight: isUpcoming ? FontWeight.w600 : FontWeight.w400,color: isUpcoming ? cs.primary : cs.onSurfaceVariant.withValues(alpha: 0.5))),diff --git a/lib/services/android_auto_service.dart b/lib/services/android_auto_service.dartindex 98168a09..eace98d2 100644--- a/lib/services/android_auto_service.dart+++ b/lib/services/android_auto_service.dart@@ -8,6 +8,8 @@ import 'api_service.dart';import 'download_service.dart';import 'progress_sync_service.dart';import 'scoped_prefs.dart';+import '../l10n/app_localizations.dart';+import '../main.dart' show rootNavigatorKey;// ─── Media ID scheme ─────────────────────────────────────────────────//@@ -484,24 +486,30 @@ class AndroidAutoService {// ─── Browse tree ───────────────────────────────────────────────────+ AppLocalizations? _l() {+ final ctx = rootNavigatorKey.currentContext;+ return ctx != null ? AppLocalizations.of(ctx) : null;+ }+List<MediaItem> _getRootChildren() {// Always show all three tabs so the layout is consistent and doesn't// look like a missing 4th button. Each tab fetches on-demand if its// cache is empty (cold start / background refresh pending).- return const [+ final l = _l();+ return [MediaItem(id: AutoMediaIds.continueListening,- title: 'Continue',+ title: l?.androidAutoTabContinue ?? 'Continue',playable: false,),MediaItem(id: AutoMediaIds.library,- title: 'Library',+ title: l?.androidAutoTabLibrary ?? 'Library',playable: false,),MediaItem(id: AutoMediaIds.downloads,- title: 'Downloads',+ title: l?.androidAutoTabDownloads ?? 'Downloads',playable: false,),];@@ -509,20 +517,21 @@ class AndroidAutoService {/// Sub-categories for a book library: Books, Series, AuthorsList<MediaItem> _getBookSubCategories(String libraryId) {+ final l = _l();return [MediaItem(id: AutoMediaIds.libBooks(libraryId),- title: 'Books',+ title: l?.androidAutoCatBooks ?? 'Books',playable: false,),MediaItem(id: AutoMediaIds.libSeries(libraryId),- title: 'Series',+ title: l?.androidAutoCatSeries ?? 'Series',playable: false,),MediaItem(id: AutoMediaIds.libAuthors(libraryId),- title: 'Authors',+ title: l?.androidAutoCatAuthors ?? 'Authors',playable: false,),];diff --git a/lib/services/download_notification_service.dart b/lib/services/download_notification_service.dartindex ba825a48..61e2a023 100644--- a/lib/services/download_notification_service.dart+++ b/lib/services/download_notification_service.dart@@ -1,5 +1,7 @@import 'package:flutter/foundation.dart';import 'package:flutter_local_notifications/flutter_local_notifications.dart';+import '../l10n/app_localizations.dart';+import '../main.dart' show rootNavigatorKey;/// Manages notifications for audiobook downloads./// Uses an Android **foreground service** for a summary notification so the OS@@ -18,13 +20,22 @@ class DownloadNotificationService {// Foreground service / progress channelstatic const _progressChannelId = 'absorb_downloads';- static const _progressChannelName = 'Download Progress';- static const _progressChannelDesc = 'Shows progress during audiobook downloads';+ String get _progressChannelName =>+ _l()?.downloadNotifProgressChannelName ?? 'Download Progress';+ String get _progressChannelDesc =>+ _l()?.downloadNotifProgressChannelDesc ?? 'Shows progress during audiobook downloads';// Alert channel for completion / error (heads-up + sound)static const _alertChannelId = 'absorb_download_alerts';- static const _alertChannelName = 'Download Alerts';- static const _alertChannelDesc = 'Notifications when downloads finish or fail';+ String get _alertChannelName =>+ _l()?.downloadNotifAlertChannelName ?? 'Download Alerts';+ String get _alertChannelDesc =>+ _l()?.downloadNotifAlertChannelDesc ?? 'Notifications when downloads finish or fail';++ AppLocalizations? _l() {+ final ctx = rootNavigatorKey.currentContext;+ return ctx != null ? AppLocalizations.of(ctx) : null;+ }// Notification IDsstatic const _foregroundNotifId = 9000; // summary foreground service@@ -54,7 +65,7 @@ class DownloadNotificationService {// Progress channel — default importance so the foreground service// notification stays visible in the shade without making noise.await androidPlugin.createNotificationChannel(- const AndroidNotificationChannel(+ AndroidNotificationChannel(_progressChannelId,_progressChannelName,description: _progressChannelDesc,@@ -65,7 +76,7 @@ class DownloadNotificationService {// High-importance alert channel for completion / errorsawait androidPlugin.createNotificationChannel(- const AndroidNotificationChannel(+ AndroidNotificationChannel(_alertChannelId,_alertChannelName,description: _alertChannelDesc,@@ -152,14 +163,15 @@ class DownloadNotificationService {}// Show alert+ final l = _l();if (success) {await _showAlert(- title: 'Download Complete',- body: '$title is ready to listen offline',+ title: l?.downloadNotifCompleteTitle ?? 'Download Complete',+ body: l?.downloadNotifCompleteBody(title) ?? '$title is ready to listen offline',);} else {await _showAlert(- title: 'Download Failed',+ title: l?.downloadNotifFailedTitle ?? 'Download Failed',body: errorMessage ?? title,);}@@ -197,7 +209,7 @@ class DownloadNotificationService {// ── Private helpers ──Future<void> _startForeground() async {- const androidDetails = AndroidNotificationDetails(+ final androidDetails = AndroidNotificationDetails(_progressChannelId,_progressChannelName,channelDescription: _progressChannelDesc,@@ -210,14 +222,18 @@ class DownloadNotificationService {icon: 'drawable/ic_notification',);+ final l = _l();+ final title = l?.downloadNotifDownloadingTitle ?? 'Downloading...';+ final subtitle = l?.downloadNotifActiveCount(1) ?? '1 download active';+final androidPlugin = _plugin.resolvePlatformSpecificImplementation<AndroidFlutterLocalNotificationsPlugin>();if (androidPlugin != null) {try {await androidPlugin.startForegroundService(_foregroundNotifId,- 'Downloading...',- '1 download active',+ title,+ subtitle,notificationDetails: androidDetails,payload: 'download',);@@ -227,9 +243,9 @@ class DownloadNotificationService {debugPrint('[DownloadNotif] Foreground service failed, falling back: $e');await _plugin.show(_foregroundNotifId,- 'Downloading...',- '1 download active',- const NotificationDetails(android: androidDetails),+ title,+ subtitle,+ NotificationDetails(android: androidDetails),);_foregroundActive = false;}@@ -238,7 +254,9 @@ class DownloadNotificationService {Future<void> _updateForegroundSummary() async {if (_activeCount <= 0) return;- final subtitle = '$_activeCount download${_activeCount == 1 ? '' : 's'} active';+ final l = _l();+ final subtitle = l?.downloadNotifActiveCount(_activeCount)+ ?? '$_activeCount download${_activeCount == 1 ? '' : 's'} active';final androidDetails = AndroidNotificationDetails(_progressChannelId,@@ -255,7 +273,7 @@ class DownloadNotificationService {await _plugin.show(_foregroundNotifId,- 'Downloading...',+ l?.downloadNotifDownloadingTitle ?? 'Downloading...',subtitle,NotificationDetails(android: androidDetails),);@@ -289,9 +307,11 @@ class DownloadNotificationService {required int percent,bool starting = false,}) async {+ final l = _l();+ final startingLabel = l?.downloadNotifStartingLabel ?? 'Starting\u2026';final subtitle = starting- ? (author != null && author.isNotEmpty ? '$author • Starting…' : 'Starting…')- : (author != null && author.isNotEmpty ? '$author • $percent%' : '$percent%');+ ? (author != null && author.isNotEmpty ? '$author \u2022 $startingLabel' : startingLabel)+ : (author != null && author.isNotEmpty ? '$author \u2022 $percent%' : '$percent%');final androidDetails = AndroidNotificationDetails(_progressChannelId,@@ -311,7 +331,7 @@ class DownloadNotificationService {await _plugin.show(_progressNotifId(slot),- 'Downloading: $title',+ l?.downloadNotifSlotTitle(title) ?? 'Downloading: $title',subtitle,NotificationDetails(android: androidDetails,@@ -324,7 +344,7 @@ class DownloadNotificationService {required String title,required String body,}) async {- const androidDetails = AndroidNotificationDetails(+ final androidDetails = AndroidNotificationDetails(_alertChannelId,_alertChannelName,channelDescription: _alertChannelDesc,@@ -345,9 +365,9 @@ class DownloadNotificationService {alertId,title,body,- const NotificationDetails(+ NotificationDetails(android: androidDetails,- iOS: DarwinNotificationDetails(),+ iOS: const DarwinNotificationDetails(),),);}diff --git a/lib/services/upcoming_releases_service.dart b/lib/services/upcoming_releases_service.dartindex 08fa7687..d873327e 100644--- a/lib/services/upcoming_releases_service.dart+++ b/lib/services/upcoming_releases_service.dart@@ -3,6 +3,8 @@ import 'package:flutter/foundation.dart';import 'package:flutter_local_notifications/flutter_local_notifications.dart';import 'package:shared_preferences/shared_preferences.dart';import 'api_service.dart';+import '../l10n/app_localizations.dart';+import '../main.dart' show rootNavigatorKey;/// Result for a single series that has upcoming or recently released books.class UpcomingSeriesResult {@@ -88,11 +90,18 @@ class UpcomingReleasesService extends ChangeNotifier {// Notificationstatic const _notifChannelId = 'absorb_upcoming_scan';- static const _notifChannelName = 'Upcoming Release Scan';- static const _notifChannelDesc = 'Shows progress while scanning for upcoming releases';+ String get _notifChannelName =>+ _l()?.upcomingNotifChannelName ?? 'Upcoming Release Scan';+ String get _notifChannelDesc =>+ _l()?.upcomingNotifChannelDesc ?? 'Shows progress while scanning for upcoming releases';static const _scanNotifId = 9100;static const _completeNotifId = 9101;+ AppLocalizations? _l() {+ final ctx = rootNavigatorKey.currentContext;+ return ctx != null ? AppLocalizations.of(ctx) : null;+ }+// Persistence keysstatic const _cacheKey = 'upcomingReleasesCache';static const _cacheTimeKey = 'upcomingReleasesCacheTime';@@ -173,7 +182,7 @@ class UpcomingReleasesService extends ChangeNotifier {_currentSeriesName = null;notifyListeners();- await _showScanNotification('Starting scan...');+ await _showScanNotification(_l()?.upcomingNotifStartingScan ?? 'Starting scan...');try {// Use filter data to get series list - lightweight, no embedded books@@ -242,8 +251,10 @@ class UpcomingReleasesService extends ChangeNotifier {// Update scan notification periodicallyif (_processedCount % 5 == 0) {+ final l = _l();await _showScanNotification(- 'Checking $seriesName... (${_processedCount + 1}/$_totalSeries)',+ l?.upcomingNotifCheckingSeries(seriesName, _processedCount + 1, _totalSeries)+ ?? 'Checking $seriesName... (${_processedCount + 1}/$_totalSeries)',);}@@ -536,7 +547,7 @@ class UpcomingReleasesService extends ChangeNotifier {if (androidPlugin != null) {await androidPlugin.createNotificationChannel(- const AndroidNotificationChannel(+ AndroidNotificationChannel(_notifChannelId,_notifChannelName,description: _notifChannelDesc,@@ -549,7 +560,7 @@ class UpcomingReleasesService extends ChangeNotifier {final progress = _totalSeries > 0 ? _processedCount : 0;final max = _totalSeries > 0 ? _totalSeries : 0;- const androidDetails = AndroidNotificationDetails(+ final androidDetails = AndroidNotificationDetails(_notifChannelId,_notifChannelName,channelDescription: _notifChannelDesc,@@ -560,13 +571,15 @@ class UpcomingReleasesService extends ChangeNotifier {icon: 'drawable/ic_notification',);+ final scanTitle = _l()?.upcomingNotifScanTitle ?? 'Scanning for upcoming releases';+// Start as foreground service on first call so the scan survives// the app being sent to the background.if (!_foregroundActive && androidPlugin != null) {try {await androidPlugin.startForegroundService(_scanNotifId,- 'Scanning for upcoming releases',+ scanTitle,body,notificationDetails: androidDetails,payload: 'upcoming_scan',@@ -581,7 +594,7 @@ class UpcomingReleasesService extends ChangeNotifier {await plugin.show(_scanNotifId,- 'Scanning for upcoming releases',+ scanTitle,body,NotificationDetails(android: AndroidNotificationDetails(@@ -630,7 +643,7 @@ class UpcomingReleasesService extends ChangeNotifier {AndroidFlutterLocalNotificationsPlugin>();if (androidPlugin != null) {await androidPlugin.createNotificationChannel(- const AndroidNotificationChannel(+ AndroidNotificationChannel(_notifChannelId,_notifChannelName,description: _notifChannelDesc,@@ -640,11 +653,13 @@ class UpcomingReleasesService extends ChangeNotifier {}final seriesCount = _results.length;+ final l = _l();await plugin.show(_completeNotifId,- 'Upcoming releases found!',- '$totalBooks upcoming across $seriesCount series',- const NotificationDetails(+ l?.upcomingNotifFoundTitle ?? 'Upcoming releases found!',+ l?.upcomingNotifFoundBody(totalBooks, seriesCount)+ ?? '$totalBooks upcoming across $seriesCount series',+ NotificationDetails(android: AndroidNotificationDetails(_notifChannelId,_notifChannelName,diff --git a/lib/widgets/absorb_page_header.dart b/lib/widgets/absorb_page_header.dartindex 6c263d2a..b2616761 100644--- a/lib/widgets/absorb_page_header.dart+++ b/lib/widgets/absorb_page_header.dart@@ -1,4 +1,5 @@import 'package:flutter/material.dart';+import '../l10n/app_localizations.dart';/// Consistent page header used across all screens.///@@ -28,6 +29,7 @@ class AbsorbPageHeader extends StatelessWidget {Widget build(BuildContext context) {final tt = Theme.of(context).textTheme;final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;final bColor = brandingColor ?? cs.onSurfaceVariant;final tColor = titleColor ?? cs.onSurface;@@ -44,7 +46,7 @@ class AbsorbPageHeader extends StatelessWidget {child: Row(children: [Text(- 'A B S O R B',+ l.appTitle,style: tt.labelSmall?.copyWith(color: bColor,letterSpacing: 4,diff --git a/lib/widgets/absorbing_card.dart b/lib/widgets/absorbing_card.dartindex 94177f5a..d98f8cbc 100644--- a/lib/widgets/absorbing_card.dart+++ b/lib/widgets/absorbing_card.dart@@ -4,6 +4,7 @@ import 'dart:ui' as ui;import 'package:flutter/material.dart';import 'package:provider/provider.dart';import 'package:cached_network_image/cached_network_image.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';import '../screens/app_shell.dart';@@ -52,7 +53,11 @@ class AbsorbingCardState extends State<AbsorbingCard> with AutomaticKeepAliveCliString get _itemId => widget.item['id'] as String? ?? '';Map<String, dynamic> get _media => widget.item['media'] as Map<String, dynamic>? ?? {};Map<String, dynamic> get _metadata => _media['metadata'] as Map<String, dynamic>? ?? {};- String get _title => _metadata['title'] as String? ?? 'Unknown';+ String get _title {+ final t = _metadata['title'] as String?;+ if (t != null && t.isNotEmpty) return t;+ return mounted ? AppLocalizations.of(context)!.unknown : 'Unknown';+ }String get _author => _metadata['authorName'] as String? ?? '';double get _duration => (_media['duration'] as num?)?.toDouble() ?? 0;List<dynamic> get _chapters {@@ -389,6 +394,7 @@ class AbsorbingCardState extends State<AbsorbingCard> with AutomaticKeepAliveClifinal cs = _coverScheme ?? Theme.of(context).colorScheme;final accent = cs.primary;final isDark = Theme.of(context).brightness == Brightness.dark;+ final l = AppLocalizations.of(context)!;final lib = context.watch<LibraryProvider>();final mediaHeaders = lib.mediaHeaders;@@ -603,7 +609,7 @@ class AbsorbingCardState extends State<AbsorbingCard> with AutomaticKeepAliveClishowSaved ? Icons.download_done_rounded : Icons.cell_tower_rounded,size: 11, color: showSaved ? savedColor : streamColor),const SizedBox(width: 3),- Text(showSaved ? 'Saved' : 'Streaming', style: TextStyle(+ Text(showSaved ? l.saved : l.expandedCardStreaming, style: TextStyle(fontSize: 10, fontWeight: FontWeight.w500,color: showSaved ? savedColor : streamColor,)),@@ -670,12 +676,12 @@ class AbsorbingCardState extends State<AbsorbingCard> with AutomaticKeepAliveClichildren: [Icon(Icons.cast_connected_rounded, size: 36, color: accent.withValues(alpha: 0.9)),const SizedBox(height: 8),- Text('Casting to', style: TextStyle(color: Colors.white.withValues(alpha: 0.6), fontSize: 11, fontWeight: FontWeight.w500)),+ Text(l.castingTo, style: TextStyle(color: Colors.white.withValues(alpha: 0.6), fontSize: 11, fontWeight: FontWeight.w500)),const SizedBox(height: 2),Padding(padding: const EdgeInsets.symmetric(horizontal: 16),child: Text(- castService.connectedDeviceName ?? 'Device',+ castService.connectedDeviceName ?? l.expandedCardDeviceFallback,style: TextStyle(color: accent, fontSize: 14, fontWeight: FontWeight.w700),textAlign: TextAlign.center,maxLines: 2,@@ -794,12 +800,12 @@ class AbsorbingCardState extends State<AbsorbingCard> with AutomaticKeepAliveCli? [Icon(Icons.cast_connected_rounded, size: 18, color: accent),const SizedBox(width: 4),- Text('Casting', style: TextStyle(fontSize: 12, fontWeight: FontWeight.w500, color: accent)),+ Text(l.casting, style: TextStyle(fontSize: 12, fontWeight: FontWeight.w500, color: accent)),]: [Icon(Icons.more_horiz_rounded, size: 18, color: cs.onSurface.withValues(alpha: 0.54)),const SizedBox(width: 4),- Text('More', style: TextStyle(fontSize: 12, fontWeight: FontWeight.w500, color: cs.onSurface.withValues(alpha: 0.54))),+ Text(l.more, style: TextStyle(fontSize: 12, fontWeight: FontWeight.w500, color: cs.onSurface.withValues(alpha: 0.54))),],),),diff --git a/lib/widgets/absorbing_shared.dart b/lib/widgets/absorbing_shared.dartindex d016655f..f4886af9 100644--- a/lib/widgets/absorbing_shared.dart+++ b/lib/widgets/absorbing_shared.dart@@ -2,29 +2,44 @@ import 'dart:math' as math;import 'dart:ui';import 'package:flutter/material.dart';import 'package:provider/provider.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';import '../services/download_service.dart';import '../services/playback_history_service.dart';import 'overlay_toast.dart';-String dateLabel(DateTime dt) {+String dateLabel(DateTime dt, [AppLocalizations? l]) {final now = DateTime.now();final today = DateTime(now.year, now.month, now.day);final date = DateTime(dt.year, dt.month, dt.day);- if (date == today) return 'Today';- if (date == today.subtract(const Duration(days: 1))) return 'Yesterday';+ if (date == today) return l?.absorbingSharedToday ?? 'Today';+ if (date == today.subtract(const Duration(days: 1))) return l?.absorbingSharedYesterday ?? 'Yesterday';if (now.difference(dt).inDays < 7) {+ if (l != null) {+ switch (dt.weekday) {+ case 1: return l.absorbingSharedMonday;+ case 2: return l.absorbingSharedTuesday;+ case 3: return l.absorbingSharedWednesday;+ case 4: return l.absorbingSharedThursday;+ case 5: return l.absorbingSharedFriday;+ case 6: return l.absorbingSharedSaturday;+ case 7: return l.absorbingSharedSunday;+ }+ }const days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];return days[dt.weekday - 1];}return '${dt.month}/${dt.day}/${dt.year}';}-String timeOfDay(DateTime dt) {+String timeOfDay(DateTime dt, [AppLocalizations? l]) {final h = dt.hour % 12 == 0 ? 12 : dt.hour % 12;final m = dt.minute.toString().padLeft(2, '0');- final ampm = dt.hour < 12 ? 'AM' : 'PM';+ final isAm = dt.hour < 12;+ final ampm = l != null+ ? (isAm ? l.absorbingSharedAm : l.absorbingSharedPm)+ : (isAm ? 'AM' : 'PM');return '$h:$m $ampm';}@@ -158,6 +173,7 @@ class _DownloadWideButtonState extends State<DownloadWideButton> {final downloading = _dl.isDownloading(widget.itemId);final downloaded = _dl.isDownloaded(widget.itemId);final progress = _dl.downloadProgress(widget.itemId);+ final l = AppLocalizations.of(context)!;final isDark = Theme.of(context).brightness == Brightness.dark;final dlGreen = isDark ? Colors.greenAccent.withValues(alpha: 0.7) : Colors.green.shade700;@@ -166,7 +182,7 @@ class _DownloadWideButtonState extends State<DownloadWideButton> {final Color color;if (downloaded) {icon = Icons.download_done_rounded;- label = 'Saved';+ label = l.saved;color = dlGreen;} else if (downloading) {icon = Icons.downloading_rounded;@@ -174,7 +190,7 @@ class _DownloadWideButtonState extends State<DownloadWideButton> {color = widget.accent;} else {icon = Icons.download_outlined;- label = 'Download';+ label = l.download;color = Theme.of(context).colorScheme.onSurfaceVariant;}@@ -216,18 +232,19 @@ class _DownloadWideButtonState extends State<DownloadWideButton> {final auth = context.read<AuthProvider>();final api = auth.apiService;if (api == null) return;+ final l = AppLocalizations.of(context)!;if (_dl.isDownloaded(widget.itemId)) {showDialog(context: context, builder: (ctx) => AlertDialog(- title: const Text('Remove download?'),- content: const Text('This will be removed from your device.'),+ title: Text(l.removeDownloadQuestion),+ content: Text(l.removeDownloadContent),actions: [- TextButton(onPressed: () => Navigator.pop(ctx), child: const Text('Cancel')),+ TextButton(onPressed: () => Navigator.pop(ctx), child: Text(l.cancel)),TextButton(onPressed: () {_dl.deleteDownload(widget.itemId);Navigator.pop(ctx);- showOverlayToast(context, 'Download removed', icon: Icons.delete_outline_rounded);+ showOverlayToast(context, l.downloadRemoved, icon: Icons.delete_outline_rounded);},- child: const Text('Remove', style: TextStyle(color: Colors.redAccent))),+ child: Text(l.remove, style: const TextStyle(color: Colors.redAccent))),],));} else if (_dl.isDownloading(widget.itemId)) {diff --git a/lib/widgets/audible_series_sheet.dart b/lib/widgets/audible_series_sheet.dartindex 126ecb02..a0d79502 100644--- a/lib/widgets/audible_series_sheet.dart+++ b/lib/widgets/audible_series_sheet.dart@@ -2,6 +2,7 @@ import 'dart:io';import 'package:flutter/material.dart';import 'package:cached_network_image/cached_network_image.dart';import 'package:url_launcher/url_launcher.dart';+import '../l10n/app_localizations.dart';import '../services/api_service.dart';import '../services/player_settings.dart';import 'overlay_toast.dart';@@ -76,14 +77,14 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {final books = await ApiService.discoverAudibleSeries(widget.seriesAsin, region: _region);if (!mounted) return;if (books.isEmpty) {- setState(() { _isLoading = false; _error = 'No books found on Audible'; });+ setState(() { _isLoading = false; _error = AppLocalizations.of(context)!.audibleSeriesNoBooksFound; });return;}setState(() { _allBooks = books; _isLoading = false; });} catch (e, st) {debugPrint('[AudibleSeries] discoverAudibleSeries error: $e\n$st');if (!mounted) return;- setState(() { _isLoading = false; _error = 'Failed to load series from Audible'; });+ setState(() { _isLoading = false; _error = AppLocalizations.of(context)!.audibleSeriesFailedToLoad; });}}@@ -158,6 +159,7 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final missingCount = _allBooks.where((b) => !_isOwned(b) && !_isUpcoming(b)).length;final upcomingCount = _allBooks.where((b) => _isUpcoming(b)).length;@@ -191,7 +193,9 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {const SizedBox(height: 4),if (!_isLoading && _error == null)Text(- '${_allBooks.length} on Audible · $missingCount missing${upcomingCount > 0 ? ' · $upcomingCount upcoming' : ''}',+ upcomingCount > 0+ ? l.audibleSeriesSummaryWithUpcoming(_allBooks.length, missingCount, upcomingCount)+ : l.audibleSeriesSummary(_allBooks.length, missingCount),style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant),),const SizedBox(height: 4),@@ -215,13 +219,13 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {Padding(padding: const EdgeInsets.symmetric(horizontal: 16),child: Row(children: [- _filterChip(cs, 'Missing ($missingCount)', _filter == 0, () => setState(() => _filter = 0)),+ _filterChip(cs, l.audibleSeriesFilterMissing(missingCount), _filter == 0, () => setState(() => _filter = 0)),const SizedBox(width: 8),if (upcomingCount > 0) ...[- _filterChip(cs, 'Upcoming ($upcomingCount)', _filter == 1, () => setState(() => _filter = 1)),+ _filterChip(cs, l.audibleSeriesFilterUpcoming(upcomingCount), _filter == 1, () => setState(() => _filter = 1)),const SizedBox(width: 8),],- _filterChip(cs, 'All (${_allBooks.length})', _filter == 2, () => setState(() => _filter = 2)),+ _filterChip(cs, l.audibleSeriesFilterAll(_allBooks.length), _filter == 2, () => setState(() => _filter = 2)),]),),const SizedBox(height: 8),@@ -232,7 +236,7 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {const SizedBox(height: 80),const Center(child: CircularProgressIndicator(strokeWidth: 2)),const SizedBox(height: 12),- Center(child: Text('Searching Audible...', style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.4)))),+ Center(child: Text(l.audibleSeriesSearching, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.4)))),]))else if (_error != null)Expanded(child: ListView(controller: widget.scrollController, children: [@@ -247,9 +251,9 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {size: 48, color: cs.primary.withValues(alpha: 0.5)),const SizedBox(height: 12),Center(child: Text(- _filter == 0 ? 'You have the complete series!'- : _filter == 1 ? 'No upcoming releases found'- : 'No books found',+ _filter == 0 ? l.audibleSeriesCompleteSeries+ : _filter == 1 ? l.audibleSeriesNoUpcoming+ : l.noBooksFound,style: tt.bodyLarge?.copyWith(color: cs.onSurfaceVariant))),]))else@@ -258,7 +262,7 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {controller: widget.scrollController,padding: EdgeInsets.fromLTRB(16, 0, 16, 24 + MediaQuery.of(context).viewPadding.bottom),itemCount: displayBooks.length,- itemBuilder: (context, index) => _buildBookCard(cs, tt, displayBooks[index]),+ itemBuilder: (context, index) => _buildBookCard(cs, tt, l, displayBooks[index]),),),],@@ -283,7 +287,7 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {);}- Widget _buildBookCard(ColorScheme cs, TextTheme tt, Map<String, dynamic> book) {+ Widget _buildBookCard(ColorScheme cs, TextTheme tt, AppLocalizations l, Map<String, dynamic> book) {final title = book['title'] as String? ?? '';final subtitle = book['subtitle'] as String? ?? '';final authors = book['authors'] as String? ?? '';@@ -342,7 +346,7 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {child: Container(padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 2),decoration: BoxDecoration(color: cs.primary.withValues(alpha: 0.9), borderRadius: BorderRadius.circular(6)),- child: const Text('UPCOMING', style: TextStyle(color: Colors.white, fontSize: 8, fontWeight: FontWeight.w700)),+ child: Text(l.audibleSeriesUpcomingBadge, style: const TextStyle(color: Colors.white, fontSize: 8, fontWeight: FontWeight.w700)),),),if (owned)@@ -378,7 +382,7 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {Text(authors, maxLines: 1, overflow: TextOverflow.ellipsis,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant, fontSize: 11)),if (narrators.isNotEmpty)- Text('Narrated by $narrators', maxLines: 1, overflow: TextOverflow.ellipsis,+ Text(l.narratedBy(narrators), maxLines: 1, overflow: TextOverflow.ellipsis,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.6), fontSize: 10)),const SizedBox(height: 4),Row(children: [@@ -402,7 +406,7 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {color: cs.error.withValues(alpha: 0.15),borderRadius: BorderRadius.circular(4),),- child: Text('Abridged', style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: cs.error)),+ child: Text(l.audibleSeriesAbridged, style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: cs.error)),),if (releaseDate.isNotEmpty || runtime.isNotEmpty)Padding(@@ -440,6 +444,7 @@ class _AudibleSeriesSheetState extends State<AudibleSeriesSheet> {Future<String?> showAudibleRegionPicker(BuildContext context, {required String currentRegion}) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return showModalBottomSheet<String>(context: context,backgroundColor: Theme.of(context).bottomSheetTheme.backgroundColor,@@ -455,7 +460,7 @@ Future<String?> showAudibleRegionPicker(BuildContext context, {required String cchild: Column(children: [Center(child: Container(width: 40, height: 4, margin: const EdgeInsets.only(bottom: 16),decoration: BoxDecoration(color: cs.onSurface.withValues(alpha: 0.24), borderRadius: BorderRadius.circular(2)))),- Text('Audible Region', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),+ Text(l.audibleSeriesRegionTitle, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),const SizedBox(height: 12),]),),@@ -494,6 +499,7 @@ void showAudibleBookMenu(BuildContext context, {}) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final title = book['title'] as String? ?? '';final asin = book['asin'] as String? ?? '';final releaseDate = book['releaseDate'] as String? ?? '';@@ -523,7 +529,7 @@ void showAudibleBookMenu(BuildContext context, {if (asin.isNotEmpty)ListTile(leading: Icon(Icons.open_in_new_rounded, color: cs.primary, size: 22),- title: const Text('Open on Audible', style: TextStyle(fontSize: 14, fontWeight: FontWeight.w500)),+ title: Text(l.audibleSeriesOpenOnAudible, style: const TextStyle(fontSize: 14, fontWeight: FontWeight.w500)),dense: true, visualDensity: VisualDensity.compact,onTap: () {Navigator.pop(ctx);@@ -533,7 +539,7 @@ void showAudibleBookMenu(BuildContext context, {if (releaseDate.isNotEmpty)ListTile(leading: Icon(Icons.calendar_month_rounded, color: cs.primary, size: 22),- title: const Text('Add to Calendar', style: TextStyle(fontSize: 14, fontWeight: FontWeight.w500)),+ title: Text(l.audibleSeriesAddToCalendar, style: const TextStyle(fontSize: 14, fontWeight: FontWeight.w500)),dense: true, visualDensity: VisualDensity.compact,onTap: () {Navigator.pop(ctx);@@ -570,16 +576,17 @@ Future<void> _openOnAudible(BuildContext context, String asin, String region) astry {await launchUrl(uri, mode: LaunchMode.externalApplication);} catch (e) {- if (context.mounted) showOverlayToast(context, 'Could not open Audible', icon: Icons.error_outline_rounded);+ if (context.mounted) showOverlayToast(context, AppLocalizations.of(context)!.audibleSeriesCouldNotOpenAudible, icon: Icons.error_outline_rounded);}}Future<void> _addToCalendar(BuildContext context, String title, String seriesName, String dateStr) async {final date = DateTime.tryParse(dateStr);if (date == null) return;+ final l = AppLocalizations.of(context)!;final eventTitle = '$title - $seriesName';- final description = 'New audiobook release in the $seriesName series';+ final description = l.audibleSeriesCalendarDescription(seriesName);if (Platform.isAndroid) {final begin = DateTime(date.year, date.month, date.day).millisecondsSinceEpoch;@@ -608,6 +615,6 @@ Future<void> _addToCalendar(BuildContext context, String title, String seriesNamtry {await launchUrl(uri, mode: LaunchMode.externalApplication);} catch (e) {- if (context.mounted) showOverlayToast(context, 'Could not open calendar', icon: Icons.error_outline_rounded);+ if (context.mounted) showOverlayToast(context, AppLocalizations.of(context)!.audibleSeriesCouldNotOpenCalendar, icon: Icons.error_outline_rounded);}}diff --git a/lib/widgets/author_books_sheet.dart b/lib/widgets/author_books_sheet.dartindex f8a0311a..98e2a452 100644--- a/lib/widgets/author_books_sheet.dart+++ b/lib/widgets/author_books_sheet.dart@@ -3,6 +3,7 @@ import 'package:flutter/services.dart';import 'package:cached_network_image/cached_network_image.dart';import 'overlay_toast.dart';import 'package:provider/provider.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';import '../services/audio_player_service.dart';@@ -123,6 +124,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final lib = context.read<LibraryProvider>();final headers = lib.mediaHeaders;@@ -130,7 +132,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {return Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- _buildHeader(cs, tt, headers),+ _buildHeader(cs, tt, headers, l),const Expanded(child: Center(child: CircularProgressIndicator())),],);@@ -138,13 +140,13 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {final bottomPad = 24 + MediaQuery.of(context).viewPadding.bottom;final hasDesc = _description != null && _description!.isNotEmpty;- final sections = _buildSections();+ final sections = _buildSections(l);// Header + description are always at the topfinal headerWidgets = <Widget>[- _buildHeader(cs, tt, headers),- if (hasDesc) _buildDescription(cs, tt),- if (_books.isNotEmpty) _buildViewModeBar(cs),+ _buildHeader(cs, tt, headers, l),+ if (hasDesc) _buildDescription(cs, tt, l),+ if (_books.isNotEmpty) _buildViewModeBar(cs, l),];if (_books.isEmpty) {@@ -156,7 +158,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {Center(child: Padding(padding: const EdgeInsets.only(top: 48),- child: Text('No books found',+ child: Text(l.noBooksFound,style: tt.bodyLarge?.copyWith(color: cs.onSurfaceVariant)),),),@@ -165,12 +167,12 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {}if (_layout == _AuthorLayout.list) {- return _buildListView(cs, tt, lib, sections, headerWidgets, bottomPad);+ return _buildListView(cs, tt, lib, sections, headerWidgets, bottomPad, l);}- return _buildGridView(cs, tt, lib, sections, headerWidgets, bottomPad);+ return _buildGridView(cs, tt, lib, sections, headerWidgets, bottomPad, l);}- List<_BookSection> _buildSections() {+ List<_BookSection> _buildSections(AppLocalizations l) {final seriesMap = <String, _BookSection>{};final standalones = <Map<String, dynamic>>[];@@ -237,7 +239,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {final allSections = <_BookSection>[...seriesSections];if (standalones.isNotEmpty) {- allSections.add(_BookSection(label: 'Standalone', books: standalones));+ allSections.add(_BookSection(label: l.standalone, books: standalones, isStandalone: true));}return allSections;}@@ -269,7 +271,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {return double.maxFinite;}- Widget _buildViewModeBar(ColorScheme cs) {+ Widget _buildViewModeBar(ColorScheme cs, AppLocalizations l) {Widget layoutBtn(IconData icon, _AuthorLayout mode, String tooltip) {final active = _layout == mode;return IconButton(@@ -289,7 +291,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {IconButton(icon: Icon(Icons.collections_bookmark_rounded, size: 20,color: _groupBySeries ? cs.primary : cs.onSurfaceVariant),- tooltip: 'Group by series',+ tooltip: l.authorBooksGroupBySeries,visualDensity: VisualDensity.compact,onPressed: () {setState(() => _groupBySeries = !_groupBySeries);@@ -297,8 +299,8 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {},),const Spacer(),- layoutBtn(Icons.view_list_rounded, _AuthorLayout.list, 'List'),- layoutBtn(Icons.apps_rounded, _AuthorLayout.grid, 'Grid'),+ layoutBtn(Icons.view_list_rounded, _AuthorLayout.list, l.authorBooksList),+ layoutBtn(Icons.apps_rounded, _AuthorLayout.grid, l.authorBooksGrid),],),);@@ -308,7 +310,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {List<dynamic> _buildCollapsedItems(List<_BookSection> sections) {final items = <dynamic>[];for (final section in sections) {- if (section.label == 'Standalone') {+ if (section.isStandalone) {items.addAll(section.books);} else {items.add(section); // collapsed series@@ -318,23 +320,23 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {}Widget _buildListView(ColorScheme cs, TextTheme tt, LibraryProvider lib,- List<_BookSection> sections, List<Widget> headerWidgets, double bottomPad) {+ List<_BookSection> sections, List<Widget> headerWidgets, double bottomPad, AppLocalizations l) {final items = <Widget>[...headerWidgets];if (_groupBySeries) {// Collapsed: series as tappable rows, standalones as book tilesfinal collapsed = _buildCollapsedItems(sections);for (final item in collapsed) {if (item is _BookSection) {- items.add(_collapsedSeriesTile(cs, tt, lib, item));+ items.add(_collapsedSeriesTile(cs, tt, lib, item, l));} else if (item is Map<String, dynamic>) {- items.add(_dismissibleBookTile(lib, cs, item, 'Standalone'));+ items.add(_dismissibleBookTile(lib, cs, item, l.standalone, l));}}} else {for (final section in sections) {items.add(_sectionDivider(cs, tt, section.label));for (final book in section.books) {- items.add(_dismissibleBookTile(lib, cs, book, section.label));+ items.add(_dismissibleBookTile(lib, cs, book, section.label, l));}}}@@ -347,7 +349,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {}Widget _buildGridView(ColorScheme cs, TextTheme tt, LibraryProvider lib,- List<_BookSection> sections, List<Widget> headerWidgets, double bottomPad) {+ List<_BookSection> sections, List<Widget> headerWidgets, double bottomPad, AppLocalizations l) {if (_groupBySeries) {// Collapsed: mix series tiles and standalone book tiles in a gridfinal collapsed = _buildCollapsedItems(sections);@@ -400,7 +402,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {);}- Widget _collapsedSeriesTile(ColorScheme cs, TextTheme tt, LibraryProvider lib, _BookSection section) {+ Widget _collapsedSeriesTile(ColorScheme cs, TextTheme tt, LibraryProvider lib, _BookSection section, AppLocalizations l) {final bookCount = section.books.length;final headers = lib.mediaHeaders;final coverUrls = section.books.take(3).map((b) {@@ -451,7 +453,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {children: [Text(section.label, style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600),maxLines: 1, overflow: TextOverflow.ellipsis),- Text('$bookCount ${bookCount == 1 ? 'book' : 'books'}',+ Text(l.authorBooksBookCount(bookCount),style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),],)),@@ -498,9 +500,9 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {);}- Widget _dismissibleBookTile(LibraryProvider lib, ColorScheme cs, Map<String, dynamic> book, String sectionLabel) {+ Widget _dismissibleBookTile(LibraryProvider lib, ColorScheme cs, Map<String, dynamic> book, String sectionLabel, AppLocalizations l) {final bookId = book['id'] as String? ?? '';- final bookTitle = (book['media'] as Map<String, dynamic>?)?['metadata']?['title'] as String? ?? 'Unknown';+ final bookTitle = (book['media'] as Map<String, dynamic>?)?['metadata']?['title'] as String? ?? l.unknown;final isOnAbsorbing = lib.isOnAbsorbingList(bookId);return Padding(padding: const EdgeInsets.symmetric(horizontal: 16),@@ -512,7 +514,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {lib.absorbingItemCache[bookId] = Map<String, dynamic>.from(book);HapticFeedback.mediumImpact();if (context.mounted) {- showOverlayToast(context, 'Added "$bookTitle" to Absorbing', icon: Icons.add_circle_outline_rounded);+ showOverlayToast(context, l.sectionDetailAddedToAbsorbing(bookTitle), icon: Icons.add_circle_outline_rounded);}return false;},@@ -536,7 +538,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {);}- Widget _buildHeader(ColorScheme cs, TextTheme tt, Map<String, String> headers) {+ Widget _buildHeader(ColorScheme cs, TextTheme tt, Map<String, String> headers, AppLocalizations l) {return Padding(padding: const EdgeInsets.fromLTRB(24, 0, 24, 12),child: Row(@@ -572,7 +574,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {Padding(padding: const EdgeInsets.only(top: 4),child: Text(- '${_books.length} ${_books.length == 1 ? 'book' : 'books'}',+ l.authorBooksBookCount(_books.length),style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant),),),@@ -584,7 +586,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {);}- Widget _buildDescription(ColorScheme cs, TextTheme tt) {+ Widget _buildDescription(ColorScheme cs, TextTheme tt, AppLocalizations l) {return Padding(padding: const EdgeInsets.fromLTRB(24, 0, 24, 12),child: GestureDetector(@@ -603,7 +605,7 @@ class _AuthorBooksSheetState extends State<AuthorBooksSheet> {),const SizedBox(height: 4),Text(- _descExpanded ? 'Show less' : 'Read more',+ _descExpanded ? l.showLess : l.readMore,style: tt.labelSmall?.copyWith(color: cs.primary,fontWeight: FontWeight.w500,@@ -627,5 +629,6 @@ class _BookSection {final String label;final String? seriesId;final List<Map<String, dynamic>> books;- _BookSection({required this.label, this.seriesId, required this.books});+ final bool isStandalone;+ _BookSection({required this.label, this.seriesId, required this.books, this.isStandalone = false});}diff --git a/lib/widgets/author_card.dart b/lib/widgets/author_card.dartindex 38a298c0..6590d95a 100644--- a/lib/widgets/author_card.dart+++ b/lib/widgets/author_card.dart@@ -1,6 +1,7 @@import 'package:flutter/material.dart';import 'package:provider/provider.dart';import 'package:cached_network_image/cached_network_image.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';import 'author_books_sheet.dart';@@ -14,10 +15,11 @@ class AuthorCard extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final auth = context.read<AuthProvider>();final lib = context.read<LibraryProvider>();- final name = author['name'] as String? ?? 'Unknown';+ final name = author['name'] as String? ?? l.unknown;final authorId = author['id'] as String? ?? '';String? imageUrl;diff --git a/lib/widgets/book_card.dart b/lib/widgets/book_card.dartindex 7d14b7dd..dc0da110 100644--- a/lib/widgets/book_card.dart+++ b/lib/widgets/book_card.dart@@ -2,6 +2,7 @@ import 'dart:io';import 'package:flutter/material.dart';import 'package:provider/provider.dart';import 'package:cached_network_image/cached_network_image.dart';+import '../l10n/app_localizations.dart';import '../providers/library_provider.dart';import '../services/audio_player_service.dart';import '../services/download_service.dart';@@ -27,13 +28,14 @@ class BookCard extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final lib = context.watch<LibraryProvider>();final itemId = item['id'] as String?;final media = item['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown Title';+ final title = metadata['title'] as String? ?? l.bookCardUnknownTitle;final authorName = metadata['authorName'] as String? ?? '';final coverUrl = lib.getCoverUrl(itemId);@@ -46,9 +48,9 @@ class BookCard extends StatelessWidget {final headers = lib.mediaHeaders;if (isWide) {- return _buildWideCard(context, cs, tt, title, authorName, coverUrl, progress, headers, isExplicit: isExplicit);+ return _buildWideCard(context, cs, tt, l, title, authorName, coverUrl, progress, headers, isExplicit: isExplicit);}- return _buildCompactCard(context, cs, tt, title, authorName, coverUrl, progress, headers, isFinished: isFinished, isDownloaded: isDownloaded, isExplicit: isExplicit);+ return _buildCompactCard(context, cs, tt, l, title, authorName, coverUrl, progress, headers, isFinished: isFinished, isDownloaded: isDownloaded, isExplicit: isExplicit);}void _navigateToDetail(BuildContext context) {@@ -73,6 +75,7 @@ class BookCard extends StatelessWidget {BuildContext context,ColorScheme cs,TextTheme tt,+ AppLocalizations l,String title,String authorName,String? coverUrl,@@ -106,7 +109,7 @@ class BookCard extends StatelessWidget {color: Colors.red.withValues(alpha: 0.85),borderRadius: BorderRadius.circular(4),),- child: const Text('E', style: TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w800)),+ child: Text(l.bookCardExplicitBadge, style: const TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w800)),),),if (DownloadService().isDownloaded(item['id'] as String? ?? ''))@@ -194,6 +197,7 @@ class BookCard extends StatelessWidget {BuildContext context,ColorScheme cs,TextTheme tt,+ AppLocalizations l,String title,String authorName,String? coverUrl,@@ -251,7 +255,7 @@ class BookCard extends StatelessWidget {color: Colors.red.withValues(alpha: 0.85),borderRadius: BorderRadius.circular(4),),- child: const Text('E', style: TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w800)),+ child: Text(l.bookCardExplicitBadge, style: const TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w800)),),),if (isFinished || isDownloaded)@@ -280,7 +284,7 @@ class BookCard extends StatelessWidget {Icon(Icons.check_circle_rounded,size: 10, color: Theme.of(context).brightness == Brightness.dark ? Colors.greenAccent[400] : Colors.green.shade700),const SizedBox(width: 3),- Text('Done',+ Text(l.bookCardDone,style: TextStyle(fontSize: 9,fontWeight: FontWeight.w600,@@ -292,7 +296,7 @@ class BookCard extends StatelessWidget {Icon(Icons.download_done_rounded,size: 10, color: cs.primary),const SizedBox(width: 3),- Text('Saved',+ Text(l.bookCardSaved,style: TextStyle(fontSize: 9,fontWeight: FontWeight.w600,diff --git a/lib/widgets/book_detail_sheet.dart b/lib/widgets/book_detail_sheet.dartindex d4992061..da16c980 100644--- a/lib/widgets/book_detail_sheet.dart+++ b/lib/widgets/book_detail_sheet.dart@@ -15,6 +15,7 @@ import 'package:http/http.dart' as http;import 'package:share_plus/share_plus.dart';import 'package:url_launcher/url_launcher.dart';import 'package:webview_flutter/webview_flutter.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';import '../services/audio_player_service.dart';@@ -269,6 +270,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {@override Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Container(clipBehavior: Clip.antiAlias,decoration: BoxDecoration(color: Theme.of(context).scaffoldBackgroundColor, borderRadius: const BorderRadius.vertical(top: Radius.circular(24))),@@ -304,22 +306,22 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {physics: const AlwaysScrollableScrollPhysics(),child: SizedBox(height: MediaQuery.of(context).size.height * 0.85,- child: Center(child: Text('Failed to load', style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant))),+ child: Center(child: Text(l.failedToLoad, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant))),),): AnimatedOpacity(opacity: 1.0, duration: const Duration(milliseconds: 300),- child: _buildContent(context, cs, tt)),+ child: _buildContent(context, cs, tt, l)),]),);}- Widget _buildContent(BuildContext context, ColorScheme cs, TextTheme tt) {+ Widget _buildContent(BuildContext context, ColorScheme cs, TextTheme tt, AppLocalizations l) {final accent = _coverScheme?.primary ?? cs.primary;final media = _item!['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};final chapters = media['chapters'] as List<dynamic>? ?? [];- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? l.unknown;final authorName = metadata['authorName'] as String? ?? '';final narrator = metadata['narratorName'] as String? ?? '';final descRaw = metadata['description'] as String? ?? '';@@ -389,7 +391,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {const SizedBox(height: 4),_buildAuthorLinks(context, metadata, cs, tt, accent),if (narrator.isNotEmpty) ...[const SizedBox(height: 2),- Text('Narrated by $narrator', textAlign: TextAlign.center, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant))],+ Text(l.narratedBy(narrator), textAlign: TextAlign.center, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant))],// ─── AUDIBLE RATING (space always reserved) ─────────const SizedBox(height: 8),if (_rating != null && (_rating!['rating'] as num).toDouble() > 0)@@ -409,7 +411,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {Text((_rating!['rating'] as num).toStringAsFixed(1),style: TextStyle(fontSize: 11, fontWeight: FontWeight.w600, color: cs.onSurfaceVariant)),const SizedBox(width: 4),- Text('on Audible', style: TextStyle(fontSize: 11, color: cs.onSurfaceVariant)),+ Text(l.onAudible, style: TextStyle(fontSize: 11, color: cs.onSurfaceVariant)),]),),),@@ -422,7 +424,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {child: LinearProgressIndicator(value: progress.clamp(0.0, 1.0), minHeight: 4,backgroundColor: cs.onSurface.withValues(alpha: 0.1), valueColor: AlwaysStoppedAnimation(accent))),const SizedBox(height: 4),- Text('${(progress * 100).toStringAsFixed(1)}% complete', textAlign: TextAlign.center,+ Text(l.percentComplete((progress * 100).toStringAsFixed(1)), textAlign: TextAlign.center,style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),const SizedBox(height: 12),],@@ -430,7 +432,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {SizedBox(height: 52, child: FilledButton.icon(onPressed: null,icon: const Icon(Icons.menu_book_rounded, size: 24),- label: Text('eBook Only — No Audio',+ label: Text(l.ebookOnlyNoAudio,style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),style: FilledButton.styleFrom(shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16))),))@@ -474,10 +476,10 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {: Icon(Icons.waves_rounded, size: 24, color: _coverScheme?.onPrimary ?? cs.onPrimary),label: Text(showAbsorbingState- ? 'Absorbing…'+ ? l.absorbing: isFinished- ? 'Absorb Again'- : 'Absorb',+ ? l.absorbAgain+ : l.absorb,style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600, color: _coverScheme?.onPrimary ?? cs.onPrimary),),@@ -515,7 +517,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {),const SizedBox(width: 6),Text(- isFinished ? 'Fully Absorbed' : 'Fully Absorb',+ isFinished ? l.fullyAbsorbed : l.fullyAbsorbAction,style: TextStyle(color: isFinished ? Colors.green : cs.onSurfaceVariant,fontSize: 12, fontWeight: FontWeight.w500,@@ -543,14 +545,14 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {Wrap(spacing: 8, runSpacing: 8, children: [if (year.isNotEmpty) _chip(Icons.calendar_today_rounded, year),_chip(Icons.schedule_rounded, _fmtDur(duration)),- if (chapters.isNotEmpty) _chip(Icons.list_rounded, '${chapters.length} chapters'),+ if (chapters.isNotEmpty) _chip(Icons.list_rounded, l.chaptersChip(chapters.length)),..._audioInfoChips(media),if (publisher.isNotEmpty) _chip(Icons.business_rounded, publisher),...genres.take(3).map((g) => _chip(Icons.tag_rounded, g)),if (progressData?['startedAt'] is num)- _chip(Icons.play_circle_outline_rounded, 'Started ${_fmtDate((progressData!['startedAt'] as num).toInt())}'),+ _chip(Icons.play_circle_outline_rounded, l.startedDate(_fmtDate((progressData!['startedAt'] as num).toInt()))),if (progressData?['finishedAt'] is num)- _chip(Icons.check_circle_outline_rounded, 'Finished ${_fmtDate((progressData!['finishedAt'] as num).toInt())}'),+ _chip(Icons.check_circle_outline_rounded, l.finishedDate(_fmtDate((progressData!['finishedAt'] as num).toInt()))),]),if (seriesEntries.isNotEmpty) ...[const SizedBox(height: 16),...seriesEntries.map((s) {@@ -578,7 +580,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {));})],if (descRaw.isNotEmpty) ...[const SizedBox(height: 16),- Text('About', style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),+ Text(l.aboutSection, style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),const SizedBox(height: 6),HtmlDescription(html: descRaw,@@ -589,7 +591,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {if (chapters.isNotEmpty) ...[const SizedBox(height: 16),GestureDetector(onTap: () => setState(() => _chaptersExpanded = !_chaptersExpanded),child: Row(children: [- Text('Chapters (${chapters.length})', style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),+ Text(l.chaptersCount(chapters.length), style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),const Spacer(), Icon(_chaptersExpanded ? Icons.expand_less : Icons.expand_more, color: cs.onSurface.withValues(alpha: 0.3), size: 20)])),if (_chaptersExpanded) ...[const SizedBox(height: 8),...chapters.asMap().entries.map((e) {@@ -597,14 +599,14 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {return Padding(padding: const EdgeInsets.symmetric(vertical: 3),child: Row(children: [SizedBox(width: 28, child: Text('${e.key + 1}', style: tt.labelSmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.3)))),- Expanded(child: Text(ch['title'] as String? ?? 'Chapter ${e.key + 1}', maxLines: 1, overflow: TextOverflow.ellipsis, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.6)))),+ Expanded(child: Text(ch['title'] as String? ?? l.chapterNumber(e.key + 1), maxLines: 1, overflow: TextOverflow.ellipsis, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.6)))),Text(_fmtDur(((ch['end'] as num?)?.toDouble() ?? 0) - ((ch['start'] as num?)?.toDouble() ?? 0)), style: tt.labelSmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.3))),]));})]],if (_bookmarks.isNotEmpty) ...[const SizedBox(height: 16),GestureDetector(onTap: () => setState(() => _bookmarksExpanded = !_bookmarksExpanded),child: Row(children: [- Text('Bookmarks (${_bookmarks.length})', style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),+ Text(l.bookmarksWithCount(_bookmarks.length), style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),const Spacer(), Icon(_bookmarksExpanded ? Icons.expand_less : Icons.expand_more, color: cs.onSurface.withValues(alpha: 0.3), size: 20)])),if (_bookmarksExpanded) ...[const SizedBox(height: 8),..._bookmarks.map((bm) {@@ -626,6 +628,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {String title, String authorName, double progress, bool isFinished,double duration, Map<String, dynamic>? ebookFile, bool isEbookOnly, String serverPath) {final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;showModalBottomSheet(context: context,backgroundColor: Theme.of(context).bottomSheetTheme.backgroundColor,@@ -641,14 +644,14 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {decoration: BoxDecoration(color: cs.onSurface.withValues(alpha: 0.24), borderRadius: BorderRadius.circular(2)))),_moreItem(cs, lib.isOnAbsorbingList(widget.itemId)? Icons.remove_circle_outline_rounded : Icons.add_circle_outline_rounded,- lib.isOnAbsorbingList(widget.itemId) ? 'Remove from Absorbing' : 'Add to Absorbing',+ lib.isOnAbsorbingList(widget.itemId) ? l.removeFromAbsorbing : l.addToAbsorbing,onTap: () async {Navigator.pop(ctx);if (lib.isOnAbsorbingList(widget.itemId)) {await lib.removeFromAbsorbing(widget.itemId);HapticFeedback.mediumImpact();if (context.mounted) {- showOverlayToast(context, 'Removed from Absorbing', icon: Icons.remove_circle_outline_rounded);+ showOverlayToast(context, l.removedFromAbsorbing, icon: Icons.remove_circle_outline_rounded);}} else {await lib.addToAbsorbingQueue(widget.itemId);@@ -659,42 +662,42 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {}HapticFeedback.mediumImpact();if (context.mounted) {- showOverlayToast(context, 'Added to Absorbing', icon: Icons.add_circle_outline_rounded);+ showOverlayToast(context, l.addedToAbsorbing, icon: Icons.add_circle_outline_rounded);}}}),if (!lib.isOffline)- _moreItem(cs, Icons.playlist_add_rounded, 'Add to Playlist',+ _moreItem(cs, Icons.playlist_add_rounded, l.addToPlaylist,onTap: () {Navigator.pop(ctx);PlaylistPickerSheet.show(context, widget.itemId);}),if (!lib.isOffline && !lib.isPodcastLibrary && auth.isRoot)- _moreItem(cs, Icons.collections_bookmark_rounded, 'Add to Collection',+ _moreItem(cs, Icons.collections_bookmark_rounded, l.addToCollection,onTap: () {Navigator.pop(ctx);CollectionPickerSheet.show(context, widget.itemId);}),if (ebookFile != null)_moreItem(cs, _ebookSaved ? Icons.download_done_rounded : Icons.save_alt_rounded,- _ebookSaved ? 'Download eBook Again' : 'Download eBook',+ _ebookSaved ? l.downloadEbookAgain : l.downloadEbook,onTap: () { Navigator.pop(ctx); _saveEbook(context, auth, ebookFile, title); }),if (progress > 0 || isFinished)- _moreItem(cs, Icons.restart_alt_rounded, 'Reset Progress',+ _moreItem(cs, Icons.restart_alt_rounded, l.resetProgress,onTap: () { Navigator.pop(ctx); _resetProgress(context, auth, duration); }),if (auth.apiService != null && !lib.isOffline)_moreItem(cs, Icons.manage_search_rounded,- _hasLocalOverride ? 'Re-Lookup Local Metadata' : 'Lookup Local Metadata',+ _hasLocalOverride ? l.reLookupLocalMetadata : l.lookupLocalMetadata,onTap: () { Navigator.pop(ctx); _openMetadataLookup(context, auth, title, authorName); }),if (_hasLocalOverride)- _moreItem(cs, Icons.layers_clear_rounded, 'Clear Local Metadata',+ _moreItem(cs, Icons.layers_clear_rounded, l.clearLocalMetadata,onTap: () { Navigator.pop(ctx); _clearOverride(context); }),if (_showGoodreads)- _moreItem(cs, Icons.local_library_rounded, 'Search on Goodreads',+ _moreItem(cs, Icons.local_library_rounded, l.searchOnGoodreads,onTap: () { Navigator.pop(ctx); _openGoodreads(title, authorName); }),if (auth.isRoot && !lib.isOffline)- _moreItem(cs, Icons.edit_rounded, 'Edit Server Details',+ _moreItem(cs, Icons.edit_rounded, l.editServerDetails,onTap: () {Navigator.pop(ctx);final media = _item!['media'] as Map<String, dynamic>? ?? {};@@ -746,9 +749,10 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {totalSize += (meta?['size'] as num?)?.toInt() ?? 0;}}+ final l = AppLocalizations.of(context)!;return [if (codec != null && codec.isNotEmpty) _chip(Icons.audio_file_rounded, codec),- if (bitRate != null && bitRate > 0) _chip(Icons.speed_rounded, '${(bitRate / 1000).round()} kbps'),+ if (bitRate != null && bitRate > 0) _chip(Icons.speed_rounded, l.kbpsValue((bitRate / 1000).round())),if (totalSize > 0) _chip(Icons.storage_rounded, _fmtSize(totalSize)),];}@@ -929,7 +933,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {if (!showAll)GestureDetector(onTap: () => setState(() => _authorsExpanded = true),- child: Text('and $remaining more', style: tt.bodyMedium?.copyWith(+ child: Text(AppLocalizations.of(context)!.andCountMore(remaining), style: tt.bodyMedium?.copyWith(color: accent.withValues(alpha: 0.7),)),),@@ -956,6 +960,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {Future<void> _saveEbook(BuildContext context, AuthProvider auth, Map<String, dynamic> ebookFile, String bookTitle) async {if (_ebookSaving) return;setState(() => _ebookSaving = true);+ final l = AppLocalizations.of(context)!;try {final api = auth.apiService;@@ -965,7 +970,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {if (ino == null) {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(- const SnackBar(content: Text('No ebook file found')));+ SnackBar(content: Text(l.noEbookFileFound)));}return;}@@ -1008,7 +1013,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {if (response.statusCode != 200) {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(- SnackBar(content: Text('Failed to download ebook (${response.statusCode})')));+ SnackBar(content: Text(l.failedToDownloadEbook(response.statusCode))));}return;}@@ -1020,7 +1025,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {debugPrint('[Ebook] Server returned HTML instead of ebook file (content-type: $ct)');if (mounted) {ScaffoldMessenger.of(context).showSnackBar(- const SnackBar(content: Text('Server returned an error page instead of the ebook file')));+ SnackBar(content: Text(l.serverReturnedErrorPage)));}return;}@@ -1040,7 +1045,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {// Open system save dialog so user can choose the locationfinal savedPath = await FilePicker.platform.saveFile(- dialogTitle: 'Save eBook',+ dialogTitle: l.saveEbook,fileName: '$safeTitle$ext',bytes: Uint8List.fromList(bytes),);@@ -1057,7 +1062,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {if (mounted) {ScaffoldMessenger.of(context).showSnackBar(- SnackBar(content: Text('Saved: $safeTitle$ext'),+ SnackBar(content: Text(l.ebookSaved('$safeTitle$ext')),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),duration: const Duration(seconds: 3)));@@ -1066,7 +1071,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {debugPrint('[Ebook] Save error: $e');if (mounted) {ScaffoldMessenger.of(context).showSnackBar(- SnackBar(content: Text('Error saving ebook: $e')));+ SnackBar(content: Text(l.errorSavingEbook(e.toString()))));}} finally {if (mounted) setState(() => _ebookSaving = false);@@ -1118,14 +1123,15 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {}Future<void> _markFinished(BuildContext context, AuthProvider auth, double duration) async {+ final l = AppLocalizations.of(context)!;final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Mark as Fully Absorbed?'),- content: const Text('This will set your progress to 100% and stop playback if this book is playing.'),+ title: Text(l.markAsFullyAbsorbedQuestion),+ content: Text(l.markAsFullyAbsorbedContent),actions: [- TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(ctx, true), child: const Text('Fully Absorb')),+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.fullyAbsorbAction)),],),);@@ -1149,25 +1155,26 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {await lib.removeFromAbsorbing(widget.itemId);if (mounted) setState(() {});if (context.mounted) {- showOverlayToast(context, 'Marked as finished - nice work!', icon: Icons.check_circle_rounded);+ showOverlayToast(context, l.markedAsFinishedNiceWork, icon: Icons.check_circle_rounded);}}} catch (_) {if (context.mounted) {- showOverlayToast(context, 'Failed to update - check your connection', icon: Icons.error_outline_rounded);+ showOverlayToast(context, l.failedToUpdateCheckConnection, icon: Icons.error_outline_rounded);}}}Future<void> _markNotFinished(BuildContext context, AuthProvider auth, double currentTime, double duration) async {+ final l = AppLocalizations.of(context)!;final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Mark as Not Finished?'),- content: const Text('This will clear the finished status but keep your current position.'),+ title: Text(l.markAsNotFinishedQuestion),+ content: Text(l.markAsNotFinishedContent),actions: [- TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(ctx, true), child: const Text('Unmark')),+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.unmark)),],),);@@ -1184,26 +1191,27 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {await _loadItem();await lib.refresh();if (mounted) setState(() {});- showOverlayToast(context, 'Marked as not finished - back at it!', icon: Icons.replay_rounded);+ showOverlayToast(context, l.markedAsNotFinishedBackAtIt, icon: Icons.replay_rounded);}} catch (_) {if (context.mounted) {- showOverlayToast(context, 'Failed to update - check your connection', icon: Icons.error_outline_rounded);+ showOverlayToast(context, l.failedToUpdateCheckConnection, icon: Icons.error_outline_rounded);}}}Future<void> _resetProgress(BuildContext context, AuthProvider auth, double duration) async {+ final l = AppLocalizations.of(context)!;final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Reset Progress?'),- content: const Text('This will erase all progress for this book and set it back to the beginning. This can\'t be undone.'),+ title: Text(l.resetProgressQuestion),+ content: Text(l.resetProgressContent),actions: [- TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),FilledButton(onPressed: () => Navigator.pop(ctx, true),style: FilledButton.styleFrom(backgroundColor: Theme.of(ctx).colorScheme.error),- child: const Text('Reset')),+ child: Text(l.reset)),],),);@@ -1230,7 +1238,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {await context.read<LibraryProvider>().refresh();showOverlayToast(context,- serverSuccess ? 'Progress reset - fresh start!' : 'Reset may not have synced - check your server',+ serverSuccess ? l.progressResetFreshStart : l.resetMayNotHaveSynced,icon: serverSuccess ? Icons.restart_alt_rounded : Icons.warning_amber_rounded,);}@@ -1279,19 +1287,19 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {}Future<void> _clearOverride(BuildContext context) async {+ final l = AppLocalizations.of(context)!;final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Clear Local Metadata?'),- content: const Text(- 'This will remove the locally stored metadata and revert to whatever the server has.'),+ title: Text(l.clearLocalMetadataQuestion),+ content: Text(l.clearLocalMetadataContent),actions: [TextButton(onPressed: () => Navigator.pop(ctx, false),- child: const Text('Cancel')),+ child: Text(l.cancel)),FilledButton(onPressed: () => Navigator.pop(ctx, true),- child: const Text('Clear')),+ child: Text(l.clear)),],),);@@ -1302,7 +1310,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {await _loadItem();if (context.mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: const Text('Local metadata cleared'),+ content: Text(l.localMetadataCleared),behavior: SnackBarBehavior.floating,duration: const Duration(seconds: 2),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -1351,8 +1359,9 @@ class _FullCoverViewerState extends State<_FullCoverViewer> {await Share.shareXFiles([XFile(file.path)], sharePositionOrigin: origin);} catch (e) {if (mounted) {+ final l = AppLocalizations.of(context)!;ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: Text('Failed to save: $e'),+ content: Text(l.failedToSaveError(e.toString())),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));diff --git a/lib/widgets/card_button_config.dart b/lib/widgets/card_button_config.dartindex d55d3bfd..937833c1 100644--- a/lib/widgets/card_button_config.dart+++ b/lib/widgets/card_button_config.dart@@ -1,5 +1,6 @@import 'dart:io';import 'package:flutter/material.dart';+import '../l10n/app_localizations.dart';class CardButtonDef {final String id;@@ -8,6 +9,38 @@ class CardButtonDef {const CardButtonDef(this.id, this.label, this.icon);}+/// Localized label for a card button id. Falls back to the English label+/// stored on the [CardButtonDef] if no mapping exists.+String localizedCardButtonLabel(AppLocalizations l, CardButtonDef def) {+ switch (def.id) {+ case 'chapters':+ return l.chapters;+ case 'speed':+ return l.speed;+ case 'sleep':+ return l.timer;+ case 'bookmarks':+ return l.bookmarks;+ case 'details':+ return l.bookDetailsLabel;+ case 'equalizer':+ return l.equalizerLabel;+ case 'cast':+ return l.castToDevice;+ case 'history':+ return l.playbackHistory;+ case 'remove':+ return l.removeFromAbsorbing;+ case 'car':+ return l.carModeTitle;+ case 'notes':+ return l.notes;+ case 'download':+ return l.download;+ }+ return def.label;+}+/// Button IDs that are hidden on iOS (features not yet supported).final Set<String> _iosHiddenButtons = Platform.isIOS ? const {'cast'} : const {};diff --git a/lib/widgets/card_buttons.dart b/lib/widgets/card_buttons.dartindex 3eaa26da..66ec0140 100644--- a/lib/widgets/card_buttons.dart+++ b/lib/widgets/card_buttons.dart@@ -1,6 +1,7 @@import 'package:flutter/material.dart';import 'package:flutter/services.dart';import 'package:provider/provider.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';import '../screens/app_shell.dart';@@ -62,11 +63,12 @@ class _PressableState extends State<Pressable> {/// Show a toast when the user taps a button that requires active playback.void showInactiveToast(BuildContext context) {+ final l = AppLocalizations.of(context)!;ScaffoldMessenger.of(context)..clearSnackBars()- ..showSnackBar(const SnackBar(- content: Text('Start playing something first'),- duration: Duration(seconds: 2),+ ..showSnackBar(SnackBar(+ content: Text(l.startPlayingSomethingFirst),+ duration: const Duration(seconds: 2),behavior: SnackBarBehavior.floating,));}@@ -192,6 +194,7 @@ class CardSleepButtonInline extends StatelessWidget {listenable: SleepTimerService(),builder: (_, __) {final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;final sleep = SleepTimerService();// Only show timer state on the card that's actually playingfinal active = isActive && sleep.isActive;@@ -204,9 +207,9 @@ class CardSleepButtonInline extends StatelessWidget {final s = r.inSeconds % 60;label = '${m.toString().padLeft(2, '0')}:${s.toString().padLeft(2, '0')}';} else if (active) {- label = '${sleep.chaptersRemaining} ch left';+ label = l.chaptersLeftCount(sleep.chaptersRemaining);} else {- label = 'Timer';+ label = l.timer;}final h = compact ? 30.0 : (large ? 48.0 : 36.0);@@ -279,6 +282,7 @@ class CardDownloadButtonInline extends StatelessWidget {listenable: DownloadService(),builder: (_, __) {final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;final dl = DownloadService();final downloading = dl.isDownloading(itemId);final downloaded = dl.isDownloaded(itemId);@@ -292,7 +296,7 @@ class CardDownloadButtonInline extends StatelessWidget {final Color color;if (downloaded) {icon = Icons.download_done_rounded;- label = 'Saved';+ label = l.saved;color = dlGreen;} else if (downloading) {icon = Icons.downloading_rounded;@@ -300,7 +304,7 @@ class CardDownloadButtonInline extends StatelessWidget {color = accent;} else {icon = Icons.download_outlined;- label = 'Download';+ label = l.download;color = cs.onSurfaceVariant;}@@ -351,17 +355,18 @@ class CardDownloadButtonInline extends StatelessWidget {}void _handleTap(BuildContext context, DownloadService dl) async {+ final l = AppLocalizations.of(context)!;if (dl.isDownloaded(itemId)) {showDialog(context: context, builder: (ctx) => AlertDialog(- title: const Text('Remove download?'),- content: const Text('This will be removed from your device.'),+ title: Text(l.removeDownloadQuestion),+ content: Text(l.removeDownloadContent),actions: [- TextButton(onPressed: () => Navigator.pop(ctx), child: const Text('Cancel')),+ TextButton(onPressed: () => Navigator.pop(ctx), child: Text(l.cancel)),TextButton(onPressed: () {dl.deleteDownload(itemId);Navigator.pop(ctx);- showOverlayToast(context, 'Download removed', icon: Icons.delete_outline_rounded);- }, child: const Text('Remove', style: TextStyle(color: Colors.redAccent))),+ showOverlayToast(context, l.downloadRemoved, icon: Icons.delete_outline_rounded);+ }, child: Text(l.remove, style: const TextStyle(color: Colors.redAccent))),],));} else if (dl.isDownloading(itemId)) {@@ -414,6 +419,7 @@ class _CardBookmarkButtonInlineState extends State<CardBookmarkButtonInline> {@override Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;final cp = widget.compact;final lg = widget.large;final active = widget.isActive || _isCasting;@@ -422,7 +428,7 @@ class _CardBookmarkButtonInlineState extends State<CardBookmarkButtonInline> {final vPad = cp ? 6.0 : (lg ? 12.0 : 8.0);final radius = cp ? 10.0 : (lg ? 14.0 : 12.0);final sh = widget.short;- final label = cp ? (_count > 0 ? '$_count' : 'Bookmark') : sh ? 'Bookmarks' : (_count > 0 ? 'Bookmarks ($_count)' : 'Bookmark');+ final label = cp ? (_count > 0 ? '$_count' : l.bookmark) : sh ? l.bookmarks : (_count > 0 ? l.bookmarksWithCount(_count) : l.bookmark);return Pressable(onTap: () => _showBookmarks(context),onLongPress: active ? () => _quickAdd(context) : null,@@ -454,6 +460,7 @@ class _CardBookmarkButtonInlineState extends State<CardBookmarkButtonInline> {}void _quickAdd(BuildContext ctx) async {+ final l = AppLocalizations.of(ctx)!;final cast = ChromecastService();final pos = _isCasting? cast.castPosition.inMilliseconds / 1000.0@@ -466,10 +473,10 @@ class _CardBookmarkButtonInlineState extends State<CardBookmarkButtonInline> {final e = (m['end'] as num?)?.toDouble() ?? 0;if (pos >= s && pos < e) { chTitle = m['title'] as String?; break; }}- await BookmarkService().addBookmark(itemId: widget.itemId, positionSeconds: pos, title: chTitle ?? 'Bookmark', api: AudioPlayerService().currentApi);+ await BookmarkService().addBookmark(itemId: widget.itemId, positionSeconds: pos, title: chTitle ?? l.bookmark, api: AudioPlayerService().currentApi);_loadCount();if (ctx.mounted) {- ScaffoldMessenger.of(ctx).showSnackBar(SnackBar(duration: const Duration(seconds: 2), content: const Text('Bookmark added'), behavior: SnackBarBehavior.floating,+ ScaffoldMessenger.of(ctx).showSnackBar(SnackBar(duration: const Duration(seconds: 2), content: Text(l.bookmarkAdded), behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))));}}@@ -615,6 +622,7 @@ class _CardSpeedSheetState extends State<CardSpeedSheet> {@override Widget build(BuildContext context) {final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final navBarPad = MediaQuery.of(context).viewPadding.bottom;return Container(padding: EdgeInsets.fromLTRB(24, 16, 24, 24 + navBarPad),@@ -623,7 +631,7 @@ class _CardSpeedSheetState extends State<CardSpeedSheet> {child: Column(mainAxisSize: MainAxisSize.min, children: [Container(width: 40, height: 4, decoration: BoxDecoration(color: Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.24), borderRadius: BorderRadius.circular(2))),const SizedBox(height: 20),- Text('Playback Speed', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),+ Text(l.playbackSpeed, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),const SizedBox(height: 4),Text('${_speed.toStringAsFixed(2)}x', style: tt.headlineMedium?.copyWith(fontWeight: FontWeight.w700, color: widget.accent)),const SizedBox(height: 16),@@ -699,6 +707,7 @@ class _SimpleBookmarkSheetState extends State<SimpleBookmarkSheet> {@override Widget build(BuildContext context) {final tt = Theme.of(context).textTheme;final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;return Container(decoration: BoxDecoration(color: Theme.of(context).bottomSheetTheme.backgroundColor,@@ -719,9 +728,9 @@ class _SimpleBookmarkSheetState extends State<SimpleBookmarkSheet> {_load();},child: Tooltip(- message: _sort == 'newest' ? 'Sorted by newest'- : _sort == 'position' ? 'Sorted by position'- : 'Sorted by position (reversed)',+ message: _sort == 'newest' ? l.bookmarksSortedByNewest+ : _sort == 'position' ? l.bookmarksSortedByPosition+ : l.bookmarksSortedByPositionReversed,child: Container(width: 36, height: 36,decoration: BoxDecoration(color: cs.onSurface.withValues(alpha: 0.06), borderRadius: BorderRadius.circular(10)),@@ -735,7 +744,7 @@ class _SimpleBookmarkSheetState extends State<SimpleBookmarkSheet> {),),const Spacer(),- Text('Bookmarks', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),+ Text(l.bookmarks, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),const Spacer(),GestureDetector(onTap: () => _addBookmark(), child: Container(width: 36, height: 36,@@ -750,9 +759,9 @@ class _SimpleBookmarkSheetState extends State<SimpleBookmarkSheet> {? Center(child: Column(mainAxisSize: MainAxisSize.min, children: [Icon(Icons.bookmark_outline_rounded, size: 48, color: cs.onSurface.withValues(alpha: 0.1)),const SizedBox(height: 12),- Text('No bookmarks yet', style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),+ Text(l.noBookmarksYet, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),const SizedBox(height: 4),- Text('Long-press the bookmark button to quick save', style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.24), fontSize: 11)),+ Text(l.longPressBookmarkHint, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.24), fontSize: 11)),])): ListView.builder(controller: widget.scrollController, padding: const EdgeInsets.only(bottom: 24), itemCount: _bookmarks!.length,@@ -762,11 +771,11 @@ class _SimpleBookmarkSheetState extends State<SimpleBookmarkSheet> {return InkWell(onTap: () async {final confirmed = await showDialog<bool>(context: ctx, builder: (dlg) => AlertDialog(- title: const Text('Jump to bookmark?'),- content: Text('"${bm.title}" at ${bm.formattedPosition}'),+ title: Text(l.bookmarksJumpTitle),+ content: Text(l.bookmarksJumpShortContent(bm.title, bm.formattedPosition)),actions: [- TextButton(onPressed: () => Navigator.pop(dlg, false), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(dlg, true), child: const Text('Jump')),+ TextButton(onPressed: () => Navigator.pop(dlg, false), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(dlg, true), child: Text(l.bookmarksJump)),],));if (confirmed != true || !ctx.mounted) return;@@ -816,11 +825,11 @@ class _SimpleBookmarkSheetState extends State<SimpleBookmarkSheet> {GestureDetector(onTap: () async {final confirmed = await showDialog<bool>(context: context, builder: (dlg) => AlertDialog(- title: const Text('Delete bookmark?'),- content: Text('"${bm.title}" at ${bm.formattedPosition}'),+ title: Text(l.deleteBookmarkQuestion),+ content: Text(l.bookmarksJumpShortContent(bm.title, bm.formattedPosition)),actions: [- TextButton(onPressed: () => Navigator.pop(dlg, false), child: const Text('Cancel')),- TextButton(onPressed: () => Navigator.pop(dlg, true), child: Text('Delete', style: TextStyle(color: Colors.red.shade300))),+ TextButton(onPressed: () => Navigator.pop(dlg, false), child: Text(l.cancel)),+ TextButton(onPressed: () => Navigator.pop(dlg, true), child: Text(l.delete, style: TextStyle(color: Colors.red.shade300))),],));if (confirmed != true) return;@@ -869,6 +878,7 @@ class _SimpleBookmarkSheetState extends State<SimpleBookmarkSheet> {}Future<void> _addBookmark() async {+ final l = AppLocalizations.of(context)!;final cast = ChromecastService();final pos = _isCasting? cast.castPosition.inMilliseconds / 1000.0@@ -878,7 +888,7 @@ class _SimpleBookmarkSheetState extends State<SimpleBookmarkSheet> {// Find current chapter name for default titlefinal chapters = _isCasting ? cast.castingChapters : widget.player.chapters;- String defaultTitle = 'Bookmark at $posStr';+ String defaultTitle = l.bookmarkAtPosition(posStr);for (final ch in chapters) {final cm = ch as Map<String, dynamic>;final cs = (cm['start'] as num?)?.toDouble() ?? 0;@@ -889,15 +899,15 @@ class _SimpleBookmarkSheetState extends State<SimpleBookmarkSheet> {final titleC = TextEditingController(text: defaultTitle);final noteC = TextEditingController();final result = await showDialog<Map<String, String>>(context: context, builder: (ctx) => AlertDialog(- title: const Text('Add Bookmark'),+ title: Text(l.addBookmark),content: Column(mainAxisSize: MainAxisSize.min, children: [- TextField(controller: titleC, autofocus: true, decoration: const InputDecoration(labelText: 'Title', border: OutlineInputBorder())),+ TextField(controller: titleC, autofocus: true, decoration: InputDecoration(labelText: l.titleLabel, border: const OutlineInputBorder())),const SizedBox(height: 12),- TextField(controller: noteC, maxLines: 3, decoration: const InputDecoration(labelText: 'Note (optional)', border: OutlineInputBorder(), alignLabelWithHint: true)),+ TextField(controller: noteC, maxLines: 3, decoration: InputDecoration(labelText: l.noteOptionalLabel, border: const OutlineInputBorder(), alignLabelWithHint: true)),]),actions: [- TextButton(onPressed: () => Navigator.pop(ctx), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(ctx, {'title': titleC.text, 'note': noteC.text}), child: const Text('Save')),+ TextButton(onPressed: () => Navigator.pop(ctx), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(ctx, {'title': titleC.text, 'note': noteC.text}), child: Text(l.save)),],));if (result != null && result['title']!.isNotEmpty) {@@ -908,18 +918,19 @@ class _SimpleBookmarkSheetState extends State<SimpleBookmarkSheet> {}Future<void> _editBookmark(Bookmark bm) async {+ final l = AppLocalizations.of(context)!;final titleC = TextEditingController(text: bm.title);final noteC = TextEditingController(text: bm.note ?? '');final result = await showDialog<Map<String, String>>(context: context, builder: (ctx) => AlertDialog(- title: const Text('Edit Bookmark'),+ title: Text(l.editBookmark),content: Column(mainAxisSize: MainAxisSize.min, children: [- TextField(controller: titleC, decoration: const InputDecoration(labelText: 'Title', border: OutlineInputBorder())),+ TextField(controller: titleC, decoration: InputDecoration(labelText: l.titleLabel, border: const OutlineInputBorder())),const SizedBox(height: 12),- TextField(controller: noteC, maxLines: 3, decoration: const InputDecoration(labelText: 'Note (optional)', border: OutlineInputBorder(), alignLabelWithHint: true)),+ TextField(controller: noteC, maxLines: 3, decoration: InputDecoration(labelText: l.noteOptionalLabel, border: const OutlineInputBorder(), alignLabelWithHint: true)),]),actions: [- TextButton(onPressed: () => Navigator.pop(ctx), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(ctx, {'title': titleC.text, 'note': noteC.text}), child: const Text('Save')),+ TextButton(onPressed: () => Navigator.pop(ctx), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(ctx, {'title': titleC.text, 'note': noteC.text}), child: Text(l.save)),],));if (result != null && result['title']!.isNotEmpty) {@@ -1025,6 +1036,7 @@ class _MoreMenuSheetState extends State<MoreMenuSheet> {}Widget _buildEditMode(ColorScheme cs, TextTheme tt) {+ final l = AppLocalizations.of(context)!;return Container(constraints: BoxConstraints(maxHeight: MediaQuery.of(context).size.height * 0.75),decoration: BoxDecoration(@@ -1039,7 +1051,7 @@ class _MoreMenuSheetState extends State<MoreMenuSheet> {Padding(padding: const EdgeInsets.fromLTRB(16, 12, 8, 0),child: Row(children: [- Text('Edit Layout', style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600)),+ Text(l.editLayout, style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600)),const Spacer(),IconButton(icon: Icon(Icons.check_rounded, color: widget.accent),@@ -1062,7 +1074,7 @@ class _MoreMenuSheetState extends State<MoreMenuSheet> {padding: const EdgeInsets.fromLTRB(12, 4, 12, 4),child: Wrap(spacing: 8, runSpacing: 4, children: [FilterChip(- label: const Text('Icons only', style: TextStyle(fontSize: 12)),+ label: Text(l.cardIconsOnlyChip, style: const TextStyle(fontSize: 12)),selected: _iconsOnly,onSelected: (v) { setState(() => _iconsOnly = v); PlayerSettings.setCardIconsOnly(v); },selectedColor: widget.accent.withValues(alpha: 0.2),@@ -1070,7 +1082,7 @@ class _MoreMenuSheetState extends State<MoreMenuSheet> {visualDensity: VisualDensity.compact,),FilterChip(- label: const Text('"More" in grid', style: TextStyle(fontSize: 12)),+ label: Text(l.cardMoreInGridChip, style: const TextStyle(fontSize: 12)),selected: _moreInline,onSelected: (v) {setState(() {@@ -1164,7 +1176,7 @@ class _MoreMenuSheetState extends State<MoreMenuSheet> {Expanded(child: Divider(color: cs.onSurface.withValues(alpha: 0.12))),Padding(padding: const EdgeInsets.symmetric(horizontal: 12),- child: Text(_moreInline ? 'Hidden' : 'In menu',+ child: Text(_moreInline ? l.cardLayoutHidden : l.inMenu,style: tt.labelSmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.4))),),Expanded(child: Divider(color: cs.onSurface.withValues(alpha: 0.12))),@@ -1193,7 +1205,7 @@ class _MoreMenuSheetState extends State<MoreMenuSheet> {Icon(isMore ? Icons.more_horiz_rounded : def!.icon, size: 20,color: id == 'remove' ? Colors.red.shade300 : cs.onSurface.withValues(alpha: 0.7)),const SizedBox(width: 12),- Expanded(child: Text(isMore ? 'More' : def!.label, style: tt.bodyMedium)),+ Expanded(child: Text(isMore ? l.more : localizedCardButtonLabel(l, def!), style: tt.bodyMedium)),if (isOnCard)Padding(padding: const EdgeInsets.only(right: 8),@@ -1332,6 +1344,7 @@ class CardActionDelegate {Widget _buildInlineMoreButton(Color accent, {bool compact = false, bool short = false}) {final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;final large = MediaQuery.sizeOf(context).height > 700;final h = compact ? 30.0 : (large ? 48.0 : 36.0);final iconSz = compact ? 13.0 : (large ? 20.0 : 16.0);@@ -1362,7 +1375,7 @@ class CardActionDelegate {children: [Icon(moreIcon, size: iconSz, color: iconColor),const SizedBox(width: 6),- Flexible(child: Text(castActive ? 'Casting' : 'More', overflow: TextOverflow.ellipsis,+ Flexible(child: Text(castActive ? l.casting : l.more, overflow: TextOverflow.ellipsis,style: TextStyle(color: iconColor, fontSize: fontSize, fontWeight: FontWeight.w500))),],),@@ -1384,28 +1397,29 @@ class CardActionDelegate {Widget buildCardButton(String id, Color accent, TextTheme tt, {bool compact = false, bool short = false, bool iconsOnly = false}) {final large = MediaQuery.sizeOf(context).height > 700;+ final l = AppLocalizations.of(context)!;switch (id) {case 'chapters':return CardWideButton(- icon: Icons.list_rounded, label: 'Chapters',+ icon: Icons.list_rounded, label: l.chapters,accent: accent, isActive: true, alwaysEnabled: true, large: large, compact: compact, iconsOnly: iconsOnly,onTap: chapters.isNotEmpty ? () => showChapters(context, accent, tt) : null,);case 'speed':return CardWideButton(- icon: Icons.speed_rounded, label: 'Speed',+ icon: Icons.speed_rounded, label: l.speed,accent: accent, isActive: isPlaybackActive, large: large, compact: compact, iconsOnly: iconsOnly,child: CardSpeedButtonInline(player: player, accent: accent, isActive: isActive, large: large, compact: compact, itemId: itemId),);case 'sleep':return CardWideButton(- icon: Icons.nightlight_round_outlined, label: 'Timer',+ icon: Icons.nightlight_round_outlined, label: l.timer,accent: accent, isActive: true, alwaysEnabled: true, large: large, compact: compact, iconsOnly: iconsOnly,child: CardSleepButtonInline(accent: accent, isActive: isPlaybackActive, large: large, compact: compact, iconsOnly: iconsOnly),);case 'bookmarks':return CardWideButton(- icon: Icons.bookmark_outline_rounded, label: 'Bookmarks',+ icon: Icons.bookmark_outline_rounded, label: l.bookmarks,accent: accent, isActive: isPlaybackActive, large: large, compact: compact, iconsOnly: iconsOnly,child: CardBookmarkButtonInline(player: player, accent: accent,@@ -1415,7 +1429,7 @@ class CardActionDelegate {case 'details':return CardWideButton(icon: (episodeId != null || isPodcastEpisode) ? Icons.podcasts_rounded : Icons.info_outline_rounded,- label: short ? 'Details' : ((episodeId != null || isPodcastEpisode) ? 'Episode Details' : 'Book Details'),+ label: short ? l.details : ((episodeId != null || isPodcastEpisode) ? l.episodeDetailsLabel : l.bookDetailsLabel),accent: accent, isActive: true, alwaysEnabled: true, large: large, compact: compact, iconsOnly: iconsOnly,onTap: () => _openDetails(),);@@ -1429,7 +1443,7 @@ class CardActionDelegate {builder: (_, snap) {final highlighted = snap.data ?? false;return CardWideButton(- icon: Icons.equalizer_rounded, label: compact ? 'EQ' : 'Equalizer',+ icon: Icons.equalizer_rounded, label: compact ? l.equalizerShort : l.equalizerLabel,accent: accent, isActive: true, alwaysEnabled: true,highlighted: highlighted,large: large, compact: compact, iconsOnly: iconsOnly,@@ -1446,13 +1460,13 @@ class CardActionDelegate {final cast = ChromecastService();final String castLabel;if (compact || short) {- castLabel = cast.isConnected ? 'Casting' : 'Cast';+ castLabel = cast.isConnected ? l.casting : l.cast;} else if (cast.isCasting && cast.castingItemId == itemId) {- castLabel = 'Casting to ${cast.connectedDeviceName ?? "device"}';+ castLabel = l.castingToDevice(cast.connectedDeviceName ?? 'device');} else if (cast.isConnected) {- castLabel = 'Cast to ${cast.connectedDeviceName ?? "device"}';+ castLabel = l.castToDeviceNamed(cast.connectedDeviceName ?? 'device');} else {- castLabel = 'Cast to Device';+ castLabel = l.castToDevice;}return CardWideButton(icon: cast.isConnected ? Icons.cast_connected_rounded : Icons.cast_rounded,@@ -1463,31 +1477,31 @@ class CardActionDelegate {);case 'history':return CardWideButton(- icon: Icons.history_rounded, label: (compact || short) ? 'History' : 'Playback History',+ icon: Icons.history_rounded, label: (compact || short) ? l.historyShort : l.playbackHistory,accent: accent, isActive: true, alwaysEnabled: true, large: large, compact: compact, iconsOnly: iconsOnly,onTap: () => showHistory(context, accent, tt),);case 'remove':return CardWideButton(- icon: Icons.remove_circle_outline_rounded, label: (compact || short) ? 'Remove' : 'Remove from Absorbing',+ icon: Icons.remove_circle_outline_rounded, label: (compact || short) ? l.remove : l.removeFromAbsorbing,accent: Colors.red.shade300, isActive: true, alwaysEnabled: true, large: large, compact: compact, iconsOnly: iconsOnly,onTap: () { removeFromAbsorbing(); onRemoveExtra?.call(); },);case 'car':return CardWideButton(- icon: Icons.directions_car_rounded, label: 'Car Mode',+ icon: Icons.directions_car_rounded, label: l.carModeTitle,accent: accent, isActive: true, alwaysEnabled: true, large: large, compact: compact, iconsOnly: iconsOnly,onTap: () => openCarMode(context),);case 'notes':return CardWideButton(- icon: Icons.note_rounded, label: 'Notes',+ icon: Icons.note_rounded, label: l.notes,accent: accent, isActive: true, alwaysEnabled: true, large: large, compact: compact, iconsOnly: iconsOnly,onTap: () => showNotes(context, accent),);case 'download':return CardWideButton(- icon: Icons.download_outlined, label: 'Download',+ icon: Icons.download_outlined, label: l.download,accent: accent, isActive: true, alwaysEnabled: true, large: large, compact: compact, iconsOnly: iconsOnly,child: CardDownloadButtonInline(itemId: itemId, title: title, author: author, coverUrl: coverUrl,@@ -1500,16 +1514,17 @@ class CardActionDelegate {}Widget buildMoreMenuItem(String id, Color accent, TextTheme tt, BuildContext ctx) {+ final l = AppLocalizations.of(context)!;switch (id) {case 'chapters':return MoreMenuItem(- icon: Icons.list_rounded, label: 'Chapters', accent: accent,+ icon: Icons.list_rounded, label: l.chapters, accent: accent,enabled: chapters.isNotEmpty,onTap: () { Navigator.pop(ctx); showChapters(context, accent, tt); },);case 'speed':return MoreMenuItem(- icon: Icons.speed_rounded, label: 'Speed', accent: accent,+ icon: Icons.speed_rounded, label: l.speed, accent: accent,enabled: true,onTap: () {Navigator.pop(ctx);@@ -1519,7 +1534,7 @@ class CardActionDelegate {);case 'sleep':return MoreMenuItem(- icon: Icons.nightlight_round_outlined, label: 'Timer', accent: accent,+ icon: Icons.nightlight_round_outlined, label: l.timer, accent: accent,enabled: true,onTap: () {Navigator.pop(ctx);@@ -1528,7 +1543,7 @@ class CardActionDelegate {);case 'bookmarks':return MoreMenuItem(- icon: Icons.bookmark_outline_rounded, label: 'Bookmarks', accent: accent,+ icon: Icons.bookmark_outline_rounded, label: l.bookmarks, accent: accent,enabled: isPlaybackActive,onTap: () {Navigator.pop(ctx);@@ -1543,13 +1558,13 @@ class CardActionDelegate {case 'details':return MoreMenuItem(icon: (episodeId != null || isPodcastEpisode) ? Icons.podcasts_rounded : Icons.info_outline_rounded,- label: (episodeId != null || isPodcastEpisode) ? 'Episode Details' : 'Book Details',+ label: (episodeId != null || isPodcastEpisode) ? l.episodeDetailsLabel : l.bookDetailsLabel,accent: accent,onTap: () { Navigator.pop(ctx); _openDetails(); },);case 'equalizer':return MoreMenuItem(- icon: Icons.equalizer_rounded, label: 'Equalizer', accent: accent,+ icon: Icons.equalizer_rounded, label: l.equalizerLabel, accent: accent,onTap: () { Navigator.pop(ctx); showEqualizerSheet(context, accent, itemId: itemId, itemTitle: title); },);case 'cast':@@ -1559,11 +1574,11 @@ class CardActionDelegate {final cast = ChromecastService();final String castLabel;if (cast.isCasting && cast.castingItemId == itemId) {- castLabel = 'Casting to ${cast.connectedDeviceName ?? "device"}';+ castLabel = l.castingToDevice(cast.connectedDeviceName ?? 'device');} else if (cast.isConnected) {- castLabel = 'Cast to ${cast.connectedDeviceName ?? "device"}';+ castLabel = l.castToDeviceNamed(cast.connectedDeviceName ?? 'device');} else {- castLabel = 'Cast to Device';+ castLabel = l.castToDevice;}return MoreMenuItem(icon: cast.isConnected ? Icons.cast_connected_rounded : Icons.cast_rounded,@@ -1574,24 +1589,24 @@ class CardActionDelegate {);case 'history':return MoreMenuItem(- icon: Icons.history_rounded, label: 'Playback History', accent: accent,+ icon: Icons.history_rounded, label: l.playbackHistory, accent: accent,enabled: true,onTap: () { Navigator.pop(ctx); showHistory(context, accent, tt); },);case 'remove':return MoreMenuItem(- icon: Icons.remove_circle_outline_rounded, label: 'Remove from Absorbing',+ icon: Icons.remove_circle_outline_rounded, label: l.removeFromAbsorbing,accent: Colors.red.shade300,onTap: () { Navigator.pop(ctx); removeFromAbsorbing(); onRemoveExtra?.call(); },);case 'car':return MoreMenuItem(- icon: Icons.directions_car_rounded, label: 'Car Mode', accent: accent,+ icon: Icons.directions_car_rounded, label: l.carModeTitle, accent: accent,onTap: () { Navigator.pop(ctx); openCarMode(context); },);case 'notes':return MoreMenuItem(- icon: Icons.note_rounded, label: 'Notes', accent: accent,+ icon: Icons.note_rounded, label: l.notes, accent: accent,onTap: () { Navigator.pop(ctx); showNotes(context, accent); },);case 'download':@@ -1608,11 +1623,11 @@ class CardActionDelegate {final IconData dlIcon;final Color dlAccent;if (downloaded) {- dlIcon = Icons.download_done_rounded; dlLabel = 'Saved'; dlAccent = dlGreen;+ dlIcon = Icons.download_done_rounded; dlLabel = l.saved; dlAccent = dlGreen;} else if (downloading) {dlIcon = Icons.downloading_rounded; dlLabel = '${(progress * 100).toStringAsFixed(0)}%'; dlAccent = accent;} else {- dlIcon = Icons.download_outlined; dlLabel = 'Download'; dlAccent = accent;+ dlIcon = Icons.download_outlined; dlLabel = l.download; dlAccent = accent;}return MoreMenuItem(icon: dlIcon, label: dlLabel, accent: dlAccent,@@ -1621,15 +1636,15 @@ class CardActionDelegate {final dl = DownloadService();if (dl.isDownloaded(itemId)) {showDialog(context: context, builder: (dCtx) => AlertDialog(- title: const Text('Remove download?'),- content: const Text('This will be removed from your device.'),+ title: Text(l.removeDownloadQuestion),+ content: Text(l.removeDownloadContent),actions: [- TextButton(onPressed: () => Navigator.pop(dCtx), child: const Text('Cancel')),+ TextButton(onPressed: () => Navigator.pop(dCtx), child: Text(l.cancel)),TextButton(onPressed: () {dl.deleteDownload(itemId);Navigator.pop(dCtx);- showOverlayToast(context, 'Download removed', icon: Icons.delete_outline_rounded);- }, child: const Text('Remove', style: TextStyle(color: Colors.redAccent))),+ showOverlayToast(context, l.downloadRemoved, icon: Icons.delete_outline_rounded);+ }, child: Text(l.remove, style: const TextStyle(color: Colors.redAccent))),],));} else if (dl.isDownloading(itemId)) {@@ -1750,6 +1765,7 @@ class CardActionDelegate {}void showHistory(BuildContext ctx, Color accent, TextTheme tt) {+ final l = AppLocalizations.of(ctx)!;showModalBottomSheet(context: ctx, isScrollControlled: true, useSafeArea: true,backgroundColor: Colors.transparent,@@ -1768,7 +1784,7 @@ class CardActionDelegate {padding: const EdgeInsets.symmetric(horizontal: 16),child: Row(children: [const Spacer(),- Text('Playback History', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),+ Text(l.playbackHistory, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),const Spacer(),IconButton(icon: Icon(Icons.delete_outline_rounded, size: 20, color: Theme.of(ctx).colorScheme.onSurfaceVariant),@@ -1776,14 +1792,14 @@ class CardActionDelegate {await PlaybackHistoryService().clearHistory(itemId);if (sheetCtx.mounted) Navigator.pop(sheetCtx);},- tooltip: 'Clear history',+ tooltip: l.clearHistoryTooltip,),]),),if (isActive)Padding(padding: const EdgeInsets.fromLTRB(16, 4, 16, 8),- child: Text('Tap an event to jump to that position',+ child: Text(l.tapEventToJump,style: tt.bodySmall?.copyWith(color: Theme.of(ctx).colorScheme.onSurfaceVariant.withValues(alpha: 0.6), fontStyle: FontStyle.italic)),)else@@ -1793,7 +1809,7 @@ class CardActionDelegate {builder: (futureCtx, snap) {if (!snap.hasData) return const Center(child: CircularProgressIndicator(strokeWidth: 2));final events = snap.data!;- if (events.isEmpty) return Center(child: Text('No history yet', style: tt.bodyMedium?.copyWith(color: Theme.of(ctx).colorScheme.onSurfaceVariant)));+ if (events.isEmpty) return Center(child: Text(l.noHistoryYet, style: tt.bodyMedium?.copyWith(color: Theme.of(ctx).colorScheme.onSurfaceVariant)));final items = <Widget>[];String? lastDate;@@ -1814,12 +1830,12 @@ class CardActionDelegate {dense: true, visualDensity: const VisualDensity(vertical: -2),leading: Icon(historyIcon(e.type), size: 18, color: accent.withValues(alpha: 0.7)),title: Text(e.label, style: tt.bodySmall?.copyWith(color: Theme.of(ctx).colorScheme.onSurface.withValues(alpha: 0.7))),- subtitle: Text('at $posLabel', style: tt.labelSmall?.copyWith(color: Theme.of(ctx).colorScheme.onSurfaceVariant)),+ subtitle: Text(l.atPosition(posLabel), style: tt.labelSmall?.copyWith(color: Theme.of(ctx).colorScheme.onSurfaceVariant)),trailing: Text(timeStr, style: tt.labelSmall?.copyWith(color: Theme.of(ctx).colorScheme.onSurface.withValues(alpha: 0.3))),onTap: isActive ? () {player.seekTo(Duration(seconds: e.positionSeconds.round()));Navigator.pop(futureCtx);- ScaffoldMessenger.of(ctx).showSnackBar(SnackBar(duration: const Duration(seconds: 3), content: Text('Jumped to $posLabel')));+ ScaffoldMessenger.of(ctx).showSnackBar(SnackBar(duration: const Duration(seconds: 3), content: Text(l.jumpedToPosition(posLabel))));} : null,));}diff --git a/lib/widgets/card_chapters_sheet.dart b/lib/widgets/card_chapters_sheet.dartindex 2af26184..84f15f28 100644--- a/lib/widgets/card_chapters_sheet.dart+++ b/lib/widgets/card_chapters_sheet.dart@@ -1,5 +1,6 @@import 'package:flutter/material.dart';import 'package:provider/provider.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';import '../screens/app_shell.dart';@@ -44,6 +45,7 @@ void showChaptersSheet({if (sc.hasClients) sc.jumpTo(target.clamp(0, sc.position.maxScrollExtent));});}+ final l = AppLocalizations.of(ctx)!;return Container(decoration: BoxDecoration(color: Theme.of(context).bottomSheetTheme.backgroundColor,@@ -53,13 +55,13 @@ void showChaptersSheet({child: Column(children: [Padding(padding: const EdgeInsets.symmetric(vertical: 12),child: Container(width: 40, height: 4, decoration: BoxDecoration(color: Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.24), borderRadius: BorderRadius.circular(2)))),- Text('Chapters (${chapters.length})', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),+ Text(l.chaptersCount(chapters.length), style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),const SizedBox(height: 8),Expanded(child: ListView.builder(controller: sc, itemCount: chapters.length,itemBuilder: (_, i) {final ch = chapters[i] as Map<String, dynamic>;- final chTitle = ch['title'] as String? ?? 'Chapter ${i + 1}';+ final chTitle = ch['title'] as String? ?? l.chapterNumber(i + 1);final start = (ch['start'] as num?)?.toDouble() ?? 0;final end = (ch['end'] as num?)?.toDouble() ?? 0;final pos = isCastingThis@@ -98,11 +100,11 @@ void showChaptersSheet({} else if (itemId != null) {// Inactive card - confirm then start playbackfinal confirmed = await showDialog<bool>(context: ctx, builder: (dlg) => AlertDialog(- title: const Text('Play from chapter?'),- content: Text('Start playing from "$chTitle"?'),+ title: Text(l.cardChaptersPlayFromChapterTitle),+ content: Text(l.cardChaptersPlayFromChapterContent(chTitle)),actions: [- TextButton(onPressed: () => Navigator.pop(dlg, false), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(dlg, true), child: const Text('Play')),+ TextButton(onPressed: () => Navigator.pop(dlg, false), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(dlg, true), child: Text(l.cardChaptersPlay)),],));if (confirmed != true || !ctx.mounted) return;diff --git a/lib/widgets/card_edge_progress_bar.dart b/lib/widgets/card_edge_progress_bar.dartindex ba43225d..e0d75d14 100644--- a/lib/widgets/card_edge_progress_bar.dart+++ b/lib/widgets/card_edge_progress_bar.dart@@ -1,6 +1,7 @@import 'dart:async';import 'dart:ui';import 'package:flutter/material.dart';+import '../l10n/app_localizations.dart';import '../services/audio_player_service.dart';import '../services/chromecast_service.dart';@@ -216,10 +217,10 @@ class _CardEdgeProgressBarState extends State<CardEdgeProgressBar>return 0.1;}- static String _scrubSpeedLabel(double scale) {- if (scale <= 0.1) return 'Fine Scrubbing';- if (scale <= 0.25) return 'Quarter Speed';- return 'Half Speed';+ static String _scrubSpeedLabel(AppLocalizations l, double scale) {+ if (scale <= 0.1) return l.cardEdgeProgressFineScrubbing;+ if (scale <= 0.25) return l.cardEdgeProgressQuarterSpeed;+ return l.cardEdgeProgressHalfSpeed;}@override@@ -247,6 +248,7 @@ class _CardEdgeProgressBarState extends State<CardEdgeProgressBar>Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final isDark = Theme.of(context).brightness == Brightness.dark;final cast = ChromecastService();final active = widget.isActive || _isCastMode;@@ -371,7 +373,7 @@ class _CardEdgeProgressBarState extends State<CardEdgeProgressBar>)],),),- if (_dragValue != null && _edgeScrubSpeed < 1.0) Text(_scrubSpeedLabel(_edgeScrubSpeed), style: tt.labelSmall?.copyWith(color: widget.accent, fontSize: 11, fontWeight: FontWeight.w500)),+ if (_dragValue != null && _edgeScrubSpeed < 1.0) Text(_scrubSpeedLabel(l, _edgeScrubSpeed), style: tt.labelSmall?.copyWith(color: widget.accent, fontSize: 11, fontWeight: FontWeight.w500)),Text('-${_fmt(_dragValue != null ? (1.0 - _dragValue!) * totalDur / speedDiv : bookRemaining)}',style: tt.labelSmall?.copyWith(diff --git a/lib/widgets/card_progress_bar.dart b/lib/widgets/card_progress_bar.dartindex 84b4611e..8a5ca78e 100644--- a/lib/widgets/card_progress_bar.dart+++ b/lib/widgets/card_progress_bar.dart@@ -1,6 +1,7 @@import 'dart:async';import 'dart:math';import 'package:flutter/material.dart';+import '../l10n/app_localizations.dart';import '../services/audio_player_service.dart';import '../services/chromecast_service.dart';import 'absorb_slider.dart';@@ -234,16 +235,17 @@ class _CardDualProgressBarState extends State<CardDualProgressBar> with WidgetsBreturn 0.1;}- static String _scrubSpeedLabel(double scale) {- if (scale <= 0.1) return 'Fine Scrubbing';- if (scale <= 0.25) return 'Quarter Speed';- return 'Half Speed';+ static String _scrubSpeedLabel(AppLocalizations l, double scale) {+ if (scale <= 0.1) return l.cardProgressFineScrubbing;+ if (scale <= 0.25) return l.cardProgressQuarterSpeed;+ return l.cardProgressHalfSpeed;}@overrideWidget build(BuildContext context) {final tt = Theme.of(context).textTheme;final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;final player = widget.player;final cast = ChromecastService();final active = widget.isActive || _isCastMode;@@ -331,7 +333,7 @@ class _CardDualProgressBarState extends State<CardDualProgressBar> with WidgetsBmainAxisAlignment: MainAxisAlignment.spaceBetween,children: [Text(_fmt(_bookDragValue != null ? _bookDragValue! * totalDur : bookElapsed), style: tt.labelSmall?.copyWith(color: _bookDragValue != null ? cs.onSurface.withValues(alpha: 0.7) : cs.onSurfaceVariant, fontSize: 12, fontWeight: FontWeight.w600, shadows: [Shadow(color: Theme.of(context).brightness == Brightness.dark ? Colors.black.withValues(alpha: 0.5) : Colors.white.withValues(alpha: 0.5), blurRadius: 3)])),- if (_bookDragValue != null && _bookScrubSpeed < 1.0) Text(_scrubSpeedLabel(_bookScrubSpeed), style: tt.labelSmall?.copyWith(color: widget.accent, fontSize: 11, fontWeight: FontWeight.w500)),+ if (_bookDragValue != null && _bookScrubSpeed < 1.0) Text(_scrubSpeedLabel(l, _bookScrubSpeed), style: tt.labelSmall?.copyWith(color: widget.accent, fontSize: 11, fontWeight: FontWeight.w500)),Text('-${_fmt(_bookDragValue != null ? (1.0 - _bookDragValue!) * totalDur : bookRemaining)}', style: tt.labelSmall?.copyWith(color: _bookDragValue != null ? cs.onSurface.withValues(alpha: 0.7) : cs.onSurfaceVariant, fontSize: 12, fontWeight: FontWeight.w600, shadows: [Shadow(color: Theme.of(context).brightness == Brightness.dark ? Colors.black.withValues(alpha: 0.5) : Colors.white.withValues(alpha: 0.5), blurRadius: 3)])),],)),@@ -360,7 +362,7 @@ class _CardDualProgressBarState extends State<CardDualProgressBar> with WidgetsBfinal rawName = resolvedChapterName ?? widget.chapterName;final chIdx = resolvedChapterIdx >= 0 ? resolvedChapterIdx : widget.chapterIndex;final chName = rawName != null- ? _smartChapterName(rawName, chIdx, widget.totalChapters)+ ? _smartChapterName(l, rawName, chIdx, widget.totalChapters): null;return GestureDetector(@@ -408,7 +410,7 @@ class _CardDualProgressBarState extends State<CardDualProgressBar> with WidgetsBfontSize: 11, fontWeight: FontWeight.w600,fontFeatures: const [FontFeature.tabularFigures()],shadows: [Shadow(color: Theme.of(context).brightness == Brightness.dark ? Colors.black.withValues(alpha: 0.5) : Colors.white.withValues(alpha: 0.5), blurRadius: 3)])),- if (_chapterDragValue != null && _chapterScrubSpeed < 1.0) Text(_scrubSpeedLabel(_chapterScrubSpeed), style: tt.labelSmall?.copyWith(color: widget.accent, fontSize: 11, fontWeight: FontWeight.w500)),+ if (_chapterDragValue != null && _chapterScrubSpeed < 1.0) Text(_scrubSpeedLabel(l, _chapterScrubSpeed), style: tt.labelSmall?.copyWith(color: widget.accent, fontSize: 11, fontWeight: FontWeight.w500)),Text('-${_fmt(_chapterDragValue != null ? ((1.0 - _chapterDragValue!) * chapterDur) / speedDiv : chapterRemaining)}',style: tt.labelSmall?.copyWith(color: _chapterDragValue != null ? widget.accent : cs.onSurface.withValues(alpha: 0.5),@@ -432,15 +434,15 @@ class _CardDualProgressBarState extends State<CardDualProgressBar> with WidgetsB}/// Smart chapter name: prefix bare numbers, show chapter position.- String _smartChapterName(String raw, int index, int total) {+ String _smartChapterName(AppLocalizations l, String raw, int index, int total) {final trimmed = raw.trim();// Pure number → "Chapter 16"if (RegExp(r'^\d+$').hasMatch(trimmed)) {- return 'Chapter $trimmed';+ return l.cardProgressChapterPrefix(trimmed);}// Very short (1-2 chars) → prefixif (trimmed.length <= 2) {- return 'Chapter $trimmed';+ return l.cardProgressChapterPrefix(trimmed);}return trimmed;}diff --git a/lib/widgets/chromecast_button.dart b/lib/widgets/chromecast_button.dartindex f9c4d0c6..6b091817 100644--- a/lib/widgets/chromecast_button.dart+++ b/lib/widgets/chromecast_button.dart@@ -1,5 +1,6 @@import 'package:flutter/material.dart';import 'package:flutter_chrome_cast/flutter_chrome_cast.dart';+import '../l10n/app_localizations.dart';import '../services/chromecast_service.dart';import '../services/api_service.dart';@@ -25,6 +26,7 @@ void showCastDevicePicker(),builder: (ctx) {final cs = Theme.of(ctx).colorScheme;+ final l = AppLocalizations.of(ctx)!;return SafeArea(child: Padding(padding: const EdgeInsets.fromLTRB(16, 12, 16, 16),@@ -33,7 +35,7 @@ void showCastDevicePicker(children: [Container(width: 36, height: 4, decoration: BoxDecoration(color: cs.onSurface.withValues(alpha: 0.24), borderRadius: BorderRadius.circular(2))),const SizedBox(height: 16),- Text('Cast to Device', style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: cs.onSurface)),+ Text(l.castToDevice, style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: cs.onSurface)),const SizedBox(height: 16),Flexible(child: StreamBuilder<List<GoogleCastDevice>>(@@ -47,7 +49,7 @@ void showCastDevicePicker(children: [SizedBox(width: 24, height: 24, child: CircularProgressIndicator(strokeWidth: 2, color: cs.onSurfaceVariant)),const SizedBox(height: 12),- Text('Searching for Cast devices...', style: TextStyle(color: cs.onSurfaceVariant, fontSize: 13)),+ Text(l.searchingForCastDevices, style: TextStyle(color: cs.onSurfaceVariant, fontSize: 13)),],),);@@ -127,6 +129,7 @@ class CastControlSheet extends StatelessWidget {builder: (context, _) {final cast = ChromecastService();final accent = Theme.of(context).colorScheme.primary;+ final l = AppLocalizations.of(context)!;return SafeArea(child: Padding(@@ -140,7 +143,7 @@ class CastControlSheet extends StatelessWidget {Row(children: [Icon(Icons.cast_connected_rounded, size: 20, color: accent),const SizedBox(width: 10),- Expanded(child: Text(cast.connectedDeviceName ?? 'Cast Device',+ Expanded(child: Text(cast.connectedDeviceName ?? l.castDevice,style: TextStyle(fontSize: 16, fontWeight: FontWeight.w500, color: accent), overflow: TextOverflow.ellipsis)),]),@@ -152,14 +155,14 @@ class CastControlSheet extends StatelessWidget {if (cast.isCasting) ...[Expanded(child: OutlinedButton.icon(onPressed: () { cast.stopCasting(); Navigator.of(context).pop(); },- icon: const Icon(Icons.stop_rounded, size: 18), label: const Text('Stop Casting'),+ icon: const Icon(Icons.stop_rounded, size: 18), label: Text(l.stopCasting),style: OutlinedButton.styleFrom(foregroundColor: Colors.white60, side: const BorderSide(color: Colors.white12),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))))),const SizedBox(width: 12),],Expanded(child: OutlinedButton.icon(onPressed: () { cast.disconnect(); Navigator.of(context).pop(); },- icon: const Icon(Icons.close_rounded, size: 18), label: const Text('Disconnect'),+ icon: const Icon(Icons.close_rounded, size: 18), label: Text(l.disconnect),style: OutlinedButton.styleFrom(foregroundColor: Colors.redAccent.withValues(alpha: 0.8),side: BorderSide(color: Colors.redAccent.withValues(alpha: 0.3)),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))))),diff --git a/lib/widgets/collection_detail_sheet.dart b/lib/widgets/collection_detail_sheet.dartindex 934b5050..637a1a8f 100644--- a/lib/widgets/collection_detail_sheet.dart+++ b/lib/widgets/collection_detail_sheet.dart@@ -4,6 +4,7 @@ import 'package:flutter/services.dart';import 'package:provider/provider.dart';import 'overlay_toast.dart';import 'package:cached_network_image/cached_network_image.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';import '../services/audio_player_service.dart';@@ -48,19 +49,20 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {}Future<void> _deleteCollection(BuildContext context, LibraryProvider lib) async {+ final l = AppLocalizations.of(context)!;final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Delete Collection'),- content: const Text('Are you sure you want to delete this collection?'),+ title: Text(l.deleteCollection),+ content: Text(l.deleteCollectionContent),actions: [TextButton(onPressed: () => Navigator.pop(ctx, false),- child: const Text('Cancel'),+ child: Text(l.cancel),),TextButton(onPressed: () => Navigator.pop(ctx, true),- child: const Text('Delete'),+ child: Text(l.delete),),],),@@ -102,6 +104,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final lib = context.watch<LibraryProvider>();final isRoot = context.read<AuthProvider>().isRoot;@@ -110,10 +113,10 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {).firstOrNull;if (collection == null) {- return const Center(child: Text('Collection not found'));+ return Center(child: Text(l.collectionNotFound));}- final name = collection['name'] as String? ?? 'Collection';+ final name = collection['name'] as String? ?? l.collectionDetailDefaultName;final description = collection['description'] as String? ?? '';final books = (collection['books'] as List<dynamic>?) ?? [];@@ -125,7 +128,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {if (_reordering) ...[GestureDetector(onTap: _cancelReorder,- child: Text('Cancel', style: tt.labelMedium?.copyWith(+ child: Text(l.cancel, style: tt.labelMedium?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w500,)),),@@ -136,7 +139,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {const Spacer(),GestureDetector(onTap: () => _saveReorder(lib),- child: Text('Done', style: tt.labelMedium?.copyWith(+ child: Text(l.done, style: tt.labelMedium?.copyWith(color: cs.primary, fontWeight: FontWeight.w600,)),),@@ -156,7 +159,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {fontWeight: FontWeight.w600, color: cs.onSurface,)),),- Text('${books.length} book${books.length == 1 ? '' : 's'}',+ Text(l.collectionDetailBookCount(books.length),style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant),),const SizedBox(width: 12),@@ -193,15 +196,15 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {// ContentExpanded(child: _reordering- ? _buildReorderList(cs, tt, lib)+ ? _buildReorderList(cs, tt, lib, l): _gridView- ? _buildGrid(cs, tt, lib, books)- : _buildItemList(cs, tt, lib, books, isRoot: isRoot),+ ? _buildGrid(cs, tt, lib, books, l)+ : _buildItemList(cs, tt, lib, books, l, isRoot: isRoot),),]);}- Widget _buildReorderList(ColorScheme cs, TextTheme tt, LibraryProvider lib) {+ Widget _buildReorderList(ColorScheme cs, TextTheme tt, LibraryProvider lib, AppLocalizations l) {final items = _reorderItems!;return ReorderableListView.builder(padding: EdgeInsets.only(top: 8, bottom: 8 + MediaQuery.of(context).viewPadding.bottom),@@ -219,7 +222,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {final itemId = book['id'] as String? ?? '';final media = book['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? l.unknown;final coverUrl = lib.getCoverUrl(itemId);return Container(@@ -266,7 +269,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {);}- Widget _buildItemList(ColorScheme cs, TextTheme tt, LibraryProvider lib, List<dynamic> books, {required bool isRoot}) {+ Widget _buildItemList(ColorScheme cs, TextTheme tt, LibraryProvider lib, List<dynamic> books, AppLocalizations l, {required bool isRoot}) {final isDark = Theme.of(context).brightness == Brightness.dark;final doneColor = isDark ? Colors.greenAccent[400]! : Colors.green.shade700;@@ -279,7 +282,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {final itemId = book['id'] as String? ?? '';final media = book['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? l.unknown;final author = metadata['authorName'] as String? ?? '';final coverUrl = lib.getCoverUrl(itemId);final isExplicit = PlayerSettings.showExplicitBadge && metadata['explicit'] == true;@@ -325,7 +328,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {color: Colors.red.withValues(alpha: 0.85),borderRadius: BorderRadius.circular(4),),- child: const Text('E', style: TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w800)),+ child: Text(l.bookCardExplicitBadge, style: const TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w800)),),),if (progress > 0 && !isFinished)@@ -358,13 +361,13 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {Row(mainAxisAlignment: MainAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [Icon(Icons.check_circle_rounded, size: 10, color: doneColor),const SizedBox(width: 3),- Text('Done', style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: doneColor)),+ Text(l.collectionDetailDone, style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: doneColor)),]),if (isDownloaded)Row(mainAxisAlignment: MainAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [Icon(Icons.download_done_rounded, size: 10, color: cs.primary),const SizedBox(width: 3),- Text('Saved', style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: cs.primary)),+ Text(l.saved, style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: cs.primary)),]),]),),@@ -406,7 +409,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {lib.absorbingItemCache[itemId] = Map<String, dynamic>.from(book);HapticFeedback.mediumImpact();if (context.mounted) {- showOverlayToast(context, 'Added "$title" to Absorbing', icon: Icons.add_circle_outline_rounded);+ showOverlayToast(context, l.collectionDetailAddedToAbsorbing(title), icon: Icons.add_circle_outline_rounded);}return false;},@@ -432,7 +435,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {lib.absorbingItemCache[itemId] = Map<String, dynamic>.from(book);HapticFeedback.mediumImpact();if (context.mounted) {- showOverlayToast(context, 'Added "$title" to Absorbing', icon: Icons.add_circle_outline_rounded);+ showOverlayToast(context, l.collectionDetailAddedToAbsorbing(title), icon: Icons.add_circle_outline_rounded);}return false;}@@ -460,7 +463,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {);}- Widget _buildGrid(ColorScheme cs, TextTheme tt, LibraryProvider lib, List<dynamic> books) {+ Widget _buildGrid(ColorScheme cs, TextTheme tt, LibraryProvider lib, List<dynamic> books, AppLocalizations l) {final isDark = Theme.of(context).brightness == Brightness.dark;final doneColor = isDark ? Colors.greenAccent[400]! : Colors.green.shade700;@@ -480,7 +483,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {final itemId = book['id'] as String? ?? '';final media = book['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? l.unknown;final author = metadata['authorName'] as String? ?? '';final coverUrl = lib.getCoverUrl(itemId);final isExplicit = PlayerSettings.showExplicitBadge && metadata['explicit'] == true;@@ -520,7 +523,7 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {color: Colors.red.withValues(alpha: 0.85),borderRadius: BorderRadius.circular(4),),- child: const Text('E', style: TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w800)),+ child: Text(l.bookCardExplicitBadge, style: const TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w800)),),),if (progress > 0 && !isFinished)@@ -553,13 +556,13 @@ class _CollectionDetailSheetState extends State<CollectionDetailSheet> {Row(mainAxisAlignment: MainAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [Icon(Icons.check_circle_rounded, size: 10, color: doneColor),const SizedBox(width: 3),- Text('Done', style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: doneColor)),+ Text(l.collectionDetailDone, style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: doneColor)),]),if (isDownloaded)Row(mainAxisAlignment: MainAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [Icon(Icons.download_done_rounded, size: 10, color: cs.primary),const SizedBox(width: 3),- Text('Saved', style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: cs.primary)),+ Text(l.saved, style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: cs.primary)),]),]),),diff --git a/lib/widgets/collection_picker_sheet.dart b/lib/widgets/collection_picker_sheet.dartindex 9afc0cb2..5a5a49e1 100644--- a/lib/widgets/collection_picker_sheet.dart+++ b/lib/widgets/collection_picker_sheet.dart@@ -1,5 +1,6 @@import 'package:flutter/material.dart';import 'package:provider/provider.dart';+import '../l10n/app_localizations.dart';import '../providers/library_provider.dart';class CollectionPickerSheet extends StatefulWidget {@@ -44,10 +45,11 @@ class _CollectionPickerSheetState extends State<CollectionPickerSheet> {final collection = await lib.createCollection(name, books: [widget.libraryItemId]);if (collection != null) {if (mounted) {+ final l = AppLocalizations.of(context)!;Navigator.pop(context);ScaffoldMessenger.of(context).showSnackBar(SnackBar(duration: const Duration(seconds: 3),- content: Text('Added to "$name"'),+ content: Text(l.addedToName(name)),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));@@ -60,13 +62,14 @@ class _CollectionPickerSheetState extends State<CollectionPickerSheet> {Future<void> _addToExisting(LibraryProvider lib, Map<String, dynamic> collection) async {setState(() => _adding = true);final collectionId = collection['id'] as String;- final name = collection['name'] as String? ?? 'Collection';+ final l = AppLocalizations.of(context)!;+ final name = collection['name'] as String? ?? l.collectionPickerCollectionFallback;final ok = await lib.addToCollection(collectionId, widget.libraryItemId);if (mounted) {Navigator.pop(context);ScaffoldMessenger.of(context).showSnackBar(SnackBar(duration: const Duration(seconds: 3),- content: Text(ok ? 'Added to "$name"' : 'Failed to add'),+ content: Text(ok ? l.addedToName(name) : l.failedToAdd),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));@@ -78,6 +81,7 @@ class _CollectionPickerSheetState extends State<CollectionPickerSheet> {final cs = Theme.of(context).colorScheme;final lib = context.watch<LibraryProvider>();final collections = lib.collections;+ final l = AppLocalizations.of(context)!;return SafeArea(child: Padding(@@ -95,7 +99,7 @@ class _CollectionPickerSheetState extends State<CollectionPickerSheet> {),)),// Title- Text('Add to Collection', style: TextStyle(+ Text(l.addToCollection, style: TextStyle(color: cs.onSurface, fontSize: 16, fontWeight: FontWeight.w600,)),const SizedBox(height: 12),@@ -109,7 +113,7 @@ class _CollectionPickerSheetState extends State<CollectionPickerSheet> {autofocus: true,style: TextStyle(color: cs.onSurface, fontSize: 14),decoration: InputDecoration(- hintText: 'Collection name',+ hintText: l.collectionNameHint,hintStyle: TextStyle(color: cs.onSurface.withValues(alpha: 0.4)),isDense: true,contentPadding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),@@ -135,14 +139,14 @@ class _CollectionPickerSheetState extends State<CollectionPickerSheet> {]),)else- _sheetItem(cs, Icons.add_rounded, 'New Collection',+ _sheetItem(cs, Icons.add_rounded, l.newCollection,onTap: () => setState(() => _creatingNew = true)),// Existing collectionsif (collections.isNotEmpty) ...[const SizedBox(height: 4),...collections.map((c) {final cm = c as Map<String, dynamic>;- final name = cm['name'] as String? ?? 'Collection';+ final name = cm['name'] as String? ?? l.collectionPickerCollectionFallback;final books = (cm['books'] as List<dynamic>?) ?? [];// Check if item is already in this collectionfinal alreadyIn = books.any((book) {@@ -152,7 +156,7 @@ class _CollectionPickerSheetState extends State<CollectionPickerSheet> {return _sheetItem(cs,alreadyIn ? Icons.check_rounded : Icons.collections_bookmark_rounded,- '$name (${books.length})',+ l.collectionPickerNameWithCount(name, books.length),enabled: !alreadyIn && !_adding,onTap: () => _addToExisting(lib, cm),);diff --git a/lib/widgets/edit_metadata_sheet.dart b/lib/widgets/edit_metadata_sheet.dartindex 5803ee37..7b0809bb 100644--- a/lib/widgets/edit_metadata_sheet.dart+++ b/lib/widgets/edit_metadata_sheet.dart@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';import 'package:provider/provider.dart';import 'package:file_picker/file_picker.dart';import 'package:cached_network_image/cached_network_image.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';@@ -74,11 +75,16 @@ class _EditMetadataContentState extends State<_EditMetadataContent>bool _isSearching = false;bool _hasSearched = false;String _provider = 'audible';- static const _providers = [- ('audible', 'Audible'),- ('itunes', 'iTunes'),- ('openlibrary', 'Open Library'),- ];+ static const _providerKeys = ['audible', 'itunes', 'openlibrary'];++ String _providerLabel(AppLocalizations l, String key) {+ switch (key) {+ case 'audible': return l.audible;+ case 'itunes': return l.iTunes;+ case 'openlibrary': return l.openLibrary;+ }+ return key;+ }String? _coverFilePath;bool _saving = false;@@ -228,13 +234,14 @@ class _EditMetadataContentState extends State<_EditMetadataContent>if (!mounted) return;setState(() => _saving = false);+ final l = AppLocalizations.of(context)!;if (ok) {context.read<LibraryProvider>().refresh();Navigator.pop(context);ScaffoldMessenger.of(context)..clearSnackBars()..showSnackBar(SnackBar(- content: const Text('Metadata updated from match'),+ content: Text(l.editMetadataUpdatedFromMatch),behavior: SnackBarBehavior.floating,duration: const Duration(seconds: 2),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -243,7 +250,7 @@ class _EditMetadataContentState extends State<_EditMetadataContent>ScaffoldMessenger.of(context)..clearSnackBars()..showSnackBar(SnackBar(- content: const Text('Failed to update metadata'),+ content: Text(l.failedToUpdateMetadata),behavior: SnackBarBehavior.floating,duration: const Duration(seconds: 3),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -257,19 +264,18 @@ class _EditMetadataContentState extends State<_EditMetadataContent>final author = _safeString(book['author']).isNotEmpty? _safeString(book['author']): _safeString(book['authorName']);+ final l = AppLocalizations.of(context)!;showDialog(context: context,builder: (ctx) => AlertDialog(- title: const Text('Apply This Match?'),- content: Text(- 'This will update the server metadata for this book using:\n\n'- '"$title"${author.isNotEmpty ? ' by $author' : ''}\n\n'- 'All fields and the cover will be overwritten on the server.',- ),+ title: Text(l.applyThisMatch),+ content: Text(author.isNotEmpty+ ? l.editMetadataConfirmMatchWithAuthor(title, author)+ : l.editMetadataConfirmMatch(title)),actions: [- TextButton(onPressed: () => Navigator.pop(ctx), child: const Text('Cancel')),- FilledButton(onPressed: () { Navigator.pop(ctx); _applyMatch(result); }, child: const Text('Apply')),+ TextButton(onPressed: () => Navigator.pop(ctx), child: Text(l.cancel)),+ FilledButton(onPressed: () { Navigator.pop(ctx); _applyMatch(result); }, child: Text(l.apply)),],),);@@ -330,13 +336,14 @@ class _EditMetadataContentState extends State<_EditMetadataContent>if (!mounted) return;setState(() => _saving = false);+ final l = AppLocalizations.of(context)!;if (ok) {context.read<LibraryProvider>().refresh();Navigator.pop(context);ScaffoldMessenger.of(context)..clearSnackBars()..showSnackBar(SnackBar(- content: const Text('Metadata updated'),+ content: Text(l.metadataUpdated),behavior: SnackBarBehavior.floating,duration: const Duration(seconds: 2),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -345,7 +352,7 @@ class _EditMetadataContentState extends State<_EditMetadataContent>ScaffoldMessenger.of(context)..clearSnackBars()..showSnackBar(SnackBar(- content: const Text('Failed to update metadata'),+ content: Text(l.failedToUpdateMetadata),behavior: SnackBarBehavior.floating,duration: const Duration(seconds: 3),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -379,6 +386,7 @@ class _EditMetadataContentState extends State<_EditMetadataContent>Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Container(decoration: BoxDecoration(@@ -392,7 +400,7 @@ class _EditMetadataContentState extends State<_EditMetadataContent>Padding(padding: const EdgeInsets.symmetric(horizontal: 20),child: Row(children: [- Text('Edit Details', style: tt.titleLarge?.copyWith(fontWeight: FontWeight.w700)),+ Text(l.editDetails, style: tt.titleLarge?.copyWith(fontWeight: FontWeight.w700)),const Spacer(),if (_saving)const SizedBox(width: 20, height: 20, child: CircularProgressIndicator(strokeWidth: 2)),@@ -406,9 +414,9 @@ class _EditMetadataContentState extends State<_EditMetadataContent>labelColor: cs.primary,unselectedLabelColor: cs.onSurfaceVariant,indicatorColor: cs.primary,- tabs: const [- Tab(text: 'Quick Match'),- Tab(text: 'Custom'),+ tabs: [+ Tab(text: l.quickMatch),+ Tab(text: l.custom),],),@@ -417,8 +425,8 @@ class _EditMetadataContentState extends State<_EditMetadataContent>child: TabBarView(controller: _tabCtrl,children: [- _buildQuickMatchTab(cs, tt),- _buildCustomTab(cs, tt),+ _buildQuickMatchTab(cs, tt, l),+ _buildCustomTab(cs, tt, l),],),),@@ -428,14 +436,14 @@ class _EditMetadataContentState extends State<_EditMetadataContent>// ─── Quick Match Tab ────────────────────────────────────────- Widget _buildQuickMatchTab(ColorScheme cs, TextTheme tt) {+ Widget _buildQuickMatchTab(ColorScheme cs, TextTheme tt, AppLocalizations l) {return Column(children: [Padding(padding: const EdgeInsets.fromLTRB(20, 16, 20, 0),child: Column(children: [- _searchField(_searchTitleCtrl, 'Title', Icons.book_rounded, cs, tt),+ _searchField(_searchTitleCtrl, l.title, Icons.book_rounded, cs, tt),const SizedBox(height: 8),- _searchField(_searchAuthorCtrl, 'Author (optional)', Icons.person_rounded, cs, tt),+ _searchField(_searchAuthorCtrl, l.authorOptionalLabel, Icons.person_rounded, cs, tt),const SizedBox(height: 10),Row(children: [Expanded(@@ -454,7 +462,7 @@ class _EditMetadataContentState extends State<_EditMetadataContent>dropdownColor: cs.surfaceContainerHigh,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant),icon: Icon(Icons.expand_more_rounded, size: 18, color: cs.onSurfaceVariant),- items: _providers.map((p) => DropdownMenuItem(value: p.$1, child: Text(p.$2))).toList(),+ items: _providerKeys.map((k) => DropdownMenuItem(value: k, child: Text(_providerLabel(l, k)))).toList(),onChanged: (v) { if (v != null) setState(() => _provider = v); },),),@@ -468,7 +476,7 @@ class _EditMetadataContentState extends State<_EditMetadataContent>icon: _isSearching? SizedBox(width: 16, height: 16, child: CircularProgressIndicator(strokeWidth: 2, color: cs.onPrimary)): const Icon(Icons.search_rounded, size: 18),- label: const Text('Search'),+ label: Text(l.search),style: FilledButton.styleFrom(shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))),),),@@ -487,7 +495,7 @@ class _EditMetadataContentState extends State<_EditMetadataContent>? ListView(controller: widget.scrollController, children: [const SizedBox(height: 80),Center(child: Text(- _hasSearched ? 'No results found.\nTry adjusting your search or provider.' : 'Search for metadata above',+ _hasSearched ? l.noResultsFound : l.searchForMetadataAbove,textAlign: TextAlign.center,style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.5)),)),@@ -497,7 +505,7 @@ class _EditMetadataContentState extends State<_EditMetadataContent>padding: EdgeInsets.fromLTRB(16, 12, 16, 16 + MediaQuery.of(context).viewPadding.bottom),itemCount: _searchResults.length,separatorBuilder: (_, __) => const SizedBox(height: 8),- itemBuilder: (_, i) => _buildResultCard(_searchResults[i], cs, tt),+ itemBuilder: (_, i) => _buildResultCard(_searchResults[i], cs, tt, l),),),]);@@ -526,7 +534,7 @@ class _EditMetadataContentState extends State<_EditMetadataContent>);}- Widget _buildResultCard(Map<String, dynamic> result, ColorScheme cs, TextTheme tt) {+ Widget _buildResultCard(Map<String, dynamic> result, ColorScheme cs, TextTheme tt, AppLocalizations l) {final book = result['book'] as Map<String, dynamic>? ?? result;final title = _safeString(book['title']);final author = _safeString(book['author']).isNotEmpty ? _safeString(book['author']) : _safeString(book['authorName']);@@ -572,7 +580,7 @@ class _EditMetadataContentState extends State<_EditMetadataContent>],if (narrator.isNotEmpty) ...[const SizedBox(height: 1),- Text('Narrated by $narrator', maxLines: 1, overflow: TextOverflow.ellipsis,+ Text(l.narratedBy(narrator), maxLines: 1, overflow: TextOverflow.ellipsis,style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.6))),],const SizedBox(height: 4),@@ -620,7 +628,7 @@ class _EditMetadataContentState extends State<_EditMetadataContent>// ─── Custom Tab ─────────────────────────────────────────────- Widget _buildCustomTab(ColorScheme cs, TextTheme tt) {+ Widget _buildCustomTab(ColorScheme cs, TextTheme tt, AppLocalizations l) {return Column(children: [// Save button barPadding(@@ -632,7 +640,7 @@ class _EditMetadataContentState extends State<_EditMetadataContent>icon: _saving? SizedBox(width: 16, height: 16, child: CircularProgressIndicator(strokeWidth: 2, color: cs.onPrimary)): const Icon(Icons.check_rounded, size: 18),- label: const Text('Save'),+ label: Text(l.save),style: FilledButton.styleFrom(shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))),),]),@@ -642,39 +650,39 @@ class _EditMetadataContentState extends State<_EditMetadataContent>child: ListView(padding: EdgeInsets.fromLTRB(20, 0, 20, 32 + MediaQuery.of(context).viewInsets.bottom + MediaQuery.of(context).viewPadding.bottom),children: [- _field('Title', _titleCtrl, tt),- _field('Subtitle', _subtitleCtrl, tt),- _field('Author', _authorCtrl, tt),- _field('Narrator', _narratorCtrl, tt),+ _field(l.titleLabel, _titleCtrl, tt),+ _field(l.subtitleLabel, _subtitleCtrl, tt),+ _field(l.authorLabel, _authorCtrl, tt),+ _field(l.narratorLabel, _narratorCtrl, tt),Row(children: [- Expanded(child: _field('Series', _seriesCtrl, tt)),+ Expanded(child: _field(l.seriesLabel, _seriesCtrl, tt)),const SizedBox(width: 12),SizedBox(width: 80, child: _field('#', _seriesSeqCtrl, tt)),]),- _field('Description', _descCtrl, tt, maxLines: 5),- _field('Publisher', _publisherCtrl, tt),+ _field(l.descriptionLabel, _descCtrl, tt, maxLines: 5),+ _field(l.publisherLabel, _publisherCtrl, tt),Row(children: [- Expanded(child: _field('Year', _yearCtrl, tt, keyboardType: TextInputType.number)),+ Expanded(child: _field(l.yearLabel, _yearCtrl, tt, keyboardType: TextInputType.number)),const SizedBox(width: 12),- Expanded(child: _field('Language', _languageCtrl, tt)),+ Expanded(child: _field(l.languageLabel, _languageCtrl, tt)),]),- _field('Genres', _genresCtrl, tt, hint: 'Comma separated'),+ _field(l.genresLabel, _genresCtrl, tt, hint: l.commaSeparated),Row(children: [- Expanded(child: _field('ASIN', _asinCtrl, tt)),+ Expanded(child: _field(l.asinLabel, _asinCtrl, tt)),const SizedBox(width: 12),- Expanded(child: _field('ISBN', _isbnCtrl, tt)),+ Expanded(child: _field(l.isbnLabel, _isbnCtrl, tt)),]),const SizedBox(height: 20),- Text('Cover Image', style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600)),+ Text(l.coverImage, style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600)),const SizedBox(height: 8),Row(children: [Expanded(child: TextField(controller: _coverUrlCtrl,decoration: InputDecoration(- labelText: 'Cover URL',- hintText: 'https://...',+ labelText: l.coverUrlLabel,+ hintText: l.coverUrlHint,border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),contentPadding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),isDense: true,@@ -684,12 +692,12 @@ class _EditMetadataContentState extends State<_EditMetadataContent>),),const SizedBox(width: 8),- Text('or', style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),+ Text(l.or, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),const SizedBox(width: 8),FilledButton.tonalIcon(onPressed: _pickCoverImage,icon: const Icon(Icons.image_rounded, size: 18),- label: const Text('File'),+ label: Text(l.file),),]),if (_coverFilePath != null)diff --git a/lib/widgets/episode_detail_sheet.dart b/lib/widgets/episode_detail_sheet.dartindex 58294671..f2e4da76 100644--- a/lib/widgets/episode_detail_sheet.dart+++ b/lib/widgets/episode_detail_sheet.dart@@ -2,6 +2,7 @@ import 'dart:ui';import 'package:flutter/material.dart';import 'package:provider/provider.dart';import 'package:cached_network_image/cached_network_image.dart';+import '../l10n/app_localizations.dart';import '../providers/library_provider.dart';import '../services/audio_player_service.dart';import '../services/download_service.dart';@@ -58,7 +59,11 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {return meta['title'] as String? ?? '';}- String get _episodeTitle => widget.episode['title'] as String? ?? 'Episode';+ String get _episodeTitle {+ final t = widget.episode['title'] as String?;+ if (t != null && t.isNotEmpty) return t;+ return mounted ? AppLocalizations.of(context)!.episodeDetailEpisodeFallback : 'Episode';+ }String get _episodeId => widget.episode['id'] as String? ?? '';double get _duration {final d = (widget.episode['duration'] as num?)?.toDouble() ?? 0;@@ -141,17 +146,18 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {final isFinished = progressData?['isFinished'] == true;final currentTime = (progressData?['currentTime'] as num?)?.toDouble() ?? 0;+ final l = AppLocalizations.of(context)!;try {if (isFinished) {// Confirm before un-finishingfinal confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Mark as Not Finished?'),- content: const Text('This will clear the finished status but keep your current position.'),+ title: Text(l.markAsNotFinishedQuestion),+ content: Text(l.markAsNotFinishedContent),actions: [- TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(ctx, true), child: const Text('Unmark')),+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.unmark)),],),);@@ -166,7 +172,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {await lib.refresh();if (mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: const Text('Marked as not finished'),+ content: Text(l.episodeDetailMarkedNotFinished),behavior: SnackBarBehavior.floating,duration: const Duration(seconds: 2),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -177,11 +183,11 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Mark as Fully Absorbed?'),- content: const Text('This will set your progress to 100% for this episode.'),+ title: Text(l.markAsFullyAbsorbedQuestion),+ content: Text(l.episodeDetailMarkAbsorbedContent),actions: [- TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(ctx, true), child: const Text('Fully Absorb')),+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.fullyAbsorbAction)),],),);@@ -196,7 +202,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {lib.markFinishedLocally(key, skipAutoAdvance: true);if (mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: const Text('Marked as finished — nice!'),+ content: Text(l.episodeDetailMarkedFinishedNice),behavior: SnackBarBehavior.floating,duration: const Duration(seconds: 2),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -205,30 +211,31 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {}} catch (_) {if (mounted) {- ScaffoldMessenger.of(context).showSnackBar(const SnackBar(- content: Text('Failed to update — check your connection')));+ ScaffoldMessenger.of(context).showSnackBar(SnackBar(+ content: Text(l.failedToUpdateCheckConnection)));}}}void _confirmDeleteDownload(BuildContext context, String dlKey) {+ final l = AppLocalizations.of(context)!;showDialog(context: context, builder: (ctx) => AlertDialog(- title: const Text('Remove download?'),- content: const Text('This will be removed from your device.'),+ title: Text(l.removeDownloadQuestion),+ content: Text(l.removeDownloadContent),actions: [- TextButton(onPressed: () => Navigator.pop(ctx), child: const Text('Cancel')),+ TextButton(onPressed: () => Navigator.pop(ctx), child: Text(l.cancel)),TextButton(onPressed: () {DownloadService().deleteDownload(dlKey);Navigator.pop(ctx);ScaffoldMessenger.of(context)..clearSnackBars()- ..showSnackBar(const SnackBar(- content: Text('Download removed'),- duration: Duration(seconds: 2),+ ..showSnackBar(SnackBar(+ content: Text(l.downloadRemoved),+ duration: const Duration(seconds: 2),behavior: SnackBarBehavior.floating,));},- child: const Text('Remove', style: TextStyle(color: Colors.redAccent))),+ child: Text(l.remove, style: const TextStyle(color: Colors.redAccent))),],));}@@ -242,6 +249,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final lib = context.watch<LibraryProvider>();final coverUrl = _coverUrl;@@ -255,10 +263,10 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {if (_publishedAt > 0) {final date = DateTime.fromMillisecondsSinceEpoch(_publishedAt);final diff = DateTime.now().difference(date);- if (diff.inDays == 0) dateLabel = 'Today';- else if (diff.inDays == 1) dateLabel = 'Yesterday';- else if (diff.inDays < 7) dateLabel = '${diff.inDays}d ago';- else if (diff.inDays < 30) dateLabel = '${(diff.inDays / 7).floor()}w ago';+ if (diff.inDays == 0) dateLabel = l.episodeDetailToday;+ else if (diff.inDays == 1) dateLabel = l.episodeDetailYesterday;+ else if (diff.inDays < 7) dateLabel = l.episodeDetailDaysAgo(diff.inDays);+ else if (diff.inDays < 30) dateLabel = l.episodeDetailWeeksAgo((diff.inDays / 7).floor());else dateLabel = '${date.year}-${date.month.toString().padLeft(2, '0')}-${date.day.toString().padLeft(2, '0')}';}@@ -266,7 +274,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {if (_duration > 0) {final h = (_duration / 3600).floor();final m = ((_duration % 3600) / 60).floor();- durationLabel = h > 0 ? '${h}h ${m}m' : '${m}m';+ durationLabel = h > 0 ? l.episodeDetailDurationHm(h, m) : l.episodeDetailDurationM(m);}return Container(@@ -331,7 +339,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {isFinished ? cs.primary.withValues(alpha: 0.4) : cs.primary),)),const SizedBox(height: 4),- Text('${(progress * 100).toStringAsFixed(1)}% complete', textAlign: TextAlign.center,+ Text(l.percentComplete((progress * 100).toStringAsFixed(1)), textAlign: TextAlign.center,style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),const SizedBox(height: 12),],@@ -344,7 +352,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {size: 24,),label: Text(- progress > 0 && !isFinished ? 'Resume' : 'Play Episode',+ progress > 0 && !isFinished ? l.episodeDetailResume : l.episodeDetailPlayEpisode,style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onPrimary),),style: FilledButton.styleFrom(@@ -368,7 +376,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {final Color color;if (downloaded) {icon = Icons.download_done_rounded;- label = 'Saved';+ label = l.saved;color = (Theme.of(context).brightness == Brightness.dark ? Colors.greenAccent : Colors.green.shade700).withValues(alpha: 0.7);} else if (downloading) {icon = Icons.downloading_rounded;@@ -376,7 +384,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {color = cs.primary;} else {icon = Icons.download_outlined;- label = 'Download';+ label = l.download;color = cs.onSurfaceVariant;}@@ -433,7 +441,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {),const SizedBox(width: 6),Text(- isFinished ? 'Fully Absorbed' : 'Fully Absorb',+ isFinished ? l.fullyAbsorbed : l.fullyAbsorbAction,style: TextStyle(color: isFinished ? Colors.green : cs.onSurfaceVariant,fontSize: 12, fontWeight: FontWeight.w500,@@ -462,8 +470,8 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {Wrap(spacing: 8, runSpacing: 8, children: [if (dateLabel.isNotEmpty) _chip(Icons.calendar_today_rounded, dateLabel),if (durationLabel.isNotEmpty) _chip(Icons.schedule_rounded, durationLabel),- if (_episodeNumber != null) _chip(Icons.tag_rounded, 'Episode $_episodeNumber'),- if (_season != null) _chip(Icons.layers_rounded, 'Season $_season'),+ if (_episodeNumber != null) _chip(Icons.tag_rounded, l.episodeDetailEpisodeNumber(_episodeNumber!)),+ if (_season != null) _chip(Icons.layers_rounded, l.episodeDetailSeasonNumber(_season!)),]),// All Episodes button (series-style)@@ -482,7 +490,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {child: Row(children: [Icon(Icons.podcasts_rounded, size: 16, color: cs.primary.withValues(alpha: 0.7)),const SizedBox(width: 8),- Expanded(child: Text('All Episodes',+ Expanded(child: Text(l.allEpisodes,style: tt.bodySmall?.copyWith(color: cs.primary.withValues(alpha: 0.9), fontWeight: FontWeight.w500))),Icon(Icons.chevron_right_rounded, size: 18, color: cs.primary.withValues(alpha: 0.5)),]),@@ -493,7 +501,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {if (_chapters.isNotEmpty) ...[const SizedBox(height: 16),GestureDetector(onTap: () => setState(() => _chaptersExpanded = !_chaptersExpanded),child: Row(children: [- Text('Chapters (${_chapters.length})', style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),+ Text(l.chaptersCount(_chapters.length), style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),const Spacer(), Icon(_chaptersExpanded ? Icons.expand_less : Icons.expand_more, color: cs.onSurface.withValues(alpha: 0.3), size: 20)])),if (_chaptersExpanded) ...[const SizedBox(height: 8),..._chapters.asMap().entries.map((e) {@@ -501,7 +509,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {return Padding(padding: const EdgeInsets.symmetric(vertical: 3),child: Row(children: [SizedBox(width: 28, child: Text('${e.key + 1}', style: tt.labelSmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.3)))),- Expanded(child: Text(ch['title'] as String? ?? 'Chapter ${e.key + 1}', maxLines: 1, overflow: TextOverflow.ellipsis, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.6)))),+ Expanded(child: Text(ch['title'] as String? ?? l.chapterNumber(e.key + 1), maxLines: 1, overflow: TextOverflow.ellipsis, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.6)))),Text(_fmtDur(((ch['end'] as num?)?.toDouble() ?? 0) - ((ch['start'] as num?)?.toDouble() ?? 0)), style: tt.labelSmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.3))),]));})]],@@ -509,7 +517,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {// Descriptionif (_rawDescription.isNotEmpty) ...[const SizedBox(height: 16),- Text('About This Episode', style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),+ Text(l.aboutThisEpisode, style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),const SizedBox(height: 6),HtmlDescription(html: _rawDescription,@@ -526,6 +534,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {void _showMoreSheet(BuildContext context, LibraryProvider lib, String dlKey, double progress, bool isFinished) {final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;showModalBottomSheet(context: context,backgroundColor: Theme.of(context).bottomSheetTheme.backgroundColor,@@ -541,7 +550,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {decoration: BoxDecoration(color: cs.onSurface.withValues(alpha: 0.24), borderRadius: BorderRadius.circular(2)))),_moreItem(cs, lib.isOnAbsorbingList(dlKey)? Icons.remove_circle_outline_rounded : Icons.add_circle_outline_rounded,- lib.isOnAbsorbingList(dlKey) ? 'Remove from Absorbing' : 'Add to Absorbing',+ lib.isOnAbsorbingList(dlKey) ? l.removeFromAbsorbing : l.addToAbsorbing,onTap: () async {Navigator.pop(ctx);if (lib.isOnAbsorbingList(dlKey)) {@@ -549,7 +558,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {if (context.mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(duration: const Duration(seconds: 3),- content: const Text('Removed from Absorbing'),+ content: Text(l.removedFromAbsorbing),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))));}@@ -562,14 +571,14 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {if (context.mounted) {ScaffoldMessenger.of(context).showSnackBar(SnackBar(duration: const Duration(seconds: 3),- content: const Text('Added to Absorbing'),+ content: Text(l.addedToAbsorbing),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))));}}}),if (!lib.isOffline)- _moreItem(cs, Icons.playlist_add_rounded, 'Add to Playlist',+ _moreItem(cs, Icons.playlist_add_rounded, l.addToPlaylist,onTap: () {Navigator.pop(ctx);PlaylistPickerSheet.show(@@ -579,7 +588,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {);}),if (progress > 0 || isFinished)- _moreItem(cs, Icons.restart_alt_rounded, 'Reset Progress',+ _moreItem(cs, Icons.restart_alt_rounded, l.resetProgress,onTap: () { Navigator.pop(ctx); _resetProgress(context); }),]),),@@ -607,16 +616,17 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {}Future<void> _resetProgress(BuildContext context) async {+ final l = AppLocalizations.of(context)!;final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Reset Progress?'),- content: const Text('This will erase all progress for this episode and set it back to the beginning. This can\'t be undone.'),+ title: Text(l.resetProgressQuestion),+ content: Text(l.episodeDetailResetProgressContent),actions: [- TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),FilledButton(onPressed: () => Navigator.pop(ctx, true),style: FilledButton.styleFrom(backgroundColor: Theme.of(ctx).colorScheme.error),- child: const Text('Reset')),+ child: Text(l.reset)),],),);@@ -645,7 +655,7 @@ class _EpisodeDetailSheetState extends State<EpisodeDetailSheet> {context.read<LibraryProvider>().resetProgressFor(compoundKey);ScaffoldMessenger.of(context).showSnackBar(SnackBar(duration: const Duration(seconds: 3),- content: Text(ok ? 'Progress reset — fresh start!' : 'Reset may not have synced — check your server'),+ content: Text(ok ? l.progressResetFreshStart : l.resetMayNotHaveSynced),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))));}diff --git a/lib/widgets/episode_list_sheet.dart b/lib/widgets/episode_list_sheet.dartindex 5e8cfb43..9b21db84 100644--- a/lib/widgets/episode_list_sheet.dart+++ b/lib/widgets/episode_list_sheet.dart@@ -5,6 +5,7 @@ import 'overlay_toast.dart';import 'package:shared_preferences/shared_preferences.dart';import 'package:provider/provider.dart';import 'package:cached_network_image/cached_network_image.dart';+import '../l10n/app_localizations.dart';import '../providers/library_provider.dart';import '../services/audio_player_service.dart';import '../services/download_service.dart';@@ -70,7 +71,11 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {Map<String, dynamic> get _metadata =>_media['metadata'] as Map<String, dynamic>? ?? {};- String get _title => _metadata['title'] as String? ?? 'Unknown Podcast';+ String get _title {+ final t = _metadata['title'] as String?;+ if (t != null && t.isNotEmpty) return t;+ return mounted ? AppLocalizations.of(context)!.episodeListUnknownPodcast : 'Unknown Podcast';+ }String get _author => _metadata['author'] as String? ?? '';String get _description => _metadata['description'] as String? ?? '';List<String> get _genres =>@@ -236,8 +241,11 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {_selectMode = false;_selectedEpisodeIds.clear();});+ final l = AppLocalizations.of(context)!;ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: Text('${ids.length} episode${ids.length == 1 ? '' : 's'} marked as ${finished ? 'finished' : 'unfinished'}'),+ content: Text(finished+ ? l.episodeListMarkedFinished(ids.length)+ : l.episodeListMarkedUnfinished(ids.length)),behavior: SnackBarBehavior.floating,duration: const Duration(seconds: 2),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -250,8 +258,9 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {final api = auth.apiService;if (api == null) return;+ final l = AppLocalizations.of(context)!;final episodeId = episode['id'] as String? ?? '';- final episodeTitle = episode['title'] as String? ?? 'Episode';+ final episodeTitle = episode['title'] as String? ?? l.episodeListEpisodeFallback;final duration = (episode['duration'] as num?)?.toDouble() ?? 0;final coverUrl = api.getCoverUrl(_itemId);@@ -297,8 +306,9 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {final api = auth.apiService;if (api == null) return;+ final l = AppLocalizations.of(context)!;final episodeId = episode['id'] as String? ?? '';- final episodeTitle = episode['title'] as String? ?? 'Episode';+ final episodeTitle = episode['title'] as String? ?? l.episodeListEpisodeFallback;final coverUrl = api.getCoverUrl(_itemId);final error = await DownloadService().downloadItem(@@ -323,14 +333,15 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {// Offer to enable auto-download if not already onif (_itemId.isNotEmpty && !_autoDownloadEnabled) {+ final l = AppLocalizations.of(context)!;final enable = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Auto-Download This Podcast?'),- content: const Text('Automatically download the next episodes as you listen.'),+ title: Text(l.autoDownloadThisPodcast),+ content: Text(l.autoDownloadPodcastContent),actions: [- TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('No Thanks')),- FilledButton(onPressed: () => Navigator.pop(ctx, true), child: const Text('Enable')),+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.noThanks)),+ FilledButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.enable)),],),);@@ -343,6 +354,8 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {setState(() => _isDownloadingAll = true);+ final l2 = mounted ? AppLocalizations.of(context)! : null;+ final episodeFallback = l2?.episodeListEpisodeFallback ?? 'Episode';for (final ep in _episodes) {if (!mounted) break;final episodeId = ep['id'] as String? ?? '';@@ -352,7 +365,7 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {await DownloadService().downloadItem(api: api,itemId: key,- title: ep['title'] as String? ?? 'Episode',+ title: ep['title'] as String? ?? episodeFallback,author: _title,coverUrl: api.getCoverUrl(_itemId),episodeId: episodeId,@@ -390,6 +403,7 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {}void _showPodcastMoreSheet(ColorScheme cs, bool allDownloaded, int downloaded) {+ final l = AppLocalizations.of(context)!;showModalBottomSheet(context: context,backgroundColor: Theme.of(context).bottomSheetTheme.backgroundColor,@@ -405,12 +419,12 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {decoration: BoxDecoration(color: cs.onSurface.withValues(alpha: 0.24), borderRadius: BorderRadius.circular(2)))),if (!allDownloaded)_podMoreItem(cs, Icons.download_rounded,- downloaded > 0 ? 'Download Remaining (${_episodes.length - downloaded})' : 'Download All',+ downloaded > 0 ? l.downloadRemainingCount(_episodes.length - downloaded) : l.downloadAll,onTap: () { Navigator.pop(ctx); _downloadAll(); }),if (_itemId.isNotEmpty)_podMoreItem(cs,_autoDownloadEnabled ? Icons.downloading_rounded : Icons.download_outlined,- _autoDownloadEnabled ? 'Turn Auto-Download Off' : 'Turn Auto-Download On',+ _autoDownloadEnabled ? l.turnAutoDownloadOff : l.turnAutoDownloadOn,onTap: () async {Navigator.pop(ctx);final lib = context.read<LibraryProvider>();@@ -420,7 +434,7 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {if (_itemId.isNotEmpty)_podMoreItem(cs,_subscribed ? Icons.notifications_active_rounded : Icons.notifications_none_rounded,- _subscribed ? 'Unsubscribe from New Episodes' : 'Subscribe to New Episodes',+ _subscribed ? l.episodeListUnsubscribeFromNewEpisodes : l.episodeListSubscribeToNewEpisodes,onTap: () async {Navigator.pop(ctx);if (_subscribed) {@@ -432,12 +446,11 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {context: context,builder: (dCtx) => AlertDialog(icon: const Icon(Icons.notifications_active_rounded),- title: const Text('Subscribe to this podcast?'),- content: const Text(- 'New episodes will be automatically downloaded and added to your absorbing queue when they appear on the server.'),+ title: Text(l.episodeListSubscribeTitle),+ content: Text(l.episodeListSubscribeContent),actions: [- TextButton(onPressed: () => Navigator.pop(dCtx, false), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(dCtx, true), child: const Text('Subscribe')),+ TextButton(onPressed: () => Navigator.pop(dCtx, false), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(dCtx, true), child: Text(l.episodeListSubscribe)),],),);@@ -450,7 +463,7 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {}),_podMoreItem(cs,_hideFinished ? Icons.visibility_rounded : Icons.visibility_off_rounded,- _hideFinished ? 'Show Finished Episodes' : 'Hide Finished Episodes',+ _hideFinished ? l.episodeListShowFinishedEpisodes : l.episodeListHideFinishedEpisodes,onTap: () { Navigator.pop(ctx); _toggleHideFinished(); }),if (_podcastAutoAdvanceOn)StatefulBuilder(builder: (ctx, setLocalState) {@@ -466,10 +479,10 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 10),child: Row(children: [Expanded(child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [- Text('Reverse play order', style: TextStyle(color: cs.onSurface, fontSize: 13, fontWeight: FontWeight.w600)),+ Text(l.reversePlayOrder, style: TextStyle(color: cs.onSurface, fontSize: 13, fontWeight: FontWeight.w600)),const SizedBox(height: 2),Text(- reversed ? 'Plays newer to older episodes' : 'Plays older to newer episodes',+ reversed ? l.episodeListPlaysNewerToOlder : l.episodeListPlaysOlderToNewer,style: TextStyle(color: cs.onSurfaceVariant, fontSize: 11.5),),])),@@ -518,6 +531,7 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final lib = context.watch<LibraryProvider>();final coverUrl = _coverUrl;@@ -599,12 +613,12 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {// Metadata chipsconst SizedBox(height: 12),Wrap(spacing: 8, runSpacing: 8, alignment: WrapAlignment.center, children: [- if (!_isLoading) _chip(Icons.podcasts_rounded, '${_episodes.length} episode${_episodes.length == 1 ? '' : 's'}'),- if (_autoDownloadEnabled) _chip(Icons.downloading_rounded, 'Auto-Download'),- if (_subscribed) _chip(Icons.notifications_active_rounded, 'Subscribed', highlight: true),+ if (!_isLoading) _chip(Icons.podcasts_rounded, l.episodeListEpisodeCount(_episodes.length)),+ if (_autoDownloadEnabled) _chip(Icons.downloading_rounded, l.episodeListAutoDownloadChip),+ if (_subscribed) _chip(Icons.notifications_active_rounded, l.episodeListSubscribedChip, highlight: true),..._genres.take(3).map((g) => _chip(Icons.tag_rounded, g)),if (_language.isNotEmpty) _chip(Icons.language_rounded, _language.toUpperCase()),- if (_explicit) _chip(Icons.explicit_rounded, 'Explicit'),+ if (_explicit) _chip(Icons.explicit_rounded, l.episodeListExplicitChip),if (_type.isNotEmpty && _type != 'episodic') _chip(Icons.list_rounded, _type[0].toUpperCase() + _type.substring(1)),]),@@ -621,7 +635,7 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {child: Icon(Icons.close_rounded, size: 20, color: cs.onSurfaceVariant),),const SizedBox(width: 8),- Text('${_selectedEpisodeIds.length} selected',+ Text(l.selectedCount(_selectedEpisodeIds.length),style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),const SizedBox(width: 8),GestureDetector(@@ -644,11 +658,11 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {}});},- child: Text('Select All',+ child: Text(l.selectAll,style: TextStyle(fontSize: 12, color: cs.primary, fontWeight: FontWeight.w500)),),] else ...[- Text('Episodes', style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),+ Text(l.episodes, style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),],const Spacer(),if (!_selectMode) ...[@@ -665,7 +679,7 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {child: Row(mainAxisSize: MainAxisSize.min,children: [- Text(_newestFirst ? 'Newest' : 'Oldest',+ Text(_newestFirst ? l.episodeListSortNewest : l.episodeListSortOldest,style: TextStyle(fontSize: 11, color: cs.onSurfaceVariant.withValues(alpha: 0.6))),const SizedBox(width: 2),Icon(_newestFirst ? Icons.arrow_downward_rounded : Icons.arrow_upward_rounded,@@ -692,7 +706,7 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {SizedBox(height: 120),Icon(Icons.podcasts_rounded, size: 48, color: cs.onSurface.withValues(alpha: 0.15)),const SizedBox(height: 12),- Center(child: Text('No episodes found', style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant))),+ Center(child: Text(l.noEpisodesFound, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant))),],): Builder(builder: (context) {@@ -746,7 +760,7 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {}final absorbKey = '$_itemId-$epId';final isOnAbsorbing = lib.isOnAbsorbingList(absorbKey);- final epTitle = ep['title'] as String? ?? 'Episode';+ final epTitle = ep['title'] as String? ?? l.episodeListEpisodeFallback;return Dismissible(key: ValueKey('absorb-$absorbKey'),direction: isOnAbsorbing ? DismissDirection.none : DismissDirection.startToEnd,@@ -758,7 +772,7 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {lib.absorbingItemCache[absorbKey] = cached;HapticFeedback.mediumImpact();if (context.mounted) {- showOverlayToast(context, 'Added "$epTitle" to Absorbing', icon: Icons.add_circle_outline_rounded);+ showOverlayToast(context, l.episodeListAddedToAbsorbing(epTitle), icon: Icons.add_circle_outline_rounded);}return false;},@@ -800,7 +814,7 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {Expanded(child: FilledButton.tonalIcon(onPressed: () => _batchMarkFinished(true),icon: const Icon(Icons.check_circle_rounded, size: 18),- label: const Text('Mark Finished'),+ label: Text(l.markFinished),style: FilledButton.styleFrom(visualDensity: VisualDensity.compact,),@@ -809,7 +823,7 @@ class _EpisodeListSheetState extends State<EpisodeListSheet> {Expanded(child: OutlinedButton.icon(onPressed: () => _batchMarkFinished(false),icon: const Icon(Icons.radio_button_unchecked_rounded, size: 18),- label: const Text('Mark Unfinished'),+ label: Text(l.markUnfinished),style: OutlinedButton.styleFrom(visualDensity: VisualDensity.compact,),diff --git a/lib/widgets/episode_row.dart b/lib/widgets/episode_row.dartindex 6de0ff49..39f62a5a 100644--- a/lib/widgets/episode_row.dart+++ b/lib/widgets/episode_row.dart@@ -1,5 +1,6 @@import 'package:flutter/material.dart';import 'package:provider/provider.dart';+import '../l10n/app_localizations.dart';import '../providers/library_provider.dart';import '../services/download_service.dart';import 'episode_detail_sheet.dart';@@ -30,10 +31,11 @@ class _EpisodeRowState extends State<EpisodeRow> {@overrideWidget build(BuildContext context) {final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;final lib = context.watch<LibraryProvider>();final ep = widget.episode;- final title = ep['title'] as String? ?? 'Episode';+ final title = ep['title'] as String? ?? l.episodeRowEpisode;final episodeId = ep['id'] as String? ?? '';final duration = (ep['duration'] as num?)?.toDouble() ?? 0;final publishedAt = (ep['publishedAt'] as num?)?.toInt() ?? 0;@@ -55,13 +57,13 @@ class _EpisodeRowState extends State<EpisodeRow> {final now = DateTime.now();final diff = now.difference(date);if (diff.inDays == 0) {- dateLabel = 'Today';+ dateLabel = l.episodeRowToday;} else if (diff.inDays == 1) {- dateLabel = 'Yesterday';+ dateLabel = l.episodeRowYesterday;} else if (diff.inDays < 7) {- dateLabel = '${diff.inDays}d ago';+ dateLabel = l.episodeRowDaysAgo(diff.inDays);} else if (diff.inDays < 30) {- dateLabel = '${(diff.inDays / 7).floor()}w ago';+ dateLabel = l.episodeRowWeeksAgo((diff.inDays / 7).floor());} else {dateLabel = '${date.year}-${date.month.toString().padLeft(2, '0')}-${date.day.toString().padLeft(2, '0')}';}@@ -73,9 +75,9 @@ class _EpisodeRowState extends State<EpisodeRow> {final h = (duration / 3600).floor();final m = ((duration % 3600) / 60).floor();if (h > 0) {- durationLabel = '${h}h ${m}m';+ durationLabel = l.episodeRowDurationHm(h, m);} else {- durationLabel = '${m}m';+ durationLabel = l.episodeRowDurationM(m);}}@@ -130,8 +132,8 @@ class _EpisodeRowState extends State<EpisodeRow> {const SizedBox(height: 2),Text([- if (season != null) 'S$season',- if (episodeNumber != null) 'E$episodeNumber',+ if (season != null) l.episodeRowSeasonShort(season),+ if (episodeNumber != null) l.episodeRowEpisodeShort(episodeNumber),].join(' '),style: TextStyle(fontSize: 11, color: cs.onSurfaceVariant.withValues(alpha: 0.5)),),@@ -252,9 +254,10 @@ class SelectableEpisodeRow extends StatelessWidget {@overrideWidget build(BuildContext context) {final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;final lib = context.watch<LibraryProvider>();- final title = episode['title'] as String? ?? 'Episode';+ final title = episode['title'] as String? ?? l.episodeRowEpisode;final episodeId = episode['id'] as String? ?? '';final duration = (episode['duration'] as num?)?.toDouble() ?? 0;@@ -265,7 +268,7 @@ class SelectableEpisodeRow extends StatelessWidget {if (duration > 0) {final h = (duration / 3600).floor();final m = ((duration % 3600) / 60).floor();- durationLabel = h > 0 ? '${h}h ${m}m' : '${m}m';+ durationLabel = h > 0 ? l.episodeRowDurationHm(h, m) : l.episodeRowDurationM(m);}return Row(children: [diff --git a/lib/widgets/equalizer_sheet.dart b/lib/widgets/equalizer_sheet.dartindex c3e92688..3dd7fef9 100644--- a/lib/widgets/equalizer_sheet.dart+++ b/lib/widgets/equalizer_sheet.dart@@ -1,5 +1,6 @@import 'dart:io' show Platform;import 'package:flutter/material.dart';+import '../l10n/app_localizations.dart';import '../services/equalizer_service.dart';/// Show the equalizer & audio enhancements bottom sheet.@@ -234,15 +235,29 @@ class _EqualizerSheetContentState extends State<_EqualizerSheetContent> {}}+ String _presetLabel(AppLocalizations l, String name) {+ switch (name) {+ case 'flat': return l.equalizerPresetFlat;+ case 'voice boost': return l.equalizerPresetVoiceBoost;+ case 'bass boost': return l.equalizerPresetBassBoost;+ case 'treble boost': return l.equalizerPresetTrebleBoost;+ case 'podcast': return l.equalizerPresetPodcast;+ case 'audiobook': return l.equalizerPresetAudiobook;+ case 'reduce noise': return l.equalizerPresetReduceNoise;+ case 'loudness': return l.equalizerPresetLoudness;+ default: return name[0].toUpperCase() + name.substring(1);+ }+ }+/// Shown only in preview mode (per-book EQ on, viewing a non-playing book's/// settings). The sliders already reflect the correct book's EQ, but we/// still surface the fact that edits won't hit live playback right now.- Widget _buildScopeBanner(ColorScheme cs, TextTheme tt, Color accent) {+ Widget _buildScopeBanner(ColorScheme cs, TextTheme tt, Color accent, AppLocalizations l) {if (!_previewMode) return const SizedBox.shrink();final message = widget.openedForItemTitle != null- ? 'Editing saved EQ for "${widget.openedForItemTitle}" - applies when it plays'- : 'Editing saved EQ for this book - applies when it plays';+ ? l.equalizerEditingSavedNamed(widget.openedForItemTitle!)+ : l.equalizerEditingSavedGeneric;return Padding(padding: const EdgeInsets.fromLTRB(20, 8, 20, 0),@@ -269,6 +284,7 @@ class _EqualizerSheetContentState extends State<_EqualizerSheetContent> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final accent = widget.accent;return Container(@@ -294,7 +310,7 @@ class _EqualizerSheetContentState extends State<_EqualizerSheetContent> {children: [Icon(Icons.equalizer_rounded, size: 22, color: accent),const SizedBox(width: 10),- Text('Audio Enhancements', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),+ Text(l.audioEnhancements, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),const Spacer(),// Master toggleTransform.scale(@@ -326,7 +342,7 @@ class _EqualizerSheetContentState extends State<_EqualizerSheetContent> {color: _eq.perItem ? accent : cs.onSurfaceVariant),const SizedBox(width: 8),Expanded(- child: Text('Per-book EQ',+ child: Text(l.equalizerPerBookEq,style: tt.labelMedium?.copyWith(color: _eq.perItem ? accent : cs.onSurface.withValues(alpha: 0.75),fontWeight: FontWeight.w600)),@@ -343,7 +359,7 @@ class _EqualizerSheetContentState extends State<_EqualizerSheetContent> {),),),- _buildScopeBanner(cs, tt, accent),+ _buildScopeBanner(cs, tt, accent, l),const SizedBox(height: 4),// ContentExpanded(@@ -353,7 +369,7 @@ class _EqualizerSheetContentState extends State<_EqualizerSheetContent> {children: [const SizedBox(height: 8),// ── Presets ──- Text('PRESETS', style: tt.labelSmall?.copyWith(+ Text(l.presets, style: tt.labelSmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.3), letterSpacing: 1.5, fontWeight: FontWeight.w600)),const SizedBox(height: 10),Wrap(@@ -373,7 +389,7 @@ class _EqualizerSheetContentState extends State<_EqualizerSheetContent> {),),child: Text(- name[0].toUpperCase() + name.substring(1),+ _presetLabel(l, name),style: TextStyle(color: _vEnabled? (isActive ? accent : cs.onSurface.withValues(alpha: 0.7))@@ -398,7 +414,7 @@ class _EqualizerSheetContentState extends State<_EqualizerSheetContent> {borderRadius: BorderRadius.circular(20),border: Border.all(color: accent.withValues(alpha: 0.5)),),- child: Text('Custom', style: TextStyle(+ child: Text(l.custom, style: TextStyle(color: accent, fontSize: 12, fontWeight: FontWeight.w700)),),),@@ -406,7 +422,7 @@ class _EqualizerSheetContentState extends State<_EqualizerSheetContent> {const SizedBox(height: 20),// ── EQ Bands ──- Text('EQUALIZER', style: tt.labelSmall?.copyWith(+ Text(l.equalizer, style: tt.labelSmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.3), letterSpacing: 1.5, fontWeight: FontWeight.w600)),const SizedBox(height: 12),SizedBox(@@ -431,14 +447,14 @@ class _EqualizerSheetContentState extends State<_EqualizerSheetContent> {const SizedBox(height: 20),// ── Audio Effects ──- Text('EFFECTS', style: tt.labelSmall?.copyWith(+ Text(l.effects, style: tt.labelSmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.3), letterSpacing: 1.5, fontWeight: FontWeight.w600)),const SizedBox(height: 12),// Bass Boost_EffectRow(icon: Icons.speaker_rounded,- label: 'Bass Boost',+ label: l.bassBoost,value: _vBass,accent: accent,enabled: _vEnabled,@@ -450,7 +466,7 @@ class _EqualizerSheetContentState extends State<_EqualizerSheetContent> {if (Platform.isAndroid) ...[_EffectRow(icon: Icons.surround_sound_rounded,- label: 'Surround',+ label: l.surround,value: _vVirt,accent: accent,enabled: _vEnabled,@@ -462,7 +478,7 @@ class _EqualizerSheetContentState extends State<_EqualizerSheetContent> {// Loudness_EffectRow(icon: Icons.volume_up_rounded,- label: 'Loudness',+ label: l.loudness,value: _vLoud,accent: accent,enabled: _vEnabled,@@ -483,7 +499,7 @@ class _EqualizerSheetContentState extends State<_EqualizerSheetContent> {color: _vMono ? accent.withValues(alpha: 0.7) : cs.onSurface.withValues(alpha: 0.2)),const SizedBox(width: 10),Expanded(- child: Text('Mono Audio', style: TextStyle(+ child: Text(l.monoAudio, style: TextStyle(color: _vMono ? cs.onSurface.withValues(alpha: 0.7) : cs.onSurface.withValues(alpha: 0.24),fontSize: 12, fontWeight: FontWeight.w500)),),@@ -507,7 +523,7 @@ class _EqualizerSheetContentState extends State<_EqualizerSheetContent> {onPressed: _vEnabled ? () => _resetAll() : null,icon: Icon(Icons.refresh_rounded, size: 18,color: _vEnabled ? cs.onSurfaceVariant : cs.onSurface.withValues(alpha: 0.12)),- label: Text('Reset All', style: TextStyle(+ label: Text(l.resetAll, style: TextStyle(color: _vEnabled ? cs.onSurfaceVariant : cs.onSurface.withValues(alpha: 0.12),fontSize: 13)),),diff --git a/lib/widgets/expanded_card.dart b/lib/widgets/expanded_card.dartindex 1ea1a094..eb6eeb86 100644--- a/lib/widgets/expanded_card.dart+++ b/lib/widgets/expanded_card.dart@@ -4,6 +4,7 @@ import 'dart:ui' as ui;import 'package:flutter/material.dart';import 'package:provider/provider.dart';import 'package:cached_network_image/cached_network_image.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';import '../services/audio_player_service.dart';@@ -97,7 +98,11 @@ class _ExpandedCardState extends State<ExpandedCard> {String get _itemId => _item['id'] as String? ?? '';Map<String, dynamic> get _media => _item['media'] as Map<String, dynamic>? ?? {};Map<String, dynamic> get _metadata => _media['metadata'] as Map<String, dynamic>? ?? {};- String get _title => _metadata['title'] as String? ?? 'Unknown';+ String get _title {+ final t = _metadata['title'] as String?;+ if (t != null && t.isNotEmpty) return t;+ return mounted ? AppLocalizations.of(context)!.unknown : 'Unknown';+ }String get _author => _metadata['authorName'] as String? ?? '';double get _duration => (_media['duration'] as num?)?.toDouble() ?? 0;List<dynamic> get _chapters {@@ -291,11 +296,12 @@ class _ExpandedCardState extends State<ExpandedCard> {}// Fallback: synthesize from player data+ final fallbackTitle = mounted ? AppLocalizations.of(context)!.unknown : 'Unknown';newItem ??= {'id': newItemId,'media': {'metadata': {- 'title': widget.player.currentTitle ?? 'Unknown',+ 'title': widget.player.currentTitle ?? fallbackTitle,'authorName': widget.player.currentAuthor ?? '',},'duration': widget.player.totalDuration,@@ -498,6 +504,7 @@ class _ExpandedCardState extends State<ExpandedCard> {final cs = _coverScheme ?? Theme.of(context).colorScheme;final accent = cs.primary;final isDark = Theme.of(context).brightness == Brightness.dark;+ final l = AppLocalizations.of(context)!;final lib = context.watch<LibraryProvider>();final mediaHeaders = lib.mediaHeaders;@@ -639,7 +646,7 @@ class _ExpandedCardState extends State<ExpandedCard> {showSaved ? Icons.download_done_rounded : Icons.cell_tower_rounded,size: 11, color: showSaved ? savedColor : streamColor),const SizedBox(width: 3),- Text(showSaved ? 'Saved' : 'Streaming', style: TextStyle(+ Text(showSaved ? l.saved : l.expandedCardStreaming, style: TextStyle(fontSize: 10, fontWeight: FontWeight.w500,color: showSaved ? savedColor : streamColor,)),@@ -745,12 +752,12 @@ class _ExpandedCardState extends State<ExpandedCard> {children: [Icon(Icons.cast_connected_rounded, size: 36, color: accent.withValues(alpha: 0.9)),const SizedBox(height: 8),- Text('Casting to', style: TextStyle(color: Colors.white.withValues(alpha: 0.6), fontSize: 11, fontWeight: FontWeight.w500)),+ Text(l.castingTo, style: TextStyle(color: Colors.white.withValues(alpha: 0.6), fontSize: 11, fontWeight: FontWeight.w500)),const SizedBox(height: 2),Padding(padding: const EdgeInsets.symmetric(horizontal: 16),child: Text(- castService.connectedDeviceName ?? 'Device',+ castService.connectedDeviceName ?? l.expandedCardDeviceFallback,style: TextStyle(color: accent, fontSize: 14, fontWeight: FontWeight.w700),textAlign: TextAlign.center,maxLines: 2,@@ -826,12 +833,12 @@ class _ExpandedCardState extends State<ExpandedCard> {? [Icon(Icons.cast_connected_rounded, size: 20, color: accent),const SizedBox(width: 6),- Text('Casting', style: TextStyle(fontSize: 13, fontWeight: FontWeight.w500, color: accent)),+ Text(l.casting, style: TextStyle(fontSize: 13, fontWeight: FontWeight.w500, color: accent)),]: [Icon(Icons.more_horiz_rounded, size: 20, color: cs.onSurface.withValues(alpha: 0.54)),const SizedBox(width: 6),- Text('More', style: TextStyle(fontSize: 13, fontWeight: FontWeight.w500, color: cs.onSurface.withValues(alpha: 0.54))),+ Text(l.more, style: TextStyle(fontSize: 13, fontWeight: FontWeight.w500, color: cs.onSurface.withValues(alpha: 0.54))),],),),diff --git a/lib/widgets/home_customize_sheet.dart b/lib/widgets/home_customize_sheet.dartindex 300c03ef..7d018732 100644--- a/lib/widgets/home_customize_sheet.dart+++ b/lib/widgets/home_customize_sheet.dart@@ -1,6 +1,7 @@import 'package:flutter/material.dart';import 'package:flutter/services.dart';import 'package:provider/provider.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';@@ -108,6 +109,7 @@ class _HomeCustomizeSheetState extends State<HomeCustomizeSheet> {final alreadyAdded = lib.addedGenres;if (!context.mounted) return;+ final l = AppLocalizations.of(context)!;await showModalBottomSheet(context: context,isScrollControlled: true,@@ -131,9 +133,9 @@ class _HomeCustomizeSheetState extends State<HomeCustomizeSheet> {),)),const SizedBox(height: 16),- Text('Add Genre Section', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),+ Text(l.homeCustomizeAddGenreTitle, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),const SizedBox(height: 4),- Text('Pick a genre to show on your home screen',+ Text(l.homeCustomizeAddGenreSubtitle,style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),const SizedBox(height: 12),Divider(height: 1, color: cs.outlineVariant.withValues(alpha: 0.3), indent: 20, endIndent: 20),@@ -141,7 +143,7 @@ class _HomeCustomizeSheetState extends State<HomeCustomizeSheet> {child: genres.isEmpty? ListView(controller: sc, children: [const SizedBox(height: 60),- Center(child: Text('No genres found', style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant))),+ Center(child: Text(l.noGenresFound, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant))),]): ListView.builder(controller: sc,@@ -205,6 +207,7 @@ class _HomeCustomizeSheetState extends State<HomeCustomizeSheet> {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;final lib = context.read<LibraryProvider>();+ final l = AppLocalizations.of(context)!;_initSections(lib);@@ -224,12 +227,12 @@ class _HomeCustomizeSheetState extends State<HomeCustomizeSheet> {child: Row(children: [GestureDetector(onTap: () => _reset(lib),- child: Text('Reset', style: tt.labelMedium?.copyWith(+ child: Text(l.reset, style: tt.labelMedium?.copyWith(color: cs.primary, fontWeight: FontWeight.w500,)),),const Spacer(),- Text('Customize Home', style: tt.titleMedium?.copyWith(+ Text(l.customizeHome, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface,)),const Spacer(),@@ -245,7 +248,7 @@ class _HomeCustomizeSheetState extends State<HomeCustomizeSheet> {onTap: () => _save(lib),child: Padding(padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 6),- child: Text('Done', style: tt.labelLarge?.copyWith(+ child: Text(l.done, style: tt.labelLarge?.copyWith(color: cs.primary, fontWeight: FontWeight.w600,)),),@@ -256,7 +259,7 @@ class _HomeCustomizeSheetState extends State<HomeCustomizeSheet> {Padding(padding: const EdgeInsets.symmetric(horizontal: 20),child: Text(- 'Drag to reorder, tap eye to show/hide',+ l.dragToReorderTapEye,style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant),textAlign: TextAlign.center,),diff --git a/lib/widgets/home_section.dart b/lib/widgets/home_section.dartindex 10e2de1f..3cfb5998 100644--- a/lib/widgets/home_section.dart+++ b/lib/widgets/home_section.dart@@ -1,6 +1,7 @@import 'dart:io';import 'package:flutter/material.dart';import 'package:provider/provider.dart';+import '../l10n/app_localizations.dart';import '../providers/library_provider.dart';import '../services/download_service.dart';import 'absorbing_shared.dart';@@ -244,6 +245,7 @@ class _EpisodeCard extends StatelessWidget {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;final lib = context.watch<LibraryProvider>();+ final l = AppLocalizations.of(context)!;final itemId = item['id'] as String? ?? '';final media = item['media'] as Map<String, dynamic>? ?? {};@@ -351,7 +353,7 @@ class _EpisodeCard extends StatelessWidget {Icon(Icons.check_circle_rounded,size: 10, color: Theme.of(context).brightness == Brightness.dark ? Colors.greenAccent[400] : Colors.green.shade700),const SizedBox(width: 3),- Text('Done',+ Text(l.homeSectionDoneBadge,style: TextStyle(fontSize: 9,fontWeight: FontWeight.w600,@@ -363,7 +365,7 @@ class _EpisodeCard extends StatelessWidget {Icon(Icons.download_done_rounded,size: 10, color: cs.primary),const SizedBox(width: 3),- Text('Saved',+ Text(l.saved,style: TextStyle(fontSize: 9,fontWeight: FontWeight.w600,diff --git a/lib/widgets/html_description.dart b/lib/widgets/html_description.dartindex 799d176f..d3d38309 100644--- a/lib/widgets/html_description.dart+++ b/lib/widgets/html_description.dart@@ -1,6 +1,7 @@import 'package:flutter/gestures.dart';import 'package:flutter/material.dart';import 'package:url_launcher/url_launcher.dart';+import '../l10n/app_localizations.dart';/// Lightweight HTML-to-RichText widget with clickable links.///@@ -37,6 +38,7 @@ class _HtmlDescriptionState extends State<HtmlDescription> {@overrideWidget build(BuildContext context) {final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;final baseStyle = widget.style ?? Theme.of(context).textTheme.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.7), height: 1.5);final linkColor = widget.linkColor ?? cs.primary;@@ -68,7 +70,7 @@ class _HtmlDescriptionState extends State<HtmlDescription> {child: GestureDetector(onTap: () => setState(() => _expanded = !_expanded),child: Text(- _expanded ? 'Show less' : 'Show more',+ _expanded ? l.showLess : l.showMore,style: TextStyle(fontSize: 12, color: linkColor, fontWeight: FontWeight.w500),),),diff --git a/lib/widgets/library_authors_tab.dart b/lib/widgets/library_authors_tab.dartindex ff869b9e..93c4517c 100644--- a/lib/widgets/library_authors_tab.dart+++ b/lib/widgets/library_authors_tab.dart@@ -1,4 +1,5 @@import 'package:flutter/material.dart';+import '../l10n/app_localizations.dart';import '../screens/library_screen.dart';import 'library_grid_tiles.dart';@@ -22,6 +23,7 @@ class LibraryAuthorsTab extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;if (isLoadingAuthors) {return const Center(child: CircularProgressIndicator());@@ -40,7 +42,7 @@ class LibraryAuthorsTab extends StatelessWidget {Icon(Icons.people_outline_rounded,size: 56, color: cs.onSurfaceVariant.withValues(alpha: 0.3)),const SizedBox(height: 12),- Text('No authors found',+ Text(l.libraryNoAuthorsFound,style: tt.bodyLarge?.copyWith(color: cs.onSurfaceVariant)),],),diff --git a/lib/widgets/library_books_tab.dart b/lib/widgets/library_books_tab.dartindex 2734b660..7f921a31 100644--- a/lib/widgets/library_books_tab.dart+++ b/lib/widgets/library_books_tab.dart@@ -1,4 +1,5 @@import 'package:flutter/material.dart';+import '../l10n/app_localizations.dart';import '../screens/library_screen.dart';import 'library_grid_tiles.dart';@@ -32,20 +33,21 @@ class LibraryBooksTab extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;if (items.isEmpty && isLoadingPage) {return const Center(child: CircularProgressIndicator());}if (items.isEmpty && !isLoadingPage) {final filterMsg = switch (filter) {- LibraryFilter.inProgress => 'No books in progress',- LibraryFilter.finished => 'No finished books',- LibraryFilter.notStarted => 'All books have been started',- LibraryFilter.downloaded => 'No downloaded books',- LibraryFilter.inASeries => 'No series found',- LibraryFilter.hasEbook => 'No books with eBooks',- LibraryFilter.genre => 'No books in "${genreFilter ?? 'genre'}"',- LibraryFilter.none => 'No books found',+ LibraryFilter.inProgress => l.libraryNoBooksInProgress,+ LibraryFilter.finished => l.libraryNoFinishedBooks,+ LibraryFilter.notStarted => l.libraryAllBooksStarted,+ LibraryFilter.downloaded => l.libraryNoDownloadedBooks,+ LibraryFilter.inASeries => l.libraryNoSeriesFound,+ LibraryFilter.hasEbook => l.libraryNoBooksWithEbooks,+ LibraryFilter.genre => l.libraryNoBooksInGenre(genreFilter ?? l.genre.toLowerCase()),+ LibraryFilter.none => l.libraryNoBooks,};return RefreshIndicator(onRefresh: onRefresh,@@ -66,7 +68,7 @@ class LibraryBooksTab extends StatelessWidget {const SizedBox(height: 8),GestureDetector(onTap: onClearFilter,- child: Text('Clear filter',+ child: Text(l.libraryClearFilter,style: tt.bodySmall?.copyWith(color: cs.primary)),),],diff --git a/lib/widgets/library_grid_tiles.dart b/lib/widgets/library_grid_tiles.dartindex 30b333cb..e0482b46 100644--- a/lib/widgets/library_grid_tiles.dart+++ b/lib/widgets/library_grid_tiles.dart@@ -2,6 +2,7 @@ import 'dart:io';import 'package:flutter/material.dart';import 'package:cached_network_image/cached_network_image.dart';import 'package:provider/provider.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';import '../services/audio_player_service.dart';@@ -49,12 +50,13 @@ class _GridBookTileState extends State<GridBookTile> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final lib = context.watch<LibraryProvider>();final itemId = widget.item['id'] as String? ?? '';final media = widget.item['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? l.unknown;final author = metadata['authorName'] as String? ?? '';final coverUrl = lib.getCoverUrl(itemId);final progress = lib.getProgress(itemId);@@ -130,7 +132,7 @@ class _GridBookTileState extends State<GridBookTile> {color: Colors.red.withValues(alpha: 0.85),borderRadius: BorderRadius.circular(4),),- child: const Text('E', style: TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w800)),+ child: Text(l.libraryGridTilesExplicitBadge, style: const TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w800)),),),@@ -144,7 +146,7 @@ class _GridBookTileState extends State<GridBookTile> {color: Colors.black.withValues(alpha: 0.7),borderRadius: BorderRadius.circular(6),),- child: Text('#${widget.sequenceBadge}',+ child: Text(l.libraryGridTilesSequence(widget.sequenceBadge!),style: const TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w600)),),),@@ -176,7 +178,7 @@ class _GridBookTileState extends State<GridBookTile> {Icon(Icons.check_circle_rounded,size: 10, color: Theme.of(context).brightness == Brightness.dark ? Colors.greenAccent[400] : Colors.green.shade700),const SizedBox(width: 3),- Text('Done',+ Text(l.libraryGridTilesDone,style: TextStyle(fontSize: 9,fontWeight: FontWeight.w600,@@ -188,7 +190,7 @@ class _GridBookTileState extends State<GridBookTile> {Icon(Icons.download_done_rounded,size: 10, color: cs.primary),const SizedBox(width: 3),- Text('Saved',+ Text(l.libraryGridTilesSaved,style: TextStyle(fontSize: 9,fontWeight: FontWeight.w600,@@ -285,6 +287,7 @@ class _StackedCovers extends StatelessWidget {@overrideWidget build(BuildContext context) {+ final l = AppLocalizations.of(context)!;final count = coverUrls.length.clamp(1, 4);const inset = 5.0;@@ -380,7 +383,7 @@ class _StackedCovers extends StatelessWidget {Icon(Icons.check_circle_rounded, size: 10,color: Colors.greenAccent),const SizedBox(width: 3),- Text('Finished',+ Text(l.finished,style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600,color: Colors.white.withValues(alpha: 0.9))),],@@ -456,11 +459,12 @@ class GridSeriesTile extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final lib = context.watch<LibraryProvider>();final auth = context.read<AuthProvider>();final collapsedSeries = item['collapsedSeries'] as Map<String, dynamic>? ?? {};- final seriesName = collapsedSeries['name'] as String? ?? 'Unknown Series';+ final seriesName = collapsedSeries['name'] as String? ?? l.libraryGridTilesUnknownSeries;final seriesId = collapsedSeries['id'] as String? ?? '';final media = item['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};@@ -558,10 +562,11 @@ class GridSeriesTileDirect extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final lib = context.watch<LibraryProvider>();final auth = context.read<AuthProvider>();- final seriesName = series['name'] as String? ?? 'Unknown Series';+ final seriesName = series['name'] as String? ?? l.libraryGridTilesUnknownSeries;final seriesId = series['id'] as String? ?? '';final books = series['books'] as List<dynamic>? ?? [];final numBooks = books.length;@@ -664,10 +669,11 @@ class GridAuthorTile extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final auth = context.read<AuthProvider>();final lib = context.read<LibraryProvider>();- final name = author['name'] as String? ?? 'Unknown';+ final name = author['name'] as String? ?? l.unknown;final authorId = author['id'] as String? ?? '';final numBooks = author['numBooks'] as int? ?? 0;diff --git a/lib/widgets/library_search_results.dart b/lib/widgets/library_search_results.dartindex 9cee1809..3ebf0f4b 100644--- a/lib/widgets/library_search_results.dart+++ b/lib/widgets/library_search_results.dart@@ -1,6 +1,7 @@import 'package:flutter/material.dart';import 'package:cached_network_image/cached_network_image.dart';import 'package:provider/provider.dart';+import '../l10n/app_localizations.dart';import '../providers/library_provider.dart';import '../services/audio_player_service.dart';import '../services/download_service.dart';@@ -29,11 +30,12 @@ class BookResultTile extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final itemId = item['id'] as String?;final media = item['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? l.unknown;final authorName = metadata['authorName'] as String? ?? '';final lib = context.watch<LibraryProvider>();final isExplicit = PlayerSettings.showExplicitBadge && metadata['explicit'] == true;@@ -97,7 +99,7 @@ class BookResultTile extends StatelessWidget {color: Colors.black.withValues(alpha: 0.7),borderRadius: BorderRadius.circular(4),),- child: Text('#$sequenceBadge',+ child: Text(l.librarySearchResultsSequence(sequenceBadge!),style: const TextStyle(color: Colors.white, fontSize: 8, fontWeight: FontWeight.w600)),),),@@ -110,7 +112,7 @@ class BookResultTile extends StatelessWidget {color: Colors.red.withValues(alpha: 0.85),borderRadius: BorderRadius.circular(3),),- child: const Text('E', style: TextStyle(color: Colors.white, fontSize: 7, fontWeight: FontWeight.w800)),+ child: Text(l.librarySearchResultsExplicitBadge, style: const TextStyle(color: Colors.white, fontSize: 7, fontWeight: FontWeight.w800)),),),if (isFinished || isDownloaded)@@ -132,13 +134,13 @@ class BookResultTile extends StatelessWidget {if (isFinished) ...[Icon(Icons.check_circle_rounded, size: 8, color: greenColor),const SizedBox(width: 2),- Text('Done', style: TextStyle(fontSize: 7, fontWeight: FontWeight.w600, color: greenColor)),+ Text(l.librarySearchResultsDone, style: TextStyle(fontSize: 7, fontWeight: FontWeight.w600, color: greenColor)),],if (isFinished && isDownloaded) const SizedBox(width: 4),if (isDownloaded) ...[Icon(Icons.download_done_rounded, size: 8, color: cs.primary),const SizedBox(width: 2),- Text('Saved', style: TextStyle(fontSize: 7, fontWeight: FontWeight.w600, color: cs.primary)),+ Text(l.librarySearchResultsSaved, style: TextStyle(fontSize: 7, fontWeight: FontWeight.w600, color: cs.primary)),],],),@@ -216,7 +218,8 @@ class SeriesResultCard extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;- final seriesName = series['name'] as String? ?? 'Unknown Series';+ final l = AppLocalizations.of(context)!;+ final seriesName = series['name'] as String? ?? l.librarySearchResultsUnknownSeries;return Padding(padding: const EdgeInsets.only(bottom: 6),@@ -257,7 +260,7 @@ class SeriesResultCard extends StatelessWidget {fontWeight: FontWeight.w600,color: cs.onSurface)),Text(- '${books.length} book${books.length != 1 ? 's' : ''}',+ l.librarySearchResultsBookCount(books.length),style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),],@@ -303,8 +306,9 @@ class EpisodeResultTile extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;- final episodeTitle = episode['title'] as String? ?? 'Unknown Episode';+ final episodeTitle = episode['title'] as String? ?? l.librarySearchResultsUnknownEpisode;final showMedia = show['media'] as Map<String, dynamic>? ?? {};final showMeta = showMedia['metadata'] as Map<String, dynamic>? ?? {};final showTitle = showMeta['title'] as String? ?? '';@@ -405,8 +409,9 @@ class AuthorResultTile extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;- final name = author['name'] as String? ?? 'Unknown';+ final name = author['name'] as String? ?? l.unknown;final authorId = author['id'] as String? ?? '';final numBooks = author['numBooks'] as int?;@@ -468,7 +473,7 @@ class AuthorResultTile extends StatelessWidget {color: cs.onSurface)),if (numBooks != null)Text(- '$numBooks book${numBooks != 1 ? 's' : ''}',+ l.librarySearchResultsBookCount(numBooks),style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),],diff --git a/lib/widgets/library_series_tab.dart b/lib/widgets/library_series_tab.dartindex 2c6e4690..56e5da15 100644--- a/lib/widgets/library_series_tab.dart+++ b/lib/widgets/library_series_tab.dart@@ -1,4 +1,5 @@import 'package:flutter/material.dart';+import '../l10n/app_localizations.dart';import '../screens/library_screen.dart';import 'library_grid_tiles.dart';@@ -26,6 +27,7 @@ class LibrarySeriesTab extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;if (seriesItems.isEmpty && isLoadingSeriesPage) {return const Center(child: CircularProgressIndicator());@@ -44,7 +46,7 @@ class LibrarySeriesTab extends StatelessWidget {Icon(Icons.collections_bookmark_outlined,size: 56, color: cs.onSurfaceVariant.withValues(alpha: 0.3)),const SizedBox(height: 12),- Text('No series found',+ Text(l.libraryNoSeriesFound,style: tt.bodyLarge?.copyWith(color: cs.onSurfaceVariant)),],),diff --git a/lib/widgets/library_sort_filter_sheet.dart b/lib/widgets/library_sort_filter_sheet.dartindex 8a417e5a..d2c9ffbc 100644--- a/lib/widgets/library_sort_filter_sheet.dart+++ b/lib/widgets/library_sort_filter_sheet.dart@@ -1,5 +1,6 @@import 'dart:async';import 'package:flutter/material.dart';+import '../l10n/app_localizations.dart';import '../screens/library_screen.dart';/// Which library tab the sort/filter sheet is being shown for.@@ -70,6 +71,7 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProv@overrideWidget build(BuildContext context) {final cs = widget.cs;+ final l = AppLocalizations.of(context)!;return Container(decoration: BoxDecoration(color: cs.surface,@@ -90,24 +92,24 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProvdividerColor: Colors.transparent,tabs: [Tab(child: Row(mainAxisSize: MainAxisSize.min, children: [- Icon(Icons.sort_rounded, size: 18), const SizedBox(width: 6), const Text('Sort')])),+ Icon(Icons.sort_rounded, size: 18), const SizedBox(width: 6), Text(l.sort)])),Tab(child: Row(mainAxisSize: MainAxisSize.min, children: [Icon(Icons.filter_list_rounded, size: 18), const SizedBox(width: 6),- Text(widget.currentFilter != LibraryFilter.none ? 'Filter \u25cf' : 'Filter')])),+ Text(widget.currentFilter != LibraryFilter.none ? l.filterActive : l.filter)])),],)elsePadding(padding: const EdgeInsets.only(bottom: 8),- child: Text('Sort', style: TextStyle(+ child: Text(l.sort, style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: cs.primary)),),SizedBox(height: _calcHeight(),child: _showFilterTab? TabBarView(controller: _tabCtrl, children: [- _buildSortTab(cs), _buildFilterTab(cs)])- : _buildSortTab(cs),+ _buildSortTab(cs, l), _buildFilterTab(cs, l)])+ : _buildSortTab(cs, l),),SizedBox(height: MediaQuery.of(context).viewPadding.bottom + 8),],@@ -121,8 +123,8 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProvreturn _genreExpanded ? 420 : (widget.isPodcastLibrary ? 200 : 400);}- Widget _buildSortTab(ColorScheme cs) {- final sorts = _getSortOptions();+ Widget _buildSortTab(ColorScheme cs, AppLocalizations l) {+ final sorts = _getSortOptions(l);return ListView(padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),children: [@@ -140,7 +142,7 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProvchild: Row(mainAxisSize: MainAxisSize.min, children: [Icon(widget.sortAsc ? Icons.arrow_upward_rounded : Icons.arrow_downward_rounded, size: 14, color: cs.primary),const SizedBox(width: 4),- Text(widget.sortAsc ? 'ASC' : 'DESC', style: TextStyle(fontSize: 11, fontWeight: FontWeight.w600, color: cs.primary)),+ Text(widget.sortAsc ? l.asc : l.desc, style: TextStyle(fontSize: 11, fontWeight: FontWeight.w600, color: cs.primary)),]),),) : null,@@ -165,7 +167,7 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProvcolor: _collapseSeries ? cs.secondary : cs.onSurfaceVariant),const SizedBox(width: 12),Expanded(- child: Text('Collapse Series', style: TextStyle(+ child: Text(l.collapseSeries, style: TextStyle(fontSize: 14,fontWeight: _collapseSeries ? FontWeight.w600 : FontWeight.w400,color: _collapseSeries ? cs.secondary : cs.onSurface)),@@ -199,9 +201,9 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProvchild: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- Text('Upcoming Releases', style: TextStyle(+ Text(l.librarySortFilterUpcomingReleases, style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: cs.primary)),- Text('Scan Audible for new releases in your series', style: TextStyle(+ Text(l.librarySortFilterUpcomingReleasesSubtitle, style: TextStyle(fontSize: 11, color: cs.onSurfaceVariant)),],),@@ -215,45 +217,45 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProv);}- List<(LibrarySort, String, IconData)> _getSortOptions() {+ List<(LibrarySort, String, IconData)> _getSortOptions(AppLocalizations l) {switch (widget.libraryTab) {case LibraryTab.series:return [- (LibrarySort.alphabetical, 'Name', Icons.sort_by_alpha_rounded),- (LibrarySort.recentlyAdded, 'Date Added', Icons.schedule_rounded),- (LibrarySort.totalDuration, 'Number of Books', Icons.auto_stories_rounded),+ (LibrarySort.alphabetical, l.name, Icons.sort_by_alpha_rounded),+ (LibrarySort.recentlyAdded, l.dateAdded, Icons.schedule_rounded),+ (LibrarySort.totalDuration, l.numberOfBooks, Icons.auto_stories_rounded),];case LibraryTab.authors:return [- (LibrarySort.alphabetical, 'Name', Icons.sort_by_alpha_rounded),- (LibrarySort.totalDuration, 'Number of Books', Icons.auto_stories_rounded),+ (LibrarySort.alphabetical, l.name, Icons.sort_by_alpha_rounded),+ (LibrarySort.totalDuration, l.numberOfBooks, Icons.auto_stories_rounded),];case LibraryTab.library:if (widget.isPodcastLibrary) {return [- (LibrarySort.recentlyAdded, 'Date Added', Icons.schedule_rounded),- (LibrarySort.alphabetical, 'Title', Icons.sort_by_alpha_rounded),- (LibrarySort.random, 'Random', Icons.shuffle_rounded),+ (LibrarySort.recentlyAdded, l.dateAdded, Icons.schedule_rounded),+ (LibrarySort.alphabetical, l.title, Icons.sort_by_alpha_rounded),+ (LibrarySort.random, l.random, Icons.shuffle_rounded),];}return [- (LibrarySort.recentlyAdded, 'Date Added', Icons.schedule_rounded),- (LibrarySort.alphabetical, 'Title', Icons.sort_by_alpha_rounded),- (LibrarySort.authorName, 'Author', Icons.person_rounded),- (LibrarySort.publishedYear, 'Published Year', Icons.calendar_today_rounded),- (LibrarySort.duration, 'Duration', Icons.timelapse_rounded),- (LibrarySort.random, 'Random', Icons.shuffle_rounded),+ (LibrarySort.recentlyAdded, l.dateAdded, Icons.schedule_rounded),+ (LibrarySort.alphabetical, l.title, Icons.sort_by_alpha_rounded),+ (LibrarySort.authorName, l.author, Icons.person_rounded),+ (LibrarySort.publishedYear, l.publishedYear, Icons.calendar_today_rounded),+ (LibrarySort.duration, l.duration, Icons.timelapse_rounded),+ (LibrarySort.random, l.random, Icons.shuffle_rounded),];}}- Widget _buildFilterTab(ColorScheme cs) {+ Widget _buildFilterTab(ColorScheme cs, AppLocalizations l) {final filters = <(LibraryFilter, String, IconData)>[- (LibraryFilter.inProgress, 'In Progress', Icons.play_circle_outline_rounded),- (LibraryFilter.finished, 'Finished', Icons.check_circle_outline_rounded),- (LibraryFilter.notStarted, 'Not Started', Icons.circle_outlined),- (LibraryFilter.downloaded, 'Downloaded', Icons.download_done_rounded),- (LibraryFilter.hasEbook, 'Has eBook', Icons.menu_book_rounded),+ (LibraryFilter.inProgress, l.inProgress, Icons.play_circle_outline_rounded),+ (LibraryFilter.finished, l.filterFinished, Icons.check_circle_outline_rounded),+ (LibraryFilter.notStarted, l.notStarted, Icons.circle_outlined),+ (LibraryFilter.downloaded, l.downloaded, Icons.download_done_rounded),+ (LibraryFilter.hasEbook, l.hasEbook, Icons.menu_book_rounded),];return ListView(padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),@@ -269,7 +271,7 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProvchild: Row(children: [Icon(Icons.clear_rounded, size: 18, color: cs.error),const SizedBox(width: 10),- Text('Clear Filter', style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: cs.error)),+ Text(l.clearFilter, style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: cs.error)),]),),),@@ -284,7 +286,7 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProv}),SheetOption(icon: Icons.category_rounded,- label: 'Genre',+ label: l.genre,selected: widget.currentFilter == LibraryFilter.genre,selectedColor: cs.tertiary,trailing: Icon(_genreExpanded ? Icons.expand_less_rounded : Icons.expand_more_rounded, size: 20, color: cs.onSurfaceVariant),@@ -295,7 +297,7 @@ class _SortFilterSheetState extends State<SortFilterSheet> with SingleTickerProvpadding: const EdgeInsets.only(left: 16),child: widget.availableGenres.isEmpty? Padding(padding: const EdgeInsets.all(12),- child: Text('No genres found', style: TextStyle(fontSize: 12, color: cs.onSurfaceVariant)))+ child: Text(l.noGenresFound, style: TextStyle(fontSize: 12, color: cs.onSurfaceVariant))): Column(children: widget.availableGenres.map((genre) {final selected = widget.currentFilter == LibraryFilter.genre && widget.genreFilter == genre;return SheetOption(diff --git a/lib/widgets/metadata_lookup_sheet.dart b/lib/widgets/metadata_lookup_sheet.dartindex 300ff520..4eec9113 100644--- a/lib/widgets/metadata_lookup_sheet.dart+++ b/lib/widgets/metadata_lookup_sheet.dart@@ -1,6 +1,7 @@import 'dart:async';import 'package:flutter/material.dart';import 'package:cached_network_image/cached_network_image.dart';+import '../l10n/app_localizations.dart';import '../services/api_service.dart';import '../services/metadata_override_service.dart';@@ -146,22 +147,23 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>void _showFieldPicker(Map<String, dynamic> result) {final book = result['book'] as Map<String, dynamic>? ?? result;+ final l = AppLocalizations.of(context)!;// Build available fields from the resultfinal fields = <String, String>{};- void tryAdd(String key, String label, dynamic value) {+ void tryAdd(String key, dynamic value) {final s = _safeString(value);if (s.isNotEmpty) fields[key] = s;}- tryAdd('title', 'Title', book['title']);- tryAdd('author', 'Author', book['author'] ?? book['authorName']);- tryAdd('narrator', 'Narrator', book['narrator'] ?? book['narratorName']);- tryAdd('description', 'Description', book['description']);- tryAdd('publisher', 'Publisher', book['publisher']);- tryAdd('publishedYear', 'Year', book['publishedYear'] ?? book['publishedDate']);- tryAdd('asin', 'ASIN', book['asin']);- tryAdd('isbn', 'ISBN', book['isbn']);+ tryAdd('title', book['title']);+ tryAdd('author', book['author'] ?? book['authorName']);+ tryAdd('narrator', book['narrator'] ?? book['narratorName']);+ tryAdd('description', book['description']);+ tryAdd('publisher', book['publisher']);+ tryAdd('publishedYear', book['publishedYear'] ?? book['publishedDate']);+ tryAdd('asin', book['asin']);+ tryAdd('isbn', book['isbn']);final coverUrl = _safeString(book['cover']).isNotEmpty? _safeString(book['cover'])@@ -185,17 +187,17 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>final selected = Set<String>.from(fields.keys);final labels = {- 'title': 'Title',- 'author': 'Author',- 'narrator': 'Narrator',- 'description': 'Description',- 'publisher': 'Publisher',- 'publishedYear': 'Year',- 'asin': 'ASIN',- 'isbn': 'ISBN',- 'coverUrl': 'Cover',- 'genres': 'Genres',- 'series': 'Series',+ 'title': l.titleLabel,+ 'author': l.authorLabel,+ 'narrator': l.narratorLabel,+ 'description': l.descriptionLabel,+ 'publisher': l.publisherLabel,+ 'publishedYear': l.yearLabel,+ 'asin': l.asinLabel,+ 'isbn': l.isbnLabel,+ 'coverUrl': l.metadataLookupCover,+ 'genres': l.genresLabel,+ 'series': l.seriesLabel,};showDialog(@@ -205,7 +207,7 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>final cs = Theme.of(ctx).colorScheme;final tt = Theme.of(ctx).textTheme;return AlertDialog(- title: const Text('Choose Fields to Apply'),+ title: Text(l.metadataLookupChooseFields),content: SizedBox(width: double.maxFinite,child: ListView(@@ -230,13 +232,13 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>),),actions: [- TextButton(onPressed: () => Navigator.pop(ctx), child: const Text('Cancel')),+ TextButton(onPressed: () => Navigator.pop(ctx), child: Text(l.cancel)),FilledButton(onPressed: selected.isEmpty ? null : () {Navigator.pop(ctx);_applySelectedFields(result, selected);},- child: Text('Apply ${selected.length} field${selected.length == 1 ? '' : 's'}'),+ child: Text(l.metadataLookupApplyFields(selected.length)),),],);@@ -292,10 +294,11 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>await MetadataOverrideService().save(widget.itemId, override);if (mounted) {+ final l = AppLocalizations.of(context)!;widget.onApplied();Navigator.pop(context);ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: Text('${selected.length} field${selected.length == 1 ? '' : 's'} saved locally'),+ content: Text(l.metadataLookupFieldsSavedLocally(selected.length)),behavior: SnackBarBehavior.floating,duration: const Duration(seconds: 2),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -339,10 +342,11 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>await MetadataOverrideService().save(widget.itemId, override);if (mounted) {+ final l = AppLocalizations.of(context)!;widget.onApplied();Navigator.pop(context);ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: const Text('Metadata saved locally'),+ content: Text(l.metadataSavedLocally),behavior: SnackBarBehavior.floating,duration: const Duration(seconds: 2),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -356,6 +360,7 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Container(decoration: BoxDecoration(@@ -373,7 +378,7 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>child: Row(children: [Icon(Icons.manage_search_rounded, size: 22, color: cs.primary),const SizedBox(width: 8),- Text('Local Metadata', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600, color: Colors.white)),+ Text(l.localMetadata, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600, color: Colors.white)),]),),@@ -383,9 +388,9 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>labelColor: cs.primary,unselectedLabelColor: Colors.white54,indicatorColor: cs.primary,- tabs: const [- Tab(text: 'Quick Match'),- Tab(text: 'Custom'),+ tabs: [+ Tab(text: l.quickMatch),+ Tab(text: l.custom),],),@@ -394,8 +399,8 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>child: TabBarView(controller: _tabCtrl,children: [- _buildSearchTab(cs, tt),- _buildCustomTab(cs, tt),+ _buildSearchTab(cs, tt, l),+ _buildCustomTab(cs, tt, l),],),),@@ -405,14 +410,14 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>// ─── Search Tab ─────────────────────────────────────────────- Widget _buildSearchTab(ColorScheme cs, TextTheme tt) {+ Widget _buildSearchTab(ColorScheme cs, TextTheme tt, AppLocalizations l) {return Column(children: [Padding(padding: const EdgeInsets.fromLTRB(20, 12, 20, 0),child: Column(children: [- _buildField(controller: _titleController, label: 'Title', icon: Icons.book_rounded, cs: cs, onSubmitted: (_) => _doSearch()),+ _buildField(controller: _titleController, label: l.titleLabel, icon: Icons.book_rounded, cs: cs, onSubmitted: (_) => _doSearch()),const SizedBox(height: 8),- _buildField(controller: _authorController, label: 'Author (optional)', icon: Icons.person_rounded, cs: cs, onSubmitted: (_) => _doSearch()),+ _buildField(controller: _authorController, label: l.authorOptionalLabel, icon: Icons.person_rounded, cs: cs, onSubmitted: (_) => _doSearch()),const SizedBox(height: 10),Row(children: [Expanded(@@ -445,7 +450,7 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>icon: _isSearching? SizedBox(width: 16, height: 16, child: CircularProgressIndicator(strokeWidth: 2, color: cs.onPrimary)): const Icon(Icons.search_rounded, size: 18),- label: const Text('Search'),+ label: Text(l.search),style: FilledButton.styleFrom(shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))),),),@@ -465,7 +470,7 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>? ListView(controller: widget.scrollController, children: [const SizedBox(height: 80),Center(child: Text(- _hasSearched ? 'No results found.\nTry adjusting your search or provider.' : 'Search for metadata above',+ _hasSearched ? l.noResultsFound : l.searchForMetadataAbove,textAlign: TextAlign.center,style: tt.bodyMedium?.copyWith(color: Colors.white38),)),@@ -475,7 +480,7 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>padding: EdgeInsets.fromLTRB(16, 12, 16, 16 + MediaQuery.of(context).viewPadding.bottom),itemCount: _results.length,separatorBuilder: (_, __) => const SizedBox(height: 8),- itemBuilder: (_, i) => _buildResultCard(_results[i], cs, tt),+ itemBuilder: (_, i) => _buildResultCard(_results[i], cs, tt, l),),),]);@@ -483,17 +488,17 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>// ─── Custom Tab ─────────────────────────────────────────────- Widget _buildCustomTab(ColorScheme cs, TextTheme tt) {+ Widget _buildCustomTab(ColorScheme cs, TextTheme tt, AppLocalizations l) {return Column(children: [Padding(padding: const EdgeInsets.fromLTRB(20, 8, 8, 0),child: Row(children: [- Text('Override local display', style: tt.labelSmall?.copyWith(color: Colors.white38)),+ Text(l.metadataLookupOverrideLocalDisplay, style: tt.labelSmall?.copyWith(color: Colors.white38)),const Spacer(),FilledButton.icon(onPressed: _saveCustom,icon: const Icon(Icons.check_rounded, size: 18),- label: const Text('Save'),+ label: Text(l.save),style: FilledButton.styleFrom(shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))),),]),@@ -503,27 +508,27 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>child: ListView(padding: EdgeInsets.fromLTRB(20, 0, 20, 32 + MediaQuery.of(context).viewInsets.bottom + MediaQuery.of(context).viewPadding.bottom),children: [- _customField('Title', _cTitleCtrl, tt),- _customField('Author', _cAuthorCtrl, tt),- _customField('Narrator', _cNarratorCtrl, tt),+ _customField(l.titleLabel, _cTitleCtrl, tt),+ _customField(l.authorLabel, _cAuthorCtrl, tt),+ _customField(l.narratorLabel, _cNarratorCtrl, tt),Row(children: [- Expanded(child: _customField('Series', _cSeriesCtrl, tt)),+ Expanded(child: _customField(l.seriesLabel, _cSeriesCtrl, tt)),const SizedBox(width: 12),SizedBox(width: 80, child: _customField('#', _cSeriesSeqCtrl, tt)),]),- _customField('Description', _cDescCtrl, tt, maxLines: 4),- _customField('Publisher', _cPublisherCtrl, tt),+ _customField(l.descriptionLabel, _cDescCtrl, tt, maxLines: 4),+ _customField(l.publisherLabel, _cPublisherCtrl, tt),Row(children: [- Expanded(child: _customField('Year', _cYearCtrl, tt)),+ Expanded(child: _customField(l.yearLabel, _cYearCtrl, tt)),const SizedBox(width: 12),- Expanded(child: _customField('ASIN', _cAsinCtrl, tt)),+ Expanded(child: _customField(l.asinLabel, _cAsinCtrl, tt)),]),Row(children: [- Expanded(child: _customField('ISBN', _cIsbnCtrl, tt)),+ Expanded(child: _customField(l.isbnLabel, _cIsbnCtrl, tt)),const SizedBox(width: 12),- Expanded(child: _customField('Genres', _cGenresCtrl, tt, hint: 'Comma separated')),+ Expanded(child: _customField(l.genresLabel, _cGenresCtrl, tt, hint: l.commaSeparated)),]),- _customField('Cover URL', _cCoverUrlCtrl, tt, hint: 'https://...'),+ _customField(l.coverUrlLabel, _cCoverUrlCtrl, tt, hint: l.coverUrlHint),],),),@@ -591,7 +596,7 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>return value.toString();}- Widget _buildResultCard(Map<String, dynamic> result, ColorScheme cs, TextTheme tt) {+ Widget _buildResultCard(Map<String, dynamic> result, ColorScheme cs, TextTheme tt, AppLocalizations l) {final book = result['book'] as Map<String, dynamic>? ?? result;final title = _safeString(book['title']);final author = _safeString(book['author']).isNotEmpty ? _safeString(book['author']) : _safeString(book['authorName']);@@ -637,7 +642,7 @@ class _MetadataLookupSheetState extends State<MetadataLookupSheet>],if (narrator.isNotEmpty) ...[const SizedBox(height: 1),- Text('Narrated by $narrator', maxLines: 1, overflow: TextOverflow.ellipsis,+ Text(l.narratedBy(narrator), maxLines: 1, overflow: TextOverflow.ellipsis,style: tt.labelSmall?.copyWith(color: Colors.white38)),],const SizedBox(height: 4),diff --git a/lib/widgets/notes_sheet.dart b/lib/widgets/notes_sheet.dartindex 82f867a1..83d3cfa5 100644--- a/lib/widgets/notes_sheet.dart+++ b/lib/widgets/notes_sheet.dart@@ -4,6 +4,7 @@ import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';import 'package:path_provider/path_provider.dart';import 'package:share_plus/share_plus.dart';import 'package:url_launcher/url_launcher.dart';+import '../l10n/app_localizations.dart';import '../services/notes_service.dart';/// Bottom sheet displaying notes for a library item.@@ -82,14 +83,16 @@ class _NotesSheetState extends State<NotesSheet> {}Future<void> _deleteNote(int index) async {+ final l = AppLocalizations.of(context)!;+ final noteTitle = _notes[index].title.isEmpty ? l.untitledNote : _notes[index].title;final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Delete note?'),- content: Text('This will delete "${_notes[index].title.isEmpty ? "Untitled note" : _notes[index].title}".'),+ title: Text(l.notesDeleteNoteQuestion),+ content: Text(l.notesDeleteNoteContent(noteTitle)),actions: [- TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(ctx, true), child: const Text('Delete')),+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.delete)),],),);@@ -100,6 +103,7 @@ class _NotesSheetState extends State<NotesSheet> {Future<void> _exportNotes(BuildContext context) async {final cs = Theme.of(context).colorScheme;+ final l = AppLocalizations.of(context)!;final format = await showModalBottomSheet<String>(context: context,backgroundColor: Colors.transparent,@@ -121,15 +125,15 @@ class _NotesSheetState extends State<NotesSheet> {)),ListTile(leading: const Icon(Icons.description_rounded),- title: const Text('Markdown (.md)'),- subtitle: const Text('Keeps formatting intact'),+ title: Text(l.markdownMd),+ subtitle: Text(l.keepsFormattingIntact),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),onTap: () => Navigator.pop(ctx, 'md'),),ListTile(leading: const Icon(Icons.text_snippet_rounded),- title: const Text('Plain Text (.txt)'),- subtitle: const Text('Simple text, no formatting'),+ title: Text(l.plainTextTxt),+ subtitle: Text(l.simpleTextNoFormatting),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),onTap: () => Navigator.pop(ctx, 'txt'),),@@ -141,10 +145,10 @@ class _NotesSheetState extends State<NotesSheet> {final buffer = StringBuffer();final isMd = format == 'md';- buffer.writeln(isMd ? '# ${widget.itemTitle} - Notes' : '${widget.itemTitle} - Notes');+ buffer.writeln(isMd ? '# ${widget.itemTitle} - ${l.notes}' : '${widget.itemTitle} - ${l.notes}');buffer.writeln();for (final note in _notes) {- final title = note.title.isEmpty ? 'Untitled' : note.title;+ final title = note.title.isEmpty ? l.untitled : note.title;buffer.writeln(isMd ? '## $title' : '--- $title ---');if (note.body.isNotEmpty) {buffer.writeln();@@ -178,6 +182,7 @@ class _NotesSheetState extends State<NotesSheet> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Container(decoration: BoxDecoration(@@ -204,7 +209,7 @@ class _NotesSheetState extends State<NotesSheet> {Expanded(child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- Text('Notes', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),+ Text(l.notes, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600)),Text(widget.itemTitle, maxLines: 1, overflow: TextOverflow.ellipsis,style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),],@@ -212,12 +217,12 @@ class _NotesSheetState extends State<NotesSheet> {if (_notes.isNotEmpty)IconButton(icon: const Icon(Icons.ios_share_rounded),- tooltip: 'Export',+ tooltip: l.notesExport,onPressed: () => _exportNotes(context),),IconButton(icon: const Icon(Icons.add_rounded),- tooltip: 'New note',+ tooltip: l.notesNewNote,onPressed: _addNote,),]),@@ -236,10 +241,10 @@ class _NotesSheetState extends State<NotesSheet> {Icon(Icons.note_add_rounded, size: 48,color: cs.onSurface.withValues(alpha: 0.15)),const SizedBox(height: 12),- Center(child: Text('No notes yet', style: tt.bodyMedium?.copyWith(+ Center(child: Text(l.noNotesYet, style: tt.bodyMedium?.copyWith(color: cs.onSurface.withValues(alpha: 0.4)))),const SizedBox(height: 8),- Center(child: Text('Markdown is supported', style: tt.bodySmall?.copyWith(+ Center(child: Text(l.markdownIsSupported, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.25)))),]): ListView.separated(@@ -265,10 +270,10 @@ class _NotesSheetState extends State<NotesSheet> {return await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Delete note?'),+ title: Text(l.notesDeleteNoteQuestion),actions: [- TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(ctx, true), child: const Text('Delete')),+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.delete)),],),) ?? false;@@ -280,6 +285,11 @@ class _NotesSheetState extends State<NotesSheet> {child: _NoteCard(note: note,accent: widget.accent,+ untitledLabel: l.untitled,+ justNowLabel: l.justNow,+ minutesAgoFn: l.minutesAgo,+ hoursAgoFn: l.hoursAgo,+ daysAgoFn: l.daysAgo,onTap: () => _editNote(index),onDelete: () => _deleteNote(index),),@@ -298,12 +308,22 @@ class _NotesSheetState extends State<NotesSheet> {class _NoteCard extends StatelessWidget {final Note note;final Color accent;+ final String untitledLabel;+ final String justNowLabel;+ final String Function(int) minutesAgoFn;+ final String Function(int) hoursAgoFn;+ final String Function(int) daysAgoFn;final VoidCallback onTap;final VoidCallback onDelete;const _NoteCard({required this.note,required this.accent,+ required this.untitledLabel,+ required this.justNowLabel,+ required this.minutesAgoFn,+ required this.hoursAgoFn,+ required this.daysAgoFn,required this.onTap,required this.onDelete,});@@ -312,7 +332,7 @@ class _NoteCard extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;- final title = note.title.isEmpty ? 'Untitled' : note.title;+ final title = note.title.isEmpty ? untitledLabel : note.title;return GestureDetector(onTap: onTap,@@ -373,10 +393,10 @@ class _NoteCard extends StatelessWidget {String _formatDate(DateTime dt) {final now = DateTime.now();final diff = now.difference(dt);- if (diff.inMinutes < 1) return 'Just now';- if (diff.inHours < 1) return '${diff.inMinutes}m ago';- if (diff.inDays < 1) return '${diff.inHours}h ago';- if (diff.inDays < 7) return '${diff.inDays}d ago';+ if (diff.inMinutes < 1) return justNowLabel;+ if (diff.inHours < 1) return minutesAgoFn(diff.inMinutes);+ if (diff.inDays < 1) return hoursAgoFn(diff.inHours);+ if (diff.inDays < 7) return daysAgoFn(diff.inDays);return '${dt.month}/${dt.day}/${dt.year}';}}@@ -423,6 +443,7 @@ class _NoteEditorState extends State<_NoteEditor> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final bottomInset = MediaQuery.of(context).viewInsets.bottom;return Container(@@ -449,12 +470,12 @@ class _NoteEditorState extends State<_NoteEditor> {padding: const EdgeInsets.fromLTRB(16, 12, 8, 0),child: Row(children: [Expanded(child: Text(- widget.title.isEmpty ? 'New Note' : 'Edit Note',+ widget.title.isEmpty ? l.newNote : l.editNote,style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600),)),IconButton(icon: Icon(_preview ? Icons.edit_rounded : Icons.preview_rounded),- tooltip: _preview ? 'Edit' : 'Preview',+ tooltip: _preview ? l.edit : l.preview,onPressed: () => setState(() => _preview = !_preview),),TextButton(@@ -467,7 +488,7 @@ class _NoteEditorState extends State<_NoteEditor> {}Navigator.pop(context, _NoteEditResult(title, body));},- child: const Text('Save'),+ child: Text(l.save),),]),),@@ -481,7 +502,7 @@ class _NoteEditorState extends State<_NoteEditor> {TextField(controller: _titleCtrl,decoration: InputDecoration(- hintText: 'Title',+ hintText: l.titleHint,border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),contentPadding: const EdgeInsets.symmetric(horizontal: 14, vertical: 12),),@@ -498,7 +519,7 @@ class _NoteEditorState extends State<_NoteEditor> {borderRadius: BorderRadius.circular(12),),child: _bodyCtrl.text.trim().isEmpty- ? Text('Nothing to preview', style: tt.bodySmall?.copyWith(+ ? Text(l.nothingToPreview, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.3))): MarkdownBody(data: _bodyCtrl.text,@@ -533,7 +554,7 @@ class _NoteEditorState extends State<_NoteEditor> {TextField(controller: _bodyCtrl,decoration: InputDecoration(- hintText: 'Write your note... (supports markdown)',+ hintText: l.noteBodyHint,border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),contentPadding: const EdgeInsets.all(14),),diff --git a/lib/widgets/playlist_detail_sheet.dart b/lib/widgets/playlist_detail_sheet.dartindex a5fbd342..07d31a67 100644--- a/lib/widgets/playlist_detail_sheet.dart+++ b/lib/widgets/playlist_detail_sheet.dart@@ -4,6 +4,7 @@ import 'package:flutter/services.dart';import 'package:provider/provider.dart';import 'overlay_toast.dart';import 'package:cached_network_image/cached_network_image.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';import '../services/audio_player_service.dart';@@ -136,13 +137,16 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {await lib.refresh();if (mounted) {final count = _selectedKeys.length;+ final l = AppLocalizations.of(context)!;setState(() {_isBatchUpdating = false;_selectMode = false;_selectedKeys.clear();});ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: Text('$count item${count == 1 ? '' : 's'} marked as ${finished ? 'finished' : 'unfinished'}'),+ content: Text(finished+ ? l.playlistDetailItemsMarkedFinished(count)+ : l.playlistDetailItemsMarkedUnfinished(count)),behavior: SnackBarBehavior.floating,duration: const Duration(seconds: 2),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -171,13 +175,14 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {if (mounted) {final count = _selectedKeys.length;+ final l = AppLocalizations.of(context)!;setState(() {_isBatchUpdating = false;_selectMode = false;_selectedKeys.clear();});ScaffoldMessenger.of(context).showSnackBar(SnackBar(- content: Text('$count item${count == 1 ? '' : 's'} removed'),+ content: Text(l.playlistDetailItemsRemoved(count)),behavior: SnackBarBehavior.floating,duration: const Duration(seconds: 2),shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),@@ -196,19 +201,20 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {}Future<void> _deletePlaylist(BuildContext context, LibraryProvider lib) async {+ final l = AppLocalizations.of(context)!;final confirmed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Delete Playlist'),- content: const Text('Are you sure you want to delete this playlist?'),+ title: Text(l.deletePlaylist),+ content: Text(l.deletePlaylistContent),actions: [TextButton(onPressed: () => Navigator.pop(ctx, false),- child: const Text('Cancel'),+ child: Text(l.cancel),),TextButton(onPressed: () => Navigator.pop(ctx, true),- child: const Text('Delete'),+ child: Text(l.delete),),],),@@ -246,6 +252,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final lib = context.watch<LibraryProvider>();final playlist = lib.playlists.cast<Map<String, dynamic>>().where(@@ -253,13 +260,13 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {).firstOrNull;if (playlist == null) {- return ListView(controller: widget.scrollController, children: const [- SizedBox(height: 80),- Center(child: Text('Playlist not found')),+ return ListView(controller: widget.scrollController, children: [+ const SizedBox(height: 80),+ Center(child: Text(l.playlistNotFound)),]);}- final name = playlist['name'] as String? ?? 'Playlist';+ final name = playlist['name'] as String? ?? l.playlistDetailDefaultName;final items = (playlist['items'] as List<dynamic>?) ?? [];return Column(children: [@@ -270,7 +277,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {if (_reordering) ...[GestureDetector(onTap: _cancelReorder,- child: Text('Cancel', style: tt.labelMedium?.copyWith(+ child: Text(l.cancel, style: tt.labelMedium?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w500,)),),@@ -281,7 +288,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {const Spacer(),GestureDetector(onTap: () => _saveReorder(lib),- child: Text('Done', style: tt.labelMedium?.copyWith(+ child: Text(l.done, style: tt.labelMedium?.copyWith(color: cs.primary, fontWeight: FontWeight.w600,)),),@@ -294,7 +301,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {child: Icon(Icons.close_rounded, size: 20, color: cs.onSurfaceVariant),),const SizedBox(width: 8),- Text('${_selectedKeys.length} selected',+ Text(l.selectedCount(_selectedKeys.length),style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),const SizedBox(width: 8),GestureDetector(@@ -310,7 +317,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {}});},- child: Text('Select All',+ child: Text(l.selectAll,style: TextStyle(fontSize: 12, color: cs.primary, fontWeight: FontWeight.w500)),),const Spacer(),@@ -328,7 +335,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {fontWeight: FontWeight.w600, color: cs.onSurface,)),),- Text('${items.length} item${items.length == 1 ? '' : 's'}',+ Text(l.playlistDetailItemCount(items.length),style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant),),const SizedBox(width: 8),@@ -361,12 +368,12 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {// ContentExpanded(child: _reordering- ? _buildReorderList(cs, tt, lib)+ ? _buildReorderList(cs, tt, lib, l): _selectMode- ? _buildSelectList(cs, tt, lib, items)+ ? _buildSelectList(cs, tt, lib, items, l): _gridView- ? _buildGrid(cs, tt, lib, items)- : _buildItemList(cs, tt, lib, items),+ ? _buildGrid(cs, tt, lib, items, l)+ : _buildItemList(cs, tt, lib, items, l),),// Batch action barif (_selectMode && _selectedKeys.isNotEmpty)@@ -383,21 +390,21 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {Expanded(child: FilledButton.tonalIcon(onPressed: () => _batchMarkFinished(true, lib),icon: const Icon(Icons.check_circle_rounded, size: 18),- label: const Text('Finished'),+ label: Text(l.finished),style: FilledButton.styleFrom(visualDensity: VisualDensity.compact),)),const SizedBox(width: 8),Expanded(child: OutlinedButton.icon(onPressed: () => _batchMarkFinished(false, lib),icon: const Icon(Icons.radio_button_unchecked_rounded, size: 18),- label: const Text('Unfinished'),+ label: Text(l.playlistDetailUnfinished),style: OutlinedButton.styleFrom(visualDensity: VisualDensity.compact),)),const SizedBox(width: 8),IconButton(onPressed: () => _batchRemove(lib),icon: Icon(Icons.playlist_remove_rounded, color: cs.error),- tooltip: 'Remove from playlist',+ tooltip: l.playlistDetailRemoveFromPlaylist,style: IconButton.styleFrom(backgroundColor: cs.error.withValues(alpha: 0.1),),@@ -407,7 +414,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {]);}- Widget _buildReorderList(ColorScheme cs, TextTheme tt, LibraryProvider lib) {+ Widget _buildReorderList(ColorScheme cs, TextTheme tt, LibraryProvider lib, AppLocalizations l) {final items = _reorderItems!;return ReorderableListView.builder(padding: EdgeInsets.only(top: 8, bottom: 8 + MediaQuery.of(context).viewPadding.bottom),@@ -431,7 +438,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {final media = libraryItem['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? l.unknown;final coverUrl = lib.getCoverUrl(libraryItemId);String? episodeTitle;@@ -472,7 +479,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {color: Colors.red.withValues(alpha: 0.85),borderRadius: BorderRadius.circular(3),),- child: const Text('E', style: TextStyle(color: Colors.white, fontSize: 7, fontWeight: FontWeight.w800)),+ child: Text(l.bookCardExplicitBadge, style: const TextStyle(color: Colors.white, fontSize: 7, fontWeight: FontWeight.w800)),),),]),@@ -497,7 +504,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {);}- Widget _buildSelectList(ColorScheme cs, TextTheme tt, LibraryProvider lib, List<dynamic> items) {+ Widget _buildSelectList(ColorScheme cs, TextTheme tt, LibraryProvider lib, List<dynamic> items, AppLocalizations l) {return ListView.builder(controller: widget.scrollController,padding: EdgeInsets.only(bottom: (_selectedKeys.isNotEmpty ? 64.0 : 32.0) + MediaQuery.of(context).viewPadding.bottom),@@ -511,7 +518,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {final media = libraryItem['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? l.unknown;final author = metadata['authorName'] as String? ?? '';final coverUrl = lib.getCoverUrl(libraryItemId);final key = _itemKey(item);@@ -569,7 +576,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {);}- Widget _buildItemList(ColorScheme cs, TextTheme tt, LibraryProvider lib, List<dynamic> items) {+ Widget _buildItemList(ColorScheme cs, TextTheme tt, LibraryProvider lib, List<dynamic> items, AppLocalizations l) {final isDark = Theme.of(context).brightness == Brightness.dark;final doneColor = isDark ? Colors.greenAccent[400]! : Colors.green.shade700;@@ -587,7 +594,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {final media = libraryItem['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? l.unknown;final author = metadata['authorName'] as String? ?? '';final coverUrl = lib.getCoverUrl(libraryItemId);final progressKey = episodeId != null ? '$libraryItemId-$episodeId' : libraryItemId;@@ -611,7 +618,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {lib.absorbingItemCache[progressKey] = Map<String, dynamic>.from(libraryItem);HapticFeedback.mediumImpact();if (context.mounted) {- showOverlayToast(context, 'Added "${episodeTitle ?? title}" to Absorbing', icon: Icons.add_circle_outline_rounded);+ showOverlayToast(context, l.playlistDetailAddedToAbsorbing(episodeTitle ?? title), icon: Icons.add_circle_outline_rounded);}return false;}@@ -693,13 +700,13 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {Row(mainAxisAlignment: MainAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [Icon(Icons.check_circle_rounded, size: 10, color: doneColor),const SizedBox(width: 3),- Text('Done', style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: doneColor)),+ Text(l.playlistDetailDone, style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: doneColor)),]),if (isDownloaded)Row(mainAxisAlignment: MainAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [Icon(Icons.download_done_rounded, size: 10, color: cs.primary),const SizedBox(width: 3),- Text('Saved', style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: cs.primary)),+ Text(l.saved, style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: cs.primary)),]),]),),@@ -734,7 +741,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {);}- Widget _buildGrid(ColorScheme cs, TextTheme tt, LibraryProvider lib, List<dynamic> items) {+ Widget _buildGrid(ColorScheme cs, TextTheme tt, LibraryProvider lib, List<dynamic> items, AppLocalizations l) {final isDark = Theme.of(context).brightness == Brightness.dark;final doneColor = isDark ? Colors.greenAccent[400]! : Colors.green.shade700;@@ -758,7 +765,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {final media = libraryItem['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? l.unknown;final author = metadata['authorName'] as String? ?? '';final coverUrl = lib.getCoverUrl(libraryItemId);final isExplicit = PlayerSettings.showExplicitBadge && metadata['explicit'] == true;@@ -804,7 +811,7 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {color: Colors.red.withValues(alpha: 0.85),borderRadius: BorderRadius.circular(4),),- child: const Text('E', style: TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w800)),+ child: Text(l.bookCardExplicitBadge, style: const TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w800)),),),if (progress > 0 && !isFinished)@@ -837,13 +844,13 @@ class _PlaylistDetailSheetState extends State<PlaylistDetailSheet> {Row(mainAxisAlignment: MainAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [Icon(Icons.check_circle_rounded, size: 10, color: doneColor),const SizedBox(width: 3),- Text('Done', style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: doneColor)),+ Text(l.playlistDetailDone, style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: doneColor)),]),if (isDownloaded)Row(mainAxisAlignment: MainAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [Icon(Icons.download_done_rounded, size: 10, color: cs.primary),const SizedBox(width: 3),- Text('Saved', style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: cs.primary)),+ Text(l.saved, style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: cs.primary)),]),]),),diff --git a/lib/widgets/playlist_picker_sheet.dart b/lib/widgets/playlist_picker_sheet.dartindex bfb0192a..52bb77e8 100644--- a/lib/widgets/playlist_picker_sheet.dart+++ b/lib/widgets/playlist_picker_sheet.dart@@ -1,5 +1,6 @@import 'package:flutter/material.dart';import 'package:provider/provider.dart';+import '../l10n/app_localizations.dart';import '../providers/library_provider.dart';class PlaylistPickerSheet extends StatefulWidget {@@ -53,10 +54,11 @@ class _PlaylistPickerSheetState extends State<PlaylistPickerSheet> {playlistId, widget.libraryItemId, episodeId: widget.episodeId,);if (mounted) {+ final l = AppLocalizations.of(context)!;Navigator.pop(context);ScaffoldMessenger.of(context).showSnackBar(SnackBar(duration: const Duration(seconds: 3),- content: Text('Added to "$name"'),+ content: Text(l.addedToName(name)),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));@@ -69,7 +71,8 @@ class _PlaylistPickerSheetState extends State<PlaylistPickerSheet> {Future<void> _addToExisting(LibraryProvider lib, Map<String, dynamic> playlist) async {setState(() => _adding = true);final playlistId = playlist['id'] as String;- final name = playlist['name'] as String? ?? 'Playlist';+ final l = AppLocalizations.of(context)!;+ final name = playlist['name'] as String? ?? l.playlistPickerPlaylistFallback;final ok = await lib.addToPlaylist(playlistId, widget.libraryItemId, episodeId: widget.episodeId,);@@ -77,7 +80,7 @@ class _PlaylistPickerSheetState extends State<PlaylistPickerSheet> {Navigator.pop(context);ScaffoldMessenger.of(context).showSnackBar(SnackBar(duration: const Duration(seconds: 3),- content: Text(ok ? 'Added to "$name"' : 'Failed to add'),+ content: Text(ok ? l.addedToName(name) : l.failedToAdd),behavior: SnackBarBehavior.floating,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),));@@ -89,6 +92,7 @@ class _PlaylistPickerSheetState extends State<PlaylistPickerSheet> {final cs = Theme.of(context).colorScheme;final lib = context.watch<LibraryProvider>();final playlists = lib.playlists;+ final l = AppLocalizations.of(context)!;return SafeArea(child: Padding(@@ -106,7 +110,7 @@ class _PlaylistPickerSheetState extends State<PlaylistPickerSheet> {),)),// Title- Text('Add to Playlist', style: TextStyle(+ Text(l.addToPlaylist, style: TextStyle(color: cs.onSurface, fontSize: 16, fontWeight: FontWeight.w600,)),const SizedBox(height: 12),@@ -120,7 +124,7 @@ class _PlaylistPickerSheetState extends State<PlaylistPickerSheet> {autofocus: true,style: TextStyle(color: cs.onSurface, fontSize: 14),decoration: InputDecoration(- hintText: 'Playlist name',+ hintText: l.playlistNameHint,hintStyle: TextStyle(color: cs.onSurface.withValues(alpha: 0.4)),isDense: true,contentPadding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),@@ -146,14 +150,14 @@ class _PlaylistPickerSheetState extends State<PlaylistPickerSheet> {]),)else- _sheetItem(cs, Icons.add_rounded, 'New Playlist',+ _sheetItem(cs, Icons.add_rounded, l.newPlaylist,onTap: () => setState(() => _creatingNew = true)),// Existing playlistsif (playlists.isNotEmpty) ...[const SizedBox(height: 4),...playlists.map((p) {final pm = p as Map<String, dynamic>;- final name = pm['name'] as String? ?? 'Playlist';+ final name = pm['name'] as String? ?? l.playlistPickerPlaylistFallback;final items = (pm['items'] as List<dynamic>?) ?? [];// Check if item is already in this playlistfinal alreadyIn = items.any((item) {@@ -166,7 +170,7 @@ class _PlaylistPickerSheetState extends State<PlaylistPickerSheet> {return _sheetItem(cs,alreadyIn ? Icons.check_rounded : Icons.playlist_play_rounded,- '$name (${items.length})',+ l.playlistPickerNameWithCount(name, items.length),enabled: !alreadyIn && !_adding,onTap: () => _addToExisting(lib, pm),);diff --git a/lib/widgets/section_detail_sheet.dart b/lib/widgets/section_detail_sheet.dartindex 1d2f009f..f44dac49 100644--- a/lib/widgets/section_detail_sheet.dart+++ b/lib/widgets/section_detail_sheet.dart@@ -3,6 +3,7 @@ import 'package:flutter/material.dart';import 'package:flutter/services.dart';import 'package:provider/provider.dart';import 'package:cached_network_image/cached_network_image.dart';+import '../l10n/app_localizations.dart';import '../providers/library_provider.dart';import '../services/audio_player_service.dart';import '../services/download_service.dart';@@ -75,6 +76,7 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;final lib = context.watch<LibraryProvider>();+ final l = AppLocalizations.of(context)!;return Column(children: [// Header@@ -103,13 +105,13 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {const SizedBox(height: 4),Expanded(child: _gridView- ? _buildGrid(cs, tt, lib)- : _buildList(cs, tt, lib),+ ? _buildGrid(cs, tt, lib, l)+ : _buildList(cs, tt, lib, l),),]);}- Widget _buildList(ColorScheme cs, TextTheme tt, LibraryProvider lib) {+ Widget _buildList(ColorScheme cs, TextTheme tt, LibraryProvider lib, AppLocalizations l) {final isDark = Theme.of(context).brightness == Brightness.dark;final doneColor = isDark ? Colors.greenAccent[400]! : Colors.green.shade700;@@ -123,7 +125,7 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {final itemId = item['id'] as String? ?? '';final media = item['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? l.unknown;final author = metadata['authorName'] as String? ?? '';final coverUrl = lib.getCoverUrl(itemId);final isExplicit = PlayerSettings.showExplicitBadge &&@@ -152,10 +154,10 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {aspectRatio: widget.coverAspectRatio,child: Stack(children: [Positioned.fill(child: _cover(coverUrl, lib, cs)),- if (isExplicit) _explicitBadge(),+ if (isExplicit) _explicitBadge(l),if (progress > 0 && !isFinished) _progressBar(cs, progress),if (isFinished || isDownloaded)- _badges(cs, doneColor, isFinished, isDownloaded),+ _badges(cs, doneColor, isFinished, isDownloaded, l),]),),Expanded(@@ -198,7 +200,7 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {lib.absorbingItemCache[itemId] = Map<String, dynamic>.from(item);HapticFeedback.mediumImpact();if (context.mounted) {- showOverlayToast(context, 'Added "$title" to Absorbing',+ showOverlayToast(context, l.sectionDetailAddedToAbsorbing(title),icon: Icons.add_circle_outline_rounded);}return false;@@ -218,7 +220,7 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {);}- Widget _buildGrid(ColorScheme cs, TextTheme tt, LibraryProvider lib) {+ Widget _buildGrid(ColorScheme cs, TextTheme tt, LibraryProvider lib, AppLocalizations l) {final isDark = Theme.of(context).brightness == Brightness.dark;final doneColor = isDark ? Colors.greenAccent[400]! : Colors.green.shade700;final isRect = widget.coverAspectRatio < 1.0;@@ -241,7 +243,7 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {final itemId = item['id'] as String? ?? '';final media = item['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? l.unknown;final author = metadata['authorName'] as String? ?? '';final coverUrl = lib.getCoverUrl(itemId);final isExplicit = PlayerSettings.showExplicitBadge &&@@ -262,11 +264,11 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {borderRadius: BorderRadius.circular(10),child: Stack(children: [Positioned.fill(child: _cover(coverUrl, lib, cs)),- if (isExplicit) _explicitBadge(),+ if (isExplicit) _explicitBadge(l),if (progress > 0 && !isFinished)_progressBar(cs, progress),if (isFinished || isDownloaded)- _badges(cs, doneColor, isFinished, isDownloaded),+ _badges(cs, doneColor, isFinished, isDownloaded, l),]),),),@@ -310,7 +312,7 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {child: Icon(Icons.book_rounded, color: cs.onSurfaceVariant.withValues(alpha: 0.3)),);- Widget _explicitBadge() => Positioned(+ Widget _explicitBadge(AppLocalizations l) => Positioned(top: 4, right: 4,child: Container(padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 1),@@ -318,8 +320,8 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {color: Colors.red.withValues(alpha: 0.85),borderRadius: BorderRadius.circular(4),),- child: const Text('E',- style: TextStyle(+ child: Text(l.bookCardExplicitBadge,+ style: const TextStyle(color: Colors.white,fontSize: 9,fontWeight: FontWeight.w800)),@@ -337,7 +339,7 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {);Widget _badges(ColorScheme cs, Color doneColor, bool isFinished,- bool isDownloaded) =>+ bool isDownloaded, AppLocalizations l) =>Positioned(left: 0, right: 0, bottom: 0,child: Container(@@ -361,7 +363,7 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {Icon(Icons.check_circle_rounded,size: 10, color: doneColor),const SizedBox(width: 3),- Text('Done',+ Text(l.sectionDetailDoneBadge,style: TextStyle(fontSize: 9,fontWeight: FontWeight.w600,@@ -375,7 +377,7 @@ class _SectionDetailSheetState extends State<SectionDetailSheet> {Icon(Icons.download_done_rounded,size: 10, color: cs.primary),const SizedBox(width: 3),- Text('Saved',+ Text(l.saved,style: TextStyle(fontSize: 9,fontWeight: FontWeight.w600,diff --git a/lib/widgets/series_books_sheet.dart b/lib/widgets/series_books_sheet.dartindex 753bb8fc..07c4e4cd 100644--- a/lib/widgets/series_books_sheet.dart+++ b/lib/widgets/series_books_sheet.dart@@ -4,6 +4,7 @@ import 'package:flutter/services.dart';import 'package:cached_network_image/cached_network_image.dart';import 'overlay_toast.dart';import 'package:provider/provider.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';import '../services/audio_player_service.dart';@@ -405,6 +406,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {Widget _buildGroupedList(ColorScheme cs, TextTheme tt, LibraryProvider lib) {final parsed = _buildSubSeriesGroups();+ final l = AppLocalizations.of(context)!;return ListView(controller: widget.scrollController,@@ -451,7 +453,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {Expanded(child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [Text(seriesName, style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),const SizedBox(height: 2),- Text('$numBooks book${numBooks != 1 ? 's' : ''}',+ Text(l.seriesBooksBookCount(numBooks),style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.5), fontSize: 11)),])),]),@@ -596,17 +598,15 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {}Future<void> _findOnAudible() async {+ final l = AppLocalizations.of(context)!;final proceed = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Find Missing Books'),- content: const Text(- 'This searches Audible to find books in this series that may be missing from your library.\n\n'- 'Books are matched by ASIN first (depending on whether your server has ASINs for its books), '- 'then falls back to title matching. Results may not be perfectly accurate.'),+ title: Text(l.seriesBooksFindMissingTitle),+ content: Text(l.seriesBooksFindMissingContent),actions: [- TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(ctx, true), child: const Text('Search')),+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.search)),],),);@@ -679,7 +679,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {if (!mounted) return;if (seriesAsin == null) {- showOverlayToast(context, 'Could not find this series on Audible', icon: Icons.search_off_rounded);+ showOverlayToast(context, l.seriesBooksCouldNotFindOnAudible, icon: Icons.search_off_rounded);return;}@@ -719,6 +719,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {}void _showSeriesMoreSheet(ColorScheme cs, bool allDownloaded, int downloaded, bool allDone, bool hasSeriesId) {+ final l = AppLocalizations.of(context)!;showModalBottomSheet(context: context,backgroundColor: Theme.of(context).bottomSheetTheme.backgroundColor,@@ -734,22 +735,22 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {decoration: BoxDecoration(color: cs.onSurface.withValues(alpha: 0.24), borderRadius: BorderRadius.circular(2)))),if (!allDownloaded)_moreItem(cs, Icons.download_rounded,- downloaded > 0 ? 'Download Remaining (${(_totalBooks > 0 ? _totalBooks : _books.length) - downloaded})' : 'Download All',+ downloaded > 0 ? l.downloadRemainingCount((_totalBooks > 0 ? _totalBooks : _books.length) - downloaded) : l.downloadAll,onTap: () { Navigator.pop(ctx); _downloadAll(); }),_moreItem(cs,allDone ? Icons.remove_done_rounded : Icons.done_all_rounded,- allDone ? 'Mark All Not Finished' : 'Mark All Finished',+ allDone ? l.markAllNotFinished : l.markAllFinished,onTap: () async {Navigator.pop(ctx);if (allDone) {final confirmed = await showDialog<bool>(context: context,builder: (dlg) => AlertDialog(- title: const Text('Mark All Not Finished?'),- content: Text('This will clear the finished status for all ${_books.length} books in this series.'),+ title: Text(l.markAllNotFinishedQuestion),+ content: Text(l.seriesBooksMarkAllNotFinishedContent(_books.length)),actions: [- TextButton(onPressed: () => Navigator.pop(dlg, false), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(dlg, true), child: const Text('Unmark All')),+ TextButton(onPressed: () => Navigator.pop(dlg, false), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(dlg, true), child: Text(l.seriesBooksUnmarkAll)),],),);@@ -758,11 +759,11 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {final confirmed = await showDialog<bool>(context: context,builder: (dlg) => AlertDialog(- title: const Text('Fully Absorb Series?'),- content: Text('This will mark all ${_books.length} books in this series as finished.'),+ title: Text(l.fullyAbsorbSeries),+ content: Text(l.seriesBooksFullyAbsorbContent(_books.length)),actions: [- TextButton(onPressed: () => Navigator.pop(dlg, false), child: const Text('Cancel')),- FilledButton(onPressed: () => Navigator.pop(dlg, true), child: const Text('Fully Absorb')),+ TextButton(onPressed: () => Navigator.pop(dlg, false), child: Text(l.cancel)),+ FilledButton(onPressed: () => Navigator.pop(dlg, true), child: Text(l.fullyAbsorbAction)),],),);@@ -772,14 +773,14 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {if (hasSeriesId)_moreItem(cs,_autoDownloadEnabled ? Icons.downloading_rounded : Icons.download_outlined,- _autoDownloadEnabled ? 'Turn Auto-Download Off' : 'Turn Auto-Download On',+ _autoDownloadEnabled ? l.turnAutoDownloadOff : l.turnAutoDownloadOn,onTap: () async {Navigator.pop(ctx);final lib = context.read<LibraryProvider>();await lib.toggleRollingDownload(widget.seriesId!);setState(() => _autoDownloadEnabled = lib.isRollingDownloadEnabled(widget.seriesId!));}),- _moreItem(cs, Icons.search_rounded, 'Find Missing Books',+ _moreItem(cs, Icons.search_rounded, l.seriesBooksFindMissingTitle,onTap: () { Navigator.pop(ctx); _findOnAudible(); }),]),),@@ -808,14 +809,15 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {// Offer to enable auto-download if not already onfinal seriesId = widget.seriesId;if (seriesId != null && seriesId.isNotEmpty && !_autoDownloadEnabled) {+ final l = AppLocalizations.of(context)!;final enable = await showDialog<bool>(context: context,builder: (ctx) => AlertDialog(- title: const Text('Auto-Download This Series?'),- content: const Text('Automatically download the next books as you listen.'),+ title: Text(l.autoDownloadThisSeries),+ content: Text(l.autoDownloadSeriesContent),actions: [- TextButton(onPressed: () => Navigator.pop(ctx, false), child: const Text('No Thanks')),- FilledButton(onPressed: () => Navigator.pop(ctx, true), child: const Text('Enable')),+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.noThanks)),+ FilledButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.enable)),],),);@@ -828,6 +830,8 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {setState(() => _isDownloadingAll = true);+ final l2 = mounted ? AppLocalizations.of(context)! : null;+ final unknownTitle = l2?.unknown ?? 'Unknown';for (final book in _books) {if (!mounted) break;final bookId = book['id'] as String? ?? '';@@ -835,7 +839,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {final media = book['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final title = metadata['title'] as String? ?? 'Unknown';+ final title = metadata['title'] as String? ?? unknownTitle;final author = metadata['authorName'] as String? ?? '';await DownloadService().downloadItem(@@ -855,6 +859,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final lib = context.watch<LibraryProvider>();// Calculate time-weighted series progress across all books@@ -906,8 +911,10 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {text: () {final displayDuration = _seriesDuration > totalDuration ? _seriesDuration : totalDuration;final bookCount = _totalBooks > 0 ? _totalBooks : _books.length;- return '$bookCount book${bookCount != 1 ? 's' : ''} in this series'- '${displayDuration > 0 ? ' · ${_formatDuration(displayDuration)}' : ''}';+ final base = l.booksInSeriesCount(bookCount);+ return displayDuration > 0+ ? '$base · ${_formatDuration(displayDuration)}'+ : base;}(),),if (_autoDownloadEnabled) ...[@@ -940,7 +947,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {),const SizedBox(width: 10),Text(- '$seriesPercent% complete',+ l.percentComplete(seriesPercent.toString()),style: tt.labelSmall?.copyWith(color: cs.primary,fontWeight: FontWeight.w600,@@ -958,7 +965,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {icon: Icon(Icons.collections_bookmark_rounded, size: 20,color: _collapseSeries ? cs.primary : cs.onSurfaceVariant),visualDensity: VisualDensity.compact,- tooltip: _collapseSeries ? 'Show all books' : 'Group by sub-series',+ tooltip: _collapseSeries ? l.seriesBooksShowAllBooks : l.seriesBooksGroupBySubSeries,onPressed: () {setState(() {_collapseSeries = !_collapseSeries;@@ -992,7 +999,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {else if (_books.isEmpty)Expanded(child: Center(- child: Text('No books found',+ child: Text(l.noBooksFound,style: tt.bodyLarge?.copyWith(color: cs.onSurfaceVariant)),),@@ -1002,7 +1009,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {child: Center(child: Column(mainAxisSize: MainAxisSize.min, children: [const CircularProgressIndicator(strokeWidth: 2),const SizedBox(height: 12),- Text('Loading sub-series...', style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.4))),+ Text(l.seriesBooksLoadingSubSeries, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.4))),])),)else if (_collapseSeries && _gridView)@@ -1051,10 +1058,11 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {}Widget _buildBookCard(ColorScheme cs, TextTheme tt, LibraryProvider lib, Map<String, dynamic> book) {+ final l = AppLocalizations.of(context)!;final bookId = book['id'] as String? ?? '';final media = book['media'] as Map<String, dynamic>? ?? {};final metadata = media['metadata'] as Map<String, dynamic>? ?? {};- final bookTitle = metadata['title'] as String? ?? 'Unknown';+ final bookTitle = metadata['title'] as String? ?? l.unknown;final authorName = metadata['authorName'] as String? ?? '';final sequence = _getSequenceString(book);final duration = (media['duration'] is num) ? (media['duration'] as num).toDouble() : 0.0;@@ -1078,7 +1086,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {lib.absorbingItemCache[bookId] = Map<String, dynamic>.from(book);if (context.mounted) {HapticFeedback.mediumImpact();- showOverlayToast(context, 'Added "$bookTitle" to Absorbing', icon: Icons.add_circle_outline_rounded);+ showOverlayToast(context, l.episodeListAddedToAbsorbing(bookTitle), icon: Icons.add_circle_outline_rounded);}return false;},@@ -1138,7 +1146,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {child: Container(padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 1),decoration: BoxDecoration(color: Colors.red.withValues(alpha: 0.85), borderRadius: BorderRadius.circular(4)),- child: const Text('E', style: TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w800)),+ child: Text(l.seriesBooksExplicitBadge, style: const TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.w800)),),),if (!isDownloaded && isDownloading)@@ -1169,14 +1177,14 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {Icon(Icons.check_circle_rounded, size: 10,color: Theme.of(context).brightness == Brightness.dark ? Colors.greenAccent[400] : Colors.green.shade700),const SizedBox(width: 3),- Text('Done', style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600,+ Text(l.seriesBooksDone, style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600,color: Theme.of(context).brightness == Brightness.dark ? Colors.greenAccent[400] : Colors.green.shade700)),]),if (isDownloaded)Row(mainAxisAlignment: MainAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [Icon(Icons.download_done_rounded, size: 10, color: cs.primary),const SizedBox(width: 3),- Text('Saved', style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: cs.primary)),+ Text(l.saved, style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600, color: cs.primary)),]),]),),@@ -1188,7 +1196,7 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 10),child: Column(crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.center, children: [if (sequence != null && sequence.isNotEmpty)- Text('Book $sequence', style: tt.labelSmall?.copyWith(color: cs.primary, fontWeight: FontWeight.w600)),+ Text(l.bookNumber(sequence), style: tt.labelSmall?.copyWith(color: cs.primary, fontWeight: FontWeight.w600)),Text(bookTitle, maxLines: 2, overflow: TextOverflow.ellipsis,style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),if (authorName.isNotEmpty) ...[diff --git a/lib/widgets/series_card.dart b/lib/widgets/series_card.dartindex 6787799a..a635ff39 100644--- a/lib/widgets/series_card.dart+++ b/lib/widgets/series_card.dart@@ -2,6 +2,7 @@ import 'dart:io';import 'package:flutter/material.dart';import 'package:provider/provider.dart';import 'package:cached_network_image/cached_network_image.dart';+import '../l10n/app_localizations.dart';import '../providers/auth_provider.dart';import '../providers/library_provider.dart';import 'series_books_sheet.dart';@@ -16,10 +17,11 @@ class SeriesCard extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;final lib = context.watch<LibraryProvider>();final auth = context.read<AuthProvider>();- final name = series['name'] as String? ?? 'Unknown Series';+ final name = series['name'] as String? ?? l.seriesCardUnknownSeries;final seriesId = series['id'] as String? ?? '';final books = series['books'] as List<dynamic>? ?? [];final bookCount = books.length;@@ -96,7 +98,7 @@ class SeriesCard extends StatelessWidget {Padding(padding: const EdgeInsets.symmetric(horizontal: 2),child: Text(- '$bookCount book${bookCount != 1 ? 's' : ''}',+ l.seriesCardBookCount(bookCount),style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant,fontSize: 10,@@ -131,6 +133,7 @@ class _StackedCovers extends StatelessWidget {@overrideWidget build(BuildContext context) {+ final l = AppLocalizations.of(context)!;final count = coverUrls.length.clamp(1, 4);const inset = 5.0;final totalOffset = count > 1 ? inset * (count - 1) : 0.0;@@ -213,7 +216,7 @@ class _StackedCovers extends StatelessWidget {Icon(Icons.check_circle_rounded, size: 10,color: Colors.greenAccent),const SizedBox(width: 3),- Text('Finished',+ Text(l.finished,style: TextStyle(fontSize: 9, fontWeight: FontWeight.w600,color: Colors.white.withValues(alpha: 0.9))),],diff --git a/lib/widgets/sleep_timer_sheet.dart b/lib/widgets/sleep_timer_sheet.dartindex 56c1ded4..16607770 100644--- a/lib/widgets/sleep_timer_sheet.dart+++ b/lib/widgets/sleep_timer_sheet.dart@@ -1,4 +1,5 @@import 'package:flutter/material.dart';+import '../l10n/app_localizations.dart';import '../services/audio_player_service.dart';import '../services/sleep_timer_service.dart';@@ -58,6 +59,7 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {final tt = Theme.of(context).textTheme;final cs = Theme.of(context).colorScheme;final accent = widget.accent;+ final l = AppLocalizations.of(context)!;return ListenableBuilder(listenable: SleepTimerService(),@@ -78,11 +80,11 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {child: Column(mainAxisSize: MainAxisSize.min, children: [Container(width: 40, height: 4, decoration: BoxDecoration(color: cs.onSurface.withValues(alpha: 0.24), borderRadius: BorderRadius.circular(2))),const SizedBox(height: 16),- Text('Sleep Timer', style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),+ Text(l.sleepTimer, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onSurface)),const SizedBox(height: 16),if (isActive)- _buildActiveState(sleep, accent, tt)+ _buildActiveState(sleep, accent, tt, l)else ...[// Tab barContainer(@@ -92,30 +94,30 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {),padding: const EdgeInsets.all(3),child: Row(children: [- _tab('Timer', Icons.timer_outlined, 0, accent),+ _tab(l.timer, Icons.timer_outlined, 0, accent),const SizedBox(width: 4),- _tab('End of Chapter', Icons.auto_stories_outlined, 1, accent),+ _tab(l.endOfChapter, Icons.auto_stories_outlined, 1, accent),]),),const SizedBox(height: 20),// Tab content- if (_tabIndex == 0) _buildTimerTab(accent, tt)- else _buildChapterTab(accent, tt),+ if (_tabIndex == 0) _buildTimerTab(accent, tt, l)+ else _buildChapterTab(accent, tt, l),const SizedBox(height: 16),Container(height: 0.5, color: cs.onSurface.withValues(alpha: 0.08)),const SizedBox(height: 12),// Rewind on sleep- _buildRewindSection(accent, tt),+ _buildRewindSection(accent, tt, l),const SizedBox(height: 12),Container(height: 0.5, color: cs.onSurface.withValues(alpha: 0.08)),const SizedBox(height: 12),// Shake toggle- _buildShakeToggle(accent, tt),+ _buildShakeToggle(accent, tt, l),],]),),@@ -124,7 +126,7 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {);}- Widget _buildActiveState(SleepTimerService sleep, Color accent, TextTheme tt) {+ Widget _buildActiveState(SleepTimerService sleep, Color accent, TextTheme tt, AppLocalizations l) {final cs = Theme.of(context).colorScheme;final isTime = sleep.mode == SleepTimerMode.time;@@ -135,7 +137,7 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {final s = r.inSeconds % 60;countdownLabel = '${m.toString().padLeft(2, '0')}:${s.toString().padLeft(2, '0')}';} else {- countdownLabel = '${sleep.chaptersRemaining} ${sleep.chaptersRemaining == 1 ? 'chapter' : 'chapters'} left';+ countdownLabel = l.sleepTimerSheetChaptersLeft(sleep.chaptersRemaining);}return Column(children: [@@ -164,19 +166,19 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {const SizedBox(height: 20),// Quick add buttons- Text('Add more time', style: TextStyle(color: cs.onSurfaceVariant, fontSize: 12)),+ Text(l.addMoreTime, style: TextStyle(color: cs.onSurfaceVariant, fontSize: 12)),const SizedBox(height: 10),if (isTime)Wrap(spacing: 8, runSpacing: 8, alignment: WrapAlignment.center, children: [for (final mins in [5, 10, 15, 30])- _presetChip(accent, '+${mins}m', false, () {+ _presetChip(accent, l.sleepTimerSheetAddMinutesChip(mins), false, () {sleep.addTime(Duration(minutes: mins));}),])elseWrap(spacing: 8, runSpacing: 8, alignment: WrapAlignment.center, children: [for (final ch in [1, 2, 3])- _presetChip(accent, '+$ch ch', false, () {+ _presetChip(accent, l.sleepTimerSheetAddChaptersChip(ch), false, () {for (int i = 0; i < ch; i++) sleep.addChapter();}),]),@@ -185,7 +187,7 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {// Cancel buttonSizedBox(width: double.infinity, height: 44, child: OutlinedButton.icon(icon: const Icon(Icons.close_rounded, size: 18),- label: const Text('Cancel timer'),+ label: Text(l.cancelTimer),style: OutlinedButton.styleFrom(foregroundColor: cs.onSurfaceVariant,side: BorderSide(color: cs.onSurface.withValues(alpha: 0.12)),@@ -200,11 +202,11 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {const SizedBox(height: 12),Container(height: 0.5, color: cs.onSurface.withValues(alpha: 0.08)),const SizedBox(height: 12),- _buildRewindSection(accent, tt),+ _buildRewindSection(accent, tt, l),const SizedBox(height: 12),Container(height: 0.5, color: cs.onSurface.withValues(alpha: 0.08)),const SizedBox(height: 12),- _buildShakeToggle(accent, tt),+ _buildShakeToggle(accent, tt, l),]);}@@ -237,11 +239,11 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {);}- Widget _buildTimerTab(Color accent, TextTheme tt) {+ Widget _buildTimerTab(Color accent, TextTheme tt, AppLocalizations l) {final cs = Theme.of(context).colorScheme;return Column(children: [// Custom slider- Text('${_customMinutes.round()} min',+ Text(l.minutesValue(_customMinutes.round()),style: TextStyle(color: accent, fontSize: 28, fontWeight: FontWeight.w700,fontFeatures: const [FontFeature.tabularFigures()])),const SizedBox(height: 8),@@ -262,15 +264,15 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {Padding(padding: const EdgeInsets.symmetric(horizontal: 12),child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [- Text('1m', style: TextStyle(color: cs.onSurface.withValues(alpha: 0.3), fontSize: 11)),- Text('120m', style: TextStyle(color: cs.onSurface.withValues(alpha: 0.3), fontSize: 11)),+ Text(l.sleepTimerSheetMinShort(1), style: TextStyle(color: cs.onSurface.withValues(alpha: 0.3), fontSize: 11)),+ Text(l.sleepTimerSheetMinShort(120), style: TextStyle(color: cs.onSurface.withValues(alpha: 0.3), fontSize: 11)),]),),const SizedBox(height: 12),// PresetsWrap(spacing: 8, runSpacing: 8, alignment: WrapAlignment.center, children: [for (final mins in [5, 10, 15, 30, 45, 60])- _presetChip(accent, '${mins}m', _customMinutes.round() == mins, () {+ _presetChip(accent, l.sleepTimerSheetMinShort(mins), _customMinutes.round() == mins, () {setState(() => _customMinutes = mins.toDouble());}),]),@@ -284,16 +286,16 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {SleepTimerService().setTimeSleep(Duration(minutes: _customMinutes.round()));Navigator.pop(context);},- child: Text('Start ${_customMinutes.round()} min timer',+ child: Text(l.startMinTimer(_customMinutes.round()),style: const TextStyle(fontWeight: FontWeight.w600, fontSize: 14)),)),]);}- Widget _buildChapterTab(Color accent, TextTheme tt) {+ Widget _buildChapterTab(Color accent, TextTheme tt, AppLocalizations l) {final cs = Theme.of(context).colorScheme;return Column(children: [- Text('$_customChapters ${_customChapters == 1 ? 'chapter' : 'chapters'}',+ Text(l.sleepTimerSheetChaptersValue(_customChapters),style: TextStyle(color: accent, fontSize: 28, fontWeight: FontWeight.w700)),const SizedBox(height: 16),// Chapter count selector@@ -310,7 +312,7 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {// Quick presetsWrap(spacing: 8, runSpacing: 8, alignment: WrapAlignment.center, children: [for (final ch in [1, 2, 3, 5])- _presetChip(accent, '$ch ch', _customChapters == ch, () {+ _presetChip(accent, l.sleepTimerSheetChaptersChip(ch), _customChapters == ch, () {setState(() => _customChapters = ch);}),]),@@ -324,22 +326,22 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {SleepTimerService().setChapterSleep(_customChapters);Navigator.pop(context);},- child: Text('Sleep after $_customChapters ${_customChapters == 1 ? 'chapter' : 'chapters'}',+ child: Text(l.sleepTimerSheetStartChapterSleep(_customChapters),style: const TextStyle(fontWeight: FontWeight.w600, fontSize: 14)),)),]);}/// Format seconds as a human-readable label (e.g. "30s", "5m", "1m 30s").- String _rewindLabel(int seconds) {- if (seconds == 0) return 'Off';- if (seconds < 60) return '${seconds}s';+ String _rewindLabel(int seconds, AppLocalizations l) {+ if (seconds == 0) return l.off;+ if (seconds < 60) return l.sleepTimerSheetSecondsShort(seconds);final m = seconds ~/ 60;final s = seconds % 60;- return s > 0 ? '${m}m ${s}s' : '${m}m';+ return s > 0 ? l.sleepTimerSheetMinSecShort(m, s) : l.sleepTimerSheetMinShort(m);}- Widget _buildRewindSection(Color accent, TextTheme tt) {+ Widget _buildRewindSection(Color accent, TextTheme tt, AppLocalizations l) {final cs = Theme.of(context).colorScheme;final isEnabled = _sleepRewindSeconds > 0;final rewindMinutes = (_sleepRewindSeconds / 60).clamp(0.0, _maxRewindMinutes.toDouble());@@ -348,9 +350,9 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {Row(children: [Icon(Icons.replay_rounded, size: 18, color: isEnabled ? accent : cs.onSurface.withValues(alpha: 0.24)),const SizedBox(width: 10),- Expanded(child: Text('Rewind on sleep',+ Expanded(child: Text(l.sleepTimerSheetRewindOnSleep,style: TextStyle(color: isEnabled ? cs.onSurface.withValues(alpha: 0.7) : cs.onSurfaceVariant, fontSize: 13, fontWeight: FontWeight.w500))),- Text(isEnabled ? _rewindLabel(_sleepRewindSeconds) : 'Off',+ Text(isEnabled ? _rewindLabel(_sleepRewindSeconds, l) : l.off,style: TextStyle(color: isEnabled ? accent : cs.onSurface.withValues(alpha: 0.3), fontSize: 13, fontWeight: FontWeight.w600)),]),const SizedBox(height: 4),@@ -375,30 +377,30 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {Padding(padding: const EdgeInsets.symmetric(horizontal: 12),child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [- Text('Off', style: TextStyle(color: cs.onSurface.withValues(alpha: 0.3), fontSize: 11)),- Text('120m', style: TextStyle(color: cs.onSurface.withValues(alpha: 0.3), fontSize: 11)),+ Text(l.off, style: TextStyle(color: cs.onSurface.withValues(alpha: 0.3), fontSize: 11)),+ Text(l.sleepTimerSheetMinShort(120), style: TextStyle(color: cs.onSurface.withValues(alpha: 0.3), fontSize: 11)),]),),]);}- Widget _buildShakeToggle(Color accent, TextTheme tt) {+ Widget _buildShakeToggle(Color accent, TextTheme tt, AppLocalizations l) {final cs = Theme.of(context).colorScheme;final isEnabled = _shakeMode != 'off';String subtitle;if (_shakeMode == 'addTime') {- subtitle = _tabIndex == 0 ? 'Adds $_shakeAddMinutes min' : 'Adds 1 chapter';+ subtitle = _tabIndex == 0 ? l.sleepTimerSheetAddsMinutes(_shakeAddMinutes) : l.sleepTimerSheetAddsOneChapter;} else if (_shakeMode == 'resetTimer') {- subtitle = 'Resets to full duration';+ subtitle = l.sleepTimerSheetResetsToFull;} else {- subtitle = 'Disabled';+ subtitle = l.disabled;}return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [Row(children: [Icon(Icons.vibration_rounded, size: 18, color: isEnabled ? accent : cs.onSurface.withValues(alpha: 0.24)),const SizedBox(width: 10),Expanded(child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [- Text('Shake', style: TextStyle(color: isEnabled ? cs.onSurface.withValues(alpha: 0.7) : cs.onSurfaceVariant, fontSize: 13, fontWeight: FontWeight.w500)),+ Text(l.sleepTimerSheetShake, style: TextStyle(color: isEnabled ? cs.onSurface.withValues(alpha: 0.7) : cs.onSurfaceVariant, fontSize: 13, fontWeight: FontWeight.w500)),Text(subtitle, style: TextStyle(color: cs.onSurface.withValues(alpha: 0.3), fontSize: 11)),])),]),@@ -407,10 +409,10 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {width: double.infinity,child: SegmentedButton<String>(showSelectedIcon: false,- segments: const [- ButtonSegment(value: 'off', label: Text('Off')),- ButtonSegment(value: 'addTime', label: Text('Add Time')),- ButtonSegment(value: 'resetTimer', label: Text('Reset')),+ segments: [+ ButtonSegment(value: 'off', label: Text(l.off)),+ ButtonSegment(value: 'addTime', label: Text(l.shakeAddTime)),+ ButtonSegment(value: 'resetTimer', label: Text(l.shakeReset)),],selected: {_shakeMode},style: ButtonStyle(@@ -433,8 +435,8 @@ class _SleepTimerSheetState extends State<SleepTimerSheet> {Row(mainAxisAlignment: MainAxisAlignment.spaceBetween,children: [- Text('Shake adds', style: TextStyle(color: cs.onSurfaceVariant, fontSize: 12)),- Text('$_shakeAddMinutes min',+ Text(l.shakeAdds, style: TextStyle(color: cs.onSurfaceVariant, fontSize: 12)),+ Text(l.minutesValue(_shakeAddMinutes),style: TextStyle(fontWeight: FontWeight.w600, color: accent, fontSize: 12)),],),diff --git a/lib/widgets/tips_sheet.dart b/lib/widgets/tips_sheet.dartindex f3f52c16..e37933fb 100644--- a/lib/widgets/tips_sheet.dart+++ b/lib/widgets/tips_sheet.dart@@ -1,8 +1,10 @@import 'package:flutter/material.dart';+import '../l10n/app_localizations.dart';void showTipsSheet(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;showModalBottomSheet(context: context, isScrollControlled: true, useSafeArea: true,backgroundColor: Colors.transparent,@@ -24,103 +26,103 @@ void showTipsSheet(BuildContext context) {Row(children: [Icon(Icons.auto_awesome_rounded, color: cs.primary, size: 24),const SizedBox(width: 10),- Text('Tips & Hidden Features', style: tt.titleLarge?.copyWith(fontWeight: FontWeight.w600)),+ Text(l.tipsAndHiddenFeatures, style: tt.titleLarge?.copyWith(fontWeight: FontWeight.w600)),]),const SizedBox(height: 20),_tipCard(cs, tt,icon: Icons.bookmark_added_rounded,- title: 'Quick Bookmarks',- desc: 'Long-press the bookmark button on any card to instantly drop a bookmark at your current position without opening the bookmark sheet.',+ title: l.tipsSheetQuickBookmarksTitle,+ desc: l.tipsSheetQuickBookmarksDesc,),_tipCard(cs, tt,icon: Icons.edit_note_rounded,- title: 'Edit Bookmarks',- desc: 'Long-press any bookmark in the bookmark sheet to edit its title and add notes.',+ title: l.tipsSheetEditBookmarksTitle,+ desc: l.tipsSheetEditBookmarksDesc,),_tipCard(cs, tt,icon: Icons.touch_app_rounded,- title: 'Cover Play/Pause',- desc: 'Tap the cover art on any card to play or pause. Toggle this in Settings under Absorbing Cards. A faint pause icon shows when playing so you know it\'s tappable.',+ title: l.tipsSheetCoverPlayPauseTitle,+ desc: l.tipsSheetCoverPlayPauseDesc,),_tipCard(cs, tt,icon: Icons.swipe_up_rounded,- title: 'Full Screen Player',- desc: 'Swipe up on any absorbing card to open the full screen player. Swipe down to dismiss it.',+ title: l.tipsSheetFullScreenPlayerTitle,+ desc: l.tipsSheetFullScreenPlayerDesc,),_tipCard(cs, tt,icon: Icons.swipe_right_rounded,- title: 'Quick Add to Absorbing',- desc: 'Swipe right on any book in a list sheet (series, author, search results) to instantly add it to your absorbing queue.',+ title: l.tipsSheetQuickAddAbsorbingTitle,+ desc: l.tipsSheetQuickAddAbsorbingDesc,),_tipCard(cs, tt,icon: Icons.vibration_rounded,- title: 'Shake to Extend Sleep',- desc: 'If you have a sleep timer running and shake your phone, it\'ll add extra minutes. Configure the amount in Settings under Sleep Timer.',+ title: l.tipsSheetShakeExtendSleepTitle,+ desc: l.tipsSheetShakeExtendSleepDesc,),_tipCard(cs, tt,icon: Icons.auto_stories_rounded,- title: 'Series Navigation',- desc: 'Tap the series name in any book\'s detail popup to see all books in the series, sorted in reading order with sequence badges on each cover.',+ title: l.tipsSheetSeriesNavigationTitle,+ desc: l.tipsSheetSeriesNavigationDesc,),_tipCard(cs, tt,icon: Icons.swipe_rounded,- title: 'Swipe Between Books',- desc: 'On the Absorbing screen, swipe left and right to switch between your in-progress books. The dots at the top show which book you\'re viewing.',+ title: l.tipsSheetSwipeBetweenBooksTitle,+ desc: l.tipsSheetSwipeBetweenBooksDesc,),_tipCard(cs, tt,icon: Icons.touch_app_rounded,- title: 'Tap to Seek',- desc: 'Tap anywhere on the chapter or book progress bar to jump directly to that position. You can also drag the bars for fine-grained control.',+ title: l.tipsSheetTapToSeekTitle,+ desc: l.tipsSheetTapToSeekDesc,),_tipCard(cs, tt,icon: Icons.speed_rounded,- title: 'Speed-Adjusted Time',- desc: 'Time remaining and chapter times automatically adjust based on your playback speed. Listening at 1.5x? The time shown reflects how long it\'ll actually take you.',+ title: l.tipsSheetSpeedAdjustedTimeTitle,+ desc: l.tipsSheetSpeedAdjustedTimeDesc,),_tipCard(cs, tt,icon: Icons.history_rounded,- title: 'Playback History',- desc: 'Tap the History button on any card to see a timeline of every play, pause, seek, and speed change. Tap any event to jump back to that position.',+ title: l.tipsSheetPlaybackHistoryTitle,+ desc: l.tipsSheetPlaybackHistoryDesc,),_tipCard(cs, tt,icon: Icons.replay_rounded,- title: 'Auto-Rewind',- desc: 'When you resume after a pause, Absorb automatically rewinds a few seconds so you don\'t lose your place. The rewind amount scales with how long you were away. Configure it in Settings.',+ title: l.tipsSheetAutoRewindTitle,+ desc: l.tipsSheetAutoRewindDesc,),_tipCard(cs, tt,icon: Icons.skip_next_rounded,- title: 'Series Queue Mode',- desc: 'When you finish a book that\'s part of a series, Absorb can automatically play the next book. Set queue mode to "Series" in Settings.',+ title: l.tipsSheetSeriesQueueModeTitle,+ desc: l.tipsSheetSeriesQueueModeDesc,),_tipCard(cs, tt,icon: Icons.airplanemode_active_rounded,- title: 'Offline Mode',- desc: 'Tap the airplane button on the Absorbing screen to enter offline mode. This stops syncing, saves data, and only shows your downloaded books. Great for flights or low signal areas.',+ title: l.tipsSheetOfflineModeTitle,+ desc: l.tipsSheetOfflineModeDesc,),_tipCard(cs, tt,icon: Icons.stop_rounded,- title: 'Stop Playback',- desc: 'The Stop button in the Absorbing header ends your listening session and saves your progress. Your progress syncs automatically in the background.',+ title: l.tipsSheetStopPlaybackTitle,+ desc: l.tipsSheetStopPlaybackDesc,),_tipCard(cs, tt,icon: Icons.download_rounded,- title: 'Download for Offline',- desc: 'Tap the download button in any book\'s detail popup to save it for offline listening. Downloaded books are available in offline mode without any internet connection.',+ title: l.tipsSheetDownloadOfflineTitle,+ desc: l.tipsSheetDownloadOfflineDesc,),_tipCard(cs, tt,icon: Icons.dashboard_customize_rounded,- title: 'Customize Home',- desc: 'Tap the edit button in the top right of the Home screen to rearrange, hide, or show sections. Drag sections into your preferred order.',+ title: l.tipsSheetCustomizeHomeTitle,+ desc: l.tipsSheetCustomizeHomeDesc,),_tipCard(cs, tt,icon: Icons.playlist_play_rounded,- title: 'Playlists',- desc: 'Create and manage playlists on your Audiobookshelf server and they\'ll appear as sections on your Home screen. Add books to playlists from any book\'s detail popup.',+ title: l.tipsSheetPlaylistsTitle,+ desc: l.tipsSheetPlaylistsDesc,),_tipCard(cs, tt,icon: Icons.collections_bookmark_rounded,- title: 'Collections',- desc: 'Collections group related books together and show up as Home sections. Root admins can add books and edit collections from the detail popup.',+ title: l.tipsSheetCollectionsTitle,+ desc: l.tipsSheetCollectionsDesc,),],),diff --git a/lib/widgets/welcome_sheet.dart b/lib/widgets/welcome_sheet.dartindex 7cb955d4..fb40a398 100644--- a/lib/widgets/welcome_sheet.dart+++ b/lib/widgets/welcome_sheet.dart@@ -1,6 +1,8 @@import 'package:flutter/material.dart';import 'package:shared_preferences/shared_preferences.dart';+import '../l10n/app_localizations.dart';+/// Shows a one-time welcome sheet explaining the Absorbing system.class WelcomeSheet {static const _prefKey = 'has_seen_welcome';@@ -31,6 +33,7 @@ class _WelcomeContent extends StatelessWidget {Widget build(BuildContext context) {final cs = Theme.of(context).colorScheme;final tt = Theme.of(context).textTheme;+ final l = AppLocalizations.of(context)!;return Container(constraints: BoxConstraints(@@ -65,7 +68,7 @@ class _WelcomeContent extends StatelessWidget {children: [Icon(Icons.waves_rounded, color: cs.primary, size: 28),const SizedBox(width: 12),- Text('Welcome to Absorb',+ Text(l.welcomeToAbsorb,style: tt.headlineSmall?.copyWith(fontWeight: FontWeight.w700,)),@@ -73,7 +76,7 @@ class _WelcomeContent extends StatelessWidget {),const SizedBox(height: 8),Text(- 'Here\'s a quick overview of how things work.',+ l.welcomeOverview,style: tt.bodyMedium?.copyWith(color: cs.onSurface.withValues(alpha: 0.6),),@@ -82,67 +85,60 @@ class _WelcomeContent extends StatelessWidget {_section(cs, tt,icon: Icons.home_rounded,- title: 'Home',- body: 'Your personalized shelves from Audiobookshelf - continue listening, '- 'discover new titles, and browse your playlists and collections. '- 'Use the edit button in the top right to customize which sections appear and their order.',+ title: l.welcomeHomeTitle,+ body: l.welcomeHomeBody,),_section(cs, tt,icon: Icons.library_books_rounded,- title: 'Library',- body: 'Browse your full library with tabs for books, series, and authors. '- 'Tap the active tab to open sort and filter options.',+ title: l.welcomeLibraryTitle,+ body: l.welcomeLibraryBody,),_section(cs, tt,icon: Icons.waves_rounded,- title: 'Absorbing',- body: 'Your active listening queue. Books you start playing automatically '- 'appear here as swipeable cards with full playback controls.',+ title: l.welcomeAbsorbingTitle,+ body: l.welcomeAbsorbingBody,),_subsection(cs, tt,- title: 'Queue modes',+ title: l.welcomeQueueModesTitle,items: [- 'Off - playback stops when a book finishes',- 'Manual - auto-plays the next card in your queue',- 'Series - automatically finds and plays the next book in a series',+ l.welcomeQueueModeOff,+ l.welcomeQueueModeManual,+ l.welcomeQueueModeAuto,],),_subsection(cs, tt,- title: 'Managing your queue',+ title: l.welcomeManagingQueueTitle,items: [- 'Tap the cover art to play/pause (toggleable in Settings)',- 'Swipe up on a card to open the full screen player, swipe down to dismiss',- 'Swipe right on any book in a list sheet to quickly add it to your queue',- 'Tap the reorder icon to drag cards into your preferred order or swipe to remove',- 'Add books manually from any book\'s detail sheet',- 'Finished books are automatically removed from your queue',+ l.welcomeManagingCoverTap,+ l.welcomeManagingSwipeUp,+ l.welcomeManagingSwipeRight,+ l.welcomeManagingReorder,+ l.welcomeManagingAdd,+ l.welcomeManagingRemoveFinished,],),_subsection(cs, tt,- title: 'Merge libraries',+ title: l.welcomeMergeLibrariesTitle,items: [- 'Enable in Settings to show all your libraries together in one queue',+ l.welcomeMergeLibrariesBody,],),_section(cs, tt,icon: Icons.download_rounded,- title: 'Downloads & Offline',- body: 'Download books for offline listening. Toggle offline mode with the '- 'airplane icon on the Absorbing screen. Your progress syncs back '- 'to the server automatically when you reconnect.',+ title: l.welcomeDownloadsTitle,+ body: l.welcomeDownloadsBody,),_section(cs, tt,icon: Icons.settings_rounded,- title: 'Settings',- body: 'Configure queue behavior, sleep timers, playback speed, '- 'local server connections, and more.',+ title: l.welcomeSettingsTitle,+ body: l.welcomeSettingsBody,),const SizedBox(height: 16),@@ -156,7 +152,7 @@ class _WelcomeContent extends StatelessWidget {borderRadius: BorderRadius.circular(14),),),- child: const Text('Get Started'),+ child: Text(l.getStarted),),),],