diff --git a/locales/en-US.json b/locales/en-US.json index 0e099969..3b985194 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -114,6 +114,7 @@ "Default homepage: ": "Default homepage: ", "Feed menu: ": "Feed menu: ", "Show nickname on top: ": "Show nickname on top: ", + "Welcome, `x`": "Welcome, `x`", "Top enabled: ": "Top enabled: ", "CAPTCHA enabled: ": "CAPTCHA enabled: ", "Login enabled: ": "Login enabled: ", diff --git a/locales/pl.json b/locales/pl.json index c55b3107..2e6e3ff5 100644 --- a/locales/pl.json +++ b/locales/pl.json @@ -333,5 +333,6 @@ "Playlists": "Playlisty", "Community": "Społeczność", "Current version: ": "Aktualna wersja: ", - "Show nickname on top: ": "Pokaż nazwę użytkownika na górze: " + "Show nickname on top: ": "Pokaż nazwę użytkownika na górze: ", + "Welcome, `x`": "Witaj, `x`" } diff --git a/src/invidious/views/template.ecr b/src/invidious/views/template.ecr index 421d7c2d..781762fb 100644 --- a/src/invidious/views/template.ecr +++ b/src/invidious/views/template.ecr @@ -68,7 +68,7 @@ <% if env.get("preferences").as(Preferences).show_nick %>
- Welcome, <%= env.get("user").as(User).email %> + <%= translate(locale, "Welcome, `x`", env.get("user").as(User).email) %>
<% end %>