Locale for context menu (#337)

This commit is contained in:
Brahim Hadriche authored and GitHub committed 2024-03-23 14:30:32 -04:00
1 parent 25330a6494
commit 615439650e
13 files changed
+180 -38

No files matched your search

@@ -217,6 +217,7 @@ function InitializeSortOptions()
end function
function CreateChannelFeed(title as string, endpoint as string, ucid as string, author as string) as object
title = Tr(title)
return {
title: title
feedSources: [{
@@ -257,7 +258,7 @@ function GetSortingContextMenuOptionsForItem(video as object) as object
return []
end if
title = Tr(Locale.Dialogs.SortFeedBy).replace("%1", feedContentNode.title)
title = Tr(Locale.Dialogs.SortFeedBy).replace("%1", `"${feedSource.title}"`)
sortOptions = m.sortOptions[endpoint]
return [ContextMenuUtils.CreateOption(title + "...", m.top, "ShowSortDialog", [title, sortOptions, feedContentNode])]