Translate pinned (#15008)

* Translate pinned

* Add pinned
This commit is contained in:
Ben Halpern 2021-10-12 08:24:29 -04:00 committed by GitHub
parent 30c06b1b5c
commit ebc2961920
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 3 deletions

View file

@ -90,7 +90,7 @@
<div
class="pinned color-accent-brand fw-bold"
data-testid="pinned-article">
<%= inline_svg_tag("pin.svg", alt: "", aria_hidden: true, class: "mr-1 align-text-bottom color-accent-brand") %>Pinned <span class="hidden s:inline">post</span>
<%= inline_svg_tag("pin.svg", alt: "", aria_hidden: true, class: "mr-1 align-text-bottom color-accent-brand") %><%= t("core.pinned") %>
</div>
<% end %>
</div>

View file

@ -3,7 +3,7 @@
<header>
<h3 class="crayons-subtitle-3 inline-flex items-center bg-accent-brand color-base-inverted pl-3 pr-4 py-2 ml-4 -mt-2 radius-default">
<%= inline_svg_tag("pin.svg", aria: true, class: "crayons-icon mr-2", title: "Pin") %>
Pinned
<%= t("core.pinned") %>
</h3>
</header>
<div class="p-4 pb-2 pt-3">

View file

@ -33,6 +33,7 @@ en:
month: Month
more_from: More from
my_tags: My Tags
pinned: Pinned
on_video: "%{name} on Video"
popular_tags: Popular Tags
post: Post

View file

@ -33,6 +33,7 @@ fr:
month: Mois
more_from: Plus de la part de
my_tags: Mes sujets
pinned: Épinglé
on_video: "%{name} en Vidéo"
popular_tags: Sujets populaires
post: Publication

View file

@ -25,7 +25,7 @@ RSpec.describe "UserProfiles", type: :request do
end
it "does not render pins if they don't exist" do
get "/#{user.username}"
get "/#{user.username}?i=i" # Pinned will still be present in layout file, but not the "internal" version
expect(response.body).not_to include "Pinned"
end