Add empty page text, playlist text to settings
This commit is contained in:
@ -8,9 +8,12 @@ struct AudioPlayerCommand: CommandProcessor {
|
||||
|
||||
let results: PageGenerationResults
|
||||
|
||||
let language: ContentLanguage
|
||||
|
||||
init(content: Content, results: PageGenerationResults, language: ContentLanguage) {
|
||||
self.content = content
|
||||
self.results = results
|
||||
self.language = language
|
||||
}
|
||||
|
||||
func process(_ arguments: [String], markdown: Substring) -> String {
|
||||
@ -104,6 +107,9 @@ struct AudioPlayerCommand: CommandProcessor {
|
||||
.audioPlayerPause
|
||||
)
|
||||
|
||||
return AudioPlayer(playingText: titleText, items: playlist).content
|
||||
return AudioPlayer(
|
||||
playlistText: content.settings.audioPlayer.localized(in: language).playlistText,
|
||||
playingText: titleText,
|
||||
items: playlist).content
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user