Invidious is an alternative front-end to YouTube
Included the check for RTL languages
RadoslavL7fe2af735db9
diff --git a/src/invidious/frontend/pagination.cr b/src/invidious/frontend/pagination.crindex 85e588ff..40a9a62e 100644--- a/src/invidious/frontend/pagination.cr+++ b/src/invidious/frontend/pagination.cr@@ -5,11 +5,20 @@ module Invidious::Frontend::Paginationprivate def first_page(str : String::Builder, locale : String?, url : String)str << %(<a href=") << url << %(" class="pure-button pure-button-secondary">)++ if locale_is_rtl?(locale)+ # Inverted arrow ("first" points to the right)+ str << translate(locale, "First page")+ str << " "+ str << %(<i class="icon ion-ios-arrow-forward"></i>)+ else+ # Regular arrow ("first" points to the left)+ str << %(<i class="icon ion-ios-arrow-back"></i>)+ str << " "+ str << translate(locale, "First page")+ end- str << translate(locale, "First page")- str << " "- str << %(<i class="icon ion-ios-arrow-back"></i>)- str << "</a>"+ str << "</a>"endprivate def previous_page(str : String::Builder, locale : String?, url : String)