This commit is contained in:
BoHung Chiu 2022-01-26 19:57:13 +08:00
parent e5205fab5f
commit 92345e9ac3
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>