-
<%= translate(locale, "`x` created playlists", %(#{items_created.size})) %>
+ <%= translate(locale, "user_created_playlists", %(#{items_created.size})) %>
@@ -23,7 +23,7 @@
-
<%= translate(locale, "`x` saved playlists", %(#{items_saved.size})) %>
+ <%= translate(locale, "user_saved_playlists", %(#{items_saved.size})) %>
diff --git a/src/invidious/views/preferences.ecr b/src/invidious/views/preferences.ecr
index 374edc99..6bd9e348 100644
--- a/src/invidious/views/preferences.ecr
+++ b/src/invidious/views/preferences.ecr
@@ -51,7 +51,7 @@
@@ -62,7 +62,7 @@
@@ -121,8 +121,8 @@
diff --git a/src/invidious/views/template.ecr b/src/invidious/views/template.ecr
index 3fb2fe18..5b6e6ab8 100644
--- a/src/invidious/views/template.ecr
+++ b/src/invidious/views/template.ecr
@@ -19,8 +19,10 @@
-<% locale = LOCALES[env.get("preferences").as(Preferences).locale]? %>
-<% dark_mode = env.get("preferences").as(Preferences).dark_mode %>
+<%
+ locale = env.get("preferences").as(Preferences).locale
+ dark_mode = env.get("preferences").as(Preferences).dark_mode
+%>
-theme">
<%= env.get("preferences").as(Preferences).dark_mode %>
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr
index 9cf00393..b85ea59d 100644
--- a/src/invidious/views/watch.ecr
+++ b/src/invidious/views/watch.ecr
@@ -103,7 +103,7 @@ we're going to need to do it here in order to allow for translations.
<% elsif video.live_now %>
- <%= video.premiere_timestamp.try { |t| translate(locale, "Started streaming `x` ago", recode_date((Time.utc - t).ago, locale)) } %>
+ <%= video.premiere_timestamp.try { |t| translate(locale, "videoinfo_started_streaming_x_ago", recode_date((Time.utc - t).ago, locale)) } %>
<% end %>
@@ -112,8 +112,8 @@ we're going to need to do it here in order to allow for translations.
- <%= translate(locale, "Watch on YouTube") %>
- (<%= translate(locale, "Embed") %>)
+ <%= translate(locale, "videoinfo_watch_on_youTube") %>
+ (<%= translate(locale, "videoinfo_youTube_embed_link") %>)
<% if env.get("preferences").as(Preferences).automatic_instance_redirect%>
@@ -123,7 +123,7 @@ we're going to need to do it here in order to allow for translations.
<% end %>
- <%= translate(locale, "Embed Link") %>
+ <%= translate(locale, "videoinfo_invidious_embed_link") %>
<% if params.annotations %>
@@ -189,7 +189,7 @@ we're going to need to do it here in order to allow for translations.
<% end %>
<% captions.each do |caption| %>
<% end %>