Read-only patch written, frontend shows dictionary in different languages

This commit is contained in:
maddiebaka
2023-12-07 11:31:54 -05:00
parent 60f37ece67
commit 937f97ecb2
23 changed files with 3364 additions and 264 deletions

View File

@@ -1,12 +1,12 @@
<table>
<tr>
<td><b>Part of Speech</b></td>
<td><b>Definition</b></td>
<td class="px-2"><b>Part of Speech</b></td>
<td class="px-2"><b>Definition</b></td>
</tr>
<% word.definitions.each do |definition| %>
<% word.definitions_for(language).each do |definition| %>
<tr>
<td><b><%= definition.pos %></b></td>
<td><%= definition.definition %></td>
<td class="px-2"><b><%= definition.pos %></b></td>
<td class="px-2"><%= definition.definition %></td>
</tr>
<% end %>
</table>

View File

@@ -2,13 +2,13 @@
<table>
<tr>
<td><b>Part of Speech</b></td>
<td><b>Definition</b></td>
<td class="px-2"><b>Part of Speech</b></td>
<td class="px-2"><b>Definition</b></td>
</tr>
<% parts_of_speech.each do |item| %>
<tr>
<td><b><%= item.pos %></b></td>
<td><%= item.definition %></td>
<td class="px-2"><b><%= item.pos %></b></td>
<td class="px-2"><%= item.definition %></td>
</tr>
<% end %>
</table>