From 1dd549fd4b5a3b4a302f32b84ef409b2fc9e7cd7 Mon Sep 17 00:00:00 2001 From: Richard Lora Date: Sat, 23 May 2026 18:24:04 +0000 Subject: [PATCH] fix(before_all): use I18n.translate for page_disabled error messages --- src/invidious/routes/before_all.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invidious/routes/before_all.cr b/src/invidious/routes/before_all.cr index 6d7f18ef..13e3c551 100644 --- a/src/invidious/routes/before_all.cr +++ b/src/invidious/routes/before_all.cr @@ -175,7 +175,7 @@ module Invidious::Routes::BeforeAll locale = preferences.locale dark_mode = preferences.dark_mode theme_class = dark_mode.blank? ? "no" : dark_mode - error_message = translate(locale, "#{page_key}_page_disabled") + error_message = I18n.translate(locale, "#{page_key}_page_disabled") env.response.content_type = "text/html" env.response.print <<-HTML @@ -200,7 +200,7 @@ module Invidious::Routes::BeforeAll

#{error_message}

-

← #{translate(locale, "Back")}

+

← #{I18n.translate(locale, "Back")}