Skip to content

Commit

Permalink
Translate share alt title in answerbox actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeldesu committed Jul 31, 2022
1 parent bb47e30 commit 437e72a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/answerbox/_actions.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%span{ id: "ab-comment-count-#{a.id}" }= a.comment_count
.btn-group
%button.btn.btn-link.answerbox__action{ data: { toggle: :dropdown }, aria: { expanded: false } }
%i.fa.fa-fw.fa-share-alt{ title: "Share" }
%i.fa.fa-fw.fa-share-alt{ title: t(".share.title") }
.dropdown-menu.dropdown-menu-right{ role: :menu }
%a.dropdown-item{ href: twitter_share_url(a), target: "_blank" }
%i.fa.fa-fw.fa-twitter
Expand Down
1 change: 1 addition & 0 deletions config/locales/views.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ en:
asked: "%{user} asked %{time} ago"
actions:
share:
title: "Share"
twitter: "Share on Twitter"
tumblr: "Share on Tumblr"
other: "Share on other apps..."
Expand Down

0 comments on commit 437e72a

Please sign in to comment.