From 074a8c208a386d8cd26680bad25cf4c047393282 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 74f43d90..16e68063 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -484,5 +484,7 @@ "channel_tab_releases_label": "Releases", "channel_tab_playlists_label": "Playlists", "channel_tab_community_label": "Community", - "channel_tab_channels_label": "Channels" + "channel_tab_channels_label": "Channels", + "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 %>