diff --git a/playlet-lib/src/components/ChannelView/ChannelView.bs b/playlet-lib/src/components/ChannelView/ChannelView.bs
index 683a78f5..0d1bb9e1 100644
--- a/playlet-lib/src/components/ChannelView/ChannelView.bs
+++ b/playlet-lib/src/components/ChannelView/ChannelView.bs
@@ -257,7 +257,7 @@ function GetSortingContextMenuOptionsForItem(video as object) as object
return []
end if
- title = `Sort ${feedContentNode.title} by`
+ title = Tr(Locale.Dialogs.SortFeedBy).replace("%1", feedContentNode.title)
sortOptions = m.sortOptions[endpoint]
return [ContextMenuUtils.CreateOption(title + "...", m.top, "ShowSortDialog", [title, sortOptions, feedContentNode])]
@@ -309,7 +309,7 @@ end function
function ShowSortDialog(title as string, sortOptions as object, feedContentNode as object)
buttons = []
for i = 0 to sortOptions.Count() - 1
- buttons.Push(sortOptions[i].title)
+ buttons.Push(Tr(sortOptions[i].title))
end for
dialog = DialogUtils.ShowDialogButtons("", title, buttons)
diff --git a/playlet-lib/src/locale/en_US/translations.ts b/playlet-lib/src/locale/en_US/translations.ts
index 4b33d43e..9b152566 100644
--- a/playlet-lib/src/locale/en_US/translations.ts
+++ b/playlet-lib/src/locale/en_US/translations.ts
@@ -160,6 +160,26 @@
Do you want to exit Playlet?Do you want to exit Playlet?
+
+ Sort %1 by
+ Sort %1 by
+
+
+ Latest
+ Latest
+
+
+ Oldest
+ Oldest
+
+
+ Date added (newest)
+ Date added (newest)
+
+
+ Last video added
+ Last video added
+ Invidious custom instanceInvidious custom instance
diff --git a/playlet-lib/src/locale/fr_CA/translations.ts b/playlet-lib/src/locale/fr_CA/translations.ts
index acce3352..1a4ef506 100644
--- a/playlet-lib/src/locale/fr_CA/translations.ts
+++ b/playlet-lib/src/locale/fr_CA/translations.ts
@@ -157,6 +157,26 @@
Do you want to exit Playlet?Voulez-vous quitter Playlet?
+
+ Sort %1 by
+ Trier %1 par
+
+
+ Latest
+ Les plus récentes
+
+
+ Oldest
+ Les plus anciennes
+
+
+ Date added (newest)
+ Date d'ajout (la plus récente)
+
+
+ Last video added
+ Dernière vidéo ajoutée
+ Invidious custom instanceInstance personnalisée d'Invidious
diff --git a/playlet-lib/src/source/utils/Locale.bs b/playlet-lib/src/source/utils/Locale.bs
index 9238c1c0..414e5842 100644
--- a/playlet-lib/src/source/utils/Locale.bs
+++ b/playlet-lib/src/source/utils/Locale.bs
@@ -58,6 +58,13 @@ namespace Locale
LoginInstructions1 = "Login to Invidious in order to view Subscriptions, Playlists, and use the Watch history."
LoginInstructions2 = "Please note that an Invidious account is different from a YouTube account."
ExitPlayletQuestion = "Do you want to exit Playlet?"
+ ' Sort channel feeds
+ SortFeedBy = "Sort %1 by"
+ Latest = "Latest"
+ ' Popular = "Popular"
+ Oldest = "Oldest"
+ DateAdded = "Date added (newest)"
+ LastVideoAdded = "Last video added"
end enum
@locale