Skip to content

Commit b836f04

Browse files
author
zasawala
committed
Locale as string
1 parent 3abf1eb commit b836f04

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: app/views/lit/dashboard/index.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<strong>All localization keys</strong> <%= Lit::LocalizationKey.active.count(:id) %><br/>
22
<% @locales.each do |l| %>
3-
<strong><%= EmojiFlag.new(l.locale[0,2]) %> <%= I18n.t("lit.locale_to_languages.#{l.locale}", :default=>l.locale) %>:</strong> <span title="<%= "#{l.changed_localizations_count}/#{l.all_localizations_count}" %>"><%= l.translated_percentage %>%</span><br/>
3+
<strong><%= EmojiFlag.new(l.locale) %> <%= I18n.t("lit.locale_to_languages.#{l.locale}", :default=>l.locale) %>:</strong> <span title="<%= "#{l.changed_localizations_count}/#{l.all_localizations_count}" %>"><%= l.translated_percentage %>%</span><br/>
44
<% end %>
55

Diff for: app/views/lit/incomming_localizations/index.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<% @incomming_localizations.each do |il| %>
2626
<tr data-id="<%= il.id %>">
2727
<td colspan="3">
28-
<%= image_tag EmojiFlag.new(il.locale_str[0,2]) %>
28+
<%= image_tag EmojiFlag.new(il.locale_str) %>
2929
<strong><%= il.full_key %></strong>
3030
</td>
3131
</tr>

Diff for: app/views/lit/localization_keys/_localizations_list.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<%= render partial: 'localization_row', locals: {localization: Lit.init.cache["#{locale}.#{lk.localization_key}"]} %>
4444
</td>
4545
<td class="locale_row text-center">
46-
<%= EmojiFlag.new(locale[0,2]) %>
46+
<%= EmojiFlag.new(locale) %>
4747
<%= locale %>
4848
<% if localization %>
4949
<%= link_to lit.previous_versions_localization_key_localization_path(lk, localization, format: :js), class: "show_prev_versions #{'hidden' unless versions?(localization)}", remote: true do %>

0 commit comments

Comments
 (0)