Skip to content

Commit

Permalink
Add ability to translate titles in sidebar (#1409)
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 authored and chrisvfritz committed Feb 2, 2018
1 parent ce1b826 commit 58f88a4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions themes/vue/layout/partials/sidebar.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
Become a Sponsor
</a>
<h2>
<%-
type === 'api'
? 'API'
: type === 'style-guide'
? 'Style Guide<sup class="beta">beta</sup>'
: (type.charAt(0).toUpperCase() + type.slice(1))
%>
<% titles = {
api: 'API',
examples: 'Examples',
guide: 'Guide',
'style-guide': 'Style Guide<sup class="beta">beta</sup>'
} %>
<%- titles[type] %>
<% if (['cookbook', 'style-guide'].indexOf(type) === -1) { %>
<select class="version-select">
<option value="SELF" selected>2.x</option>
Expand Down

0 comments on commit 58f88a4

Please sign in to comment.