Skip to content

Commit

Permalink
Merge pull request #103 from Discord-Dashboard/translations
Browse files Browse the repository at this point in the history
Command page translations
  • Loading branch information
iMidnights authored Jun 16, 2024
2 parents 61f4f73 + 45ea03b commit 0cd99db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions views/commands.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
<div class="col-12 item <%= category.categoryId %>" id="divtable">
<div class="card mb-4 command-card">
<div class="card-header pb-0">
<h4><%= category.category %></h4>
<a><%= category.subTitle %></a>
<h4><%= req.locales?.commands?.categories?.[category.categoryId]?.category || category.category %></h4>
<a><%= req.locales?.commands?.categories?.[category.categoryId]?.subTitle || category.subTitle %></a>
</div>
<div class="card-body px-0 pt-0 pb-2">
<div class="table-responsive p-0">
Expand Down Expand Up @@ -98,21 +98,21 @@
<% } %>
</div>
<div class="d-flex flex-column justify-content-center">
<h6 class="mb-0 text-sm"><%= item.commandName %></h6>
<h6 class="mb-0 text-sm"><%= req.locales?.commands?.categories?.[category.categoryId]?.commands?.[item.commandName]?.commandName || item.commandName %></h6>
</div>
</div>
</td>
<td>
<p class="text-xs font-weight-bold mb-0"><%= item.commandUsage %></p>
<p class="text-xs font-weight-bold mb-0"><%= req.locales?.commands?.categories?.[category.categoryId]?.commands?.[item.commandName]?.commandUsage || item.commandUsage %></p>
</td>
<% if(!category.hideDescription) { %>
<td class="align-middle text-center text-sm">
<p class="text-xs font-weight-bold mb-0"><%= item.commandDescription %></p>
<p class="text-xs font-weight-bold mb-0"><%= req.locales?.commands?.categories?.[category.categoryId]?.commands?.[item.commandName]?.commandDescription || item.commandDescription %></p>
</td>
<% } %>
<% if(!category.hideAlias) { %>
<td class="align-middle text-center">
<span class="text-secondary text-xs font-weight-bold"><%= item.commandAlias %></span>
<span class="text-secondary text-xs font-weight-bold"><%= req.locales?.commands?.categories?.[category.categoryId]?.commands?.[item.commandName]?.commandAlias || item.commandAlias %></span>
</td>
<% } %>
<td class="align-middle">
Expand Down

0 comments on commit 0cd99db

Please sign in to comment.