app/views/layouts/trestle/admin.html.erb in trestle-0.8.7 vs app/views/layouts/trestle/admin.html.erb in trestle-0.8.8

- old
+ new

@@ -24,12 +24,10 @@ <script type="text/javascript"> <% Trestle.config.javascript_i18n_keys.each do |key| %> Trestle.i18n['<%= key %>'] = "<%= escape_javascript(t(key, default: t(key, locale: :en))) %>"; <% end %> - if (flatpickr.l10ns['<%= I18n.locale %>']) { - flatpickr.localize(flatpickr.l10ns['<%= I18n.locale %>']); - } + Trestle.localize(<%= i18n_fallbacks.map { |l| "'#{l}'" }.join(", ").html_safe %>); </script> <%= hook :javascripts %> <%= content_for(:head) %>