Sha256: caac4954bf71d60527f17046a1b406db2027eae9521607a7a2af6bdea7b27310

Contents?: true

Size: 358 Bytes

Versions: 3

Compression:

Stored size: 358 Bytes

Contents

<% flatpickr_locale_conversions = { ca: "cat", el: "gr", nb: "no", vi: "vn" } %>

<% I18n.available_locales.sort.each do |locale| %>
  <% Trestle.i18n_fallbacks(locale).each do |candidate| %>
    <% candidate = flatpickr_locale_conversions[candidate] || candidate %>
    <% require_asset("trestle/flatpickr/#{candidate}") rescue nil %>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trestle-0.9.8 app/assets/javascripts/trestle/i18n.js.erb
trestle-0.9.7 app/assets/javascripts/trestle/i18n.js.erb
trestle-0.9.6 app/assets/javascripts/trestle/i18n.js.erb