From 9f43a74871587ca1c03a17e7f0da56fcc4512bf9 Mon Sep 17 00:00:00 2001 From: syeopite Date: Mon, 21 Aug 2023 22:38:54 -0700 Subject: [PATCH] Localize chapters label --- locales/en-US.json | 4 +++- .../views/components/description_chapters_widget.ecr | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/locales/en-US.json b/locales/en-US.json index 3987f796..b11b1152 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -496,5 +496,7 @@ "toggle_theme": "Toggle Theme", "carousel_slide": "Slide {{current}} of {{total}}", "carousel_skip": "Skip the Carousel", - "carousel_go_to": "Go to slide `x`" + "carousel_go_to": "Go to slide `x`", + "video_chapters_label": "Chapters", + "video_chapters_auto_generated_label": "These chapters are auto-generated" } diff --git a/src/invidious/views/components/description_chapters_widget.ecr b/src/invidious/views/components/description_chapters_widget.ecr index 852798d1..32e726e8 100644 --- a/src/invidious/views/components/description_chapters_widget.ecr +++ b/src/invidious/views/components/description_chapters_widget.ecr @@ -1,10 +1,10 @@ <% if !chapters.empty? %>

-

Chapters

+

<%=translate(locale, "video_chapters_label")%>

<% if video.automatically_generated_chapters? %> -
Chapters are automatically generated
+
<%=translate(locale, "video_chapters_auto_generated_label")%>
<% end %>