Skip to content

Commit c69500c

Browse files
committed
Update persistent toast to use en.yml
1 parent 8a8d13b commit c69500c

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

app/views/shared/_persistent_toast.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<%= inline_svg_tag "icons/info.svg" %>
55
</div>
66
<p class="toast-content">
7-
Looking to level up a team?<br/>Check out Upcase for Teams.
7+
<%= t(".content_html")%>
88
</p>
99
<div class="toast-cta-container">
1010
<%= link_to({controller: "/marketing_redesign/home", action: :show}) do %>
11-
Go
12-
<%= inline_svg_tag "icons/arrow-right.svg" %>
11+
<%= t(".cta_go")%>
12+
<%= inline_svg_tag "icons/arrow-right.svg" %>
1313
<% end %>
1414
<button class="toast-button">
15-
Dismiss
15+
<%= t(".cta_dismiss")%>
1616
</button>
1717
</div>
1818
</div>

config/locales/en.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ en:
117117
complete-welcome: Dismiss this page (for now)
118118
headline: Read this to write better code.
119119
post-welcome-message: All content unlocked. Enjoy!
120-
121120
practice:
122121
decks:
123122
decks-list-title: decks
@@ -179,6 +178,10 @@ en:
179178
multi_user: Team Membership
180179
single_user: Join Upcase
181180
upcase: Upcase
181+
persistent_toast:
182+
content_html: Looking to level up a team?<br/>Check out Upcase for Teams.
183+
cta_go: Go
184+
cta_dismiss: Dismiss
182185
content_meta_description: "Explore thoughtbot's video tutorials, exercises,
183186
and forum discussions on %{name}"
184187
show:

0 commit comments

Comments
 (0)