diff --git a/src/invidious/helpers/errors.cr b/src/invidious/helpers/errors.cr index acabb1f2..dc24b173 100644 --- a/src/invidious/helpers/errors.cr +++ b/src/invidious/helpers/errors.cr @@ -85,6 +85,7 @@ def error_template_helper(env : HTTP::Server::Context, status_code : Int32, mess locale = env.get("preferences").as(Preferences).locale + error_message = translate(locale, message) unfound_tv_box_dark_theme = File.read("assets/404_tv_box_dark_theme.svg") next_steps = error_redirect_helper(env) diff --git a/src/invidious/views/error.ecr b/src/invidious/views/error.ecr index 80305be0..6cf33f26 100644 --- a/src/invidious/views/error.ecr +++ b/src/invidious/views/error.ecr @@ -3,6 +3,9 @@ <% end %>
+ + <%= error_message %> + <%= unfound_tv_box_dark_theme %> <%= next_steps %>