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")}