Skip to content

Commit

Permalink
feat(i18n): localize featured_circuits (#2429)
Browse files Browse the repository at this point in the history
signed-off-by: Pavan Joshi <pavanj914@gmail.com>
  • Loading branch information
pavanjoshi914 committed Jan 28, 2022
1 parent 7f42d0f commit 952c510
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/featured_circuits/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<% content_for :title, "CircuitVerse - Editor Picks" %>
<% content_for :title, t("featured_circuits.title") %>

<div class="container">
<div class="row center-row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<h1 class="main-heading">Editor Picks</h1>
<p class="main-description">These circuits have been hand-picked by our authors for their awesomeness</p>
<h1 class="main-heading"><%= t("featured_circuits.main_heading") %></h1>
<p class="main-description"><%= t("featured_circuits.main_description") %></p>
</div>
</div>
<div class="row center-row examples-container">
Expand All @@ -17,7 +17,7 @@
<p><%= project.name %></p>
<span class="tooltiptext"><%= project.name %></span>
</div>
<a class="btn primary-button circuit-card-primary-button" target="_blank" href="<%= user_project_url(project.author, project) %>">View</a>
<a class="btn primary-button circuit-card-primary-button" target="_blank" href="<%= user_project_url(project.author, project) %>"><%= t("view") %></a>
</div>
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions config/locales/views/featured_circuits/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
en:
featured_circuits:
title: "CircuitVerse - Editor Picks"
main_heading: "Editor Picks"
main_description: "These circuits have been hand-picked by our authors for their awesomeness"
5 changes: 5 additions & 0 deletions config/locales/views/featured_circuits/hi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
hi:
featured_circuits:
title: "सर्किटवर्स - एडिटर की पसंद"
main_heading: "एडिटर की पसंद"
main_description: "इन सर्किटों को हमारे लेखकों ने उनकी उत्कृष्टता के लिए चुना है"

0 comments on commit 952c510

Please sign in to comment.