Skip to content

Commit

Permalink
Add localized strings for Longest Episode Story
Browse files Browse the repository at this point in the history
  • Loading branch information
bjtitus committed Oct 29, 2024
1 parent 3a8af4b commit db6f280
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ struct LongestEpisode2024Story: ShareableStory {
.padding(.top, isSmallScreen ? 0 : 20)
VStack(alignment: .leading, spacing: isSmallScreen ? 4 : 16) {
let timeString = episode.playedUpTo.storyTimeDescriptionForSharing
Text("The longest episode you listened to was \(timeString)")
Text(L10n.playback2024LongestEpisodeTitle(timeString))
.font(.system(size: 31, weight: .bold))
Text("It was \"\(episode.title ?? "unknown")\" from \"\(podcast.title ?? "unknown")\"")
Text(L10n.playback2024LongestEpisodeDescription(episode.title ?? "unknown", podcast.title ?? "unknown"))
.font(.system(size: 15, weight: .light))
}
.padding(.horizontal, 24)
Expand Down
8 changes: 8 additions & 0 deletions podcasts/Strings+Generated.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions podcasts/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -3557,6 +3557,12 @@
/* A description used to indicate the number of days and hours spent listening to podcasts in the last year */
"playback_2024_listening_time_description" = "%1$@ total listening to podcasts";

/* A title shown with the amount of time listened on the Longest Episode screen of Playback 2024 */
"playback_2024_longest_episode_title" = "The longest episode you listened to was %1$@";

/* A description shown on the Longest Episode screen of Playback 2024 with the episode title and podcast title */
"playback_2024_longest_episode_description" = "It was \"%1$@\" from \"%2$@\"";

/* Label of the End of Year dismiss button */
"eoy_not_now" = "Not Now";

Expand Down

0 comments on commit db6f280

Please sign in to comment.