This commit is contained in:
BoHung Chiu 2022-01-26 19:57:55 +08:00
parent 7724fd5769
commit 742adb814d
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@
<% result.result.each do |key,value| %>
<% @key_len %>
<% if key != "locale" %>
<% if result.values[key][I18n.locale.to_s].length == 0 %>
<% if (result.values[key][I18n.locale.to_s].length == 0 rescue true) %>
<td><%= value.to_s %></td>
<% else %>
<td><% v = result.values[key][I18n.locale.to_s][value.to_i-1] rescue nil %><%= v.nil? ? value : v %></td>