Sha256: 18735bef7a4f2cb9c30cf45ce6bc53f7cc00e485626665f2ba0e6701aaa8a36d
Contents?: true
Size: 1.78 KB
Versions: 15
Compression:
Stored size: 1.78 KB
Contents
<%# encoding: utf-8 %> <%# FIXME: Assets precompilation requires to load the I18n since we disable the config.assets.initialize_on_precompile option %> <% if !I18n.backend.initialized? && I18n.t('locomotive.locales.en', :locale => :en, :default => '').blank? %> <% I18n.load_path += Dir[Locomotive::Engine.root.join('config', 'locales', '**/*.{rb,yml}').to_s] %> <% I18n.reload! %> <% end %> jQuery(function($){ <% Locomotive.config.locales.each do |locale| %> <% I18n.with_locale(locale) do %> $.datepicker.regional['<%= locale %>'] = { closeText: '<%= I18n.t('date_picker.close_text', :default => 'Close') %>', prevText: '<%= I18n.t('date_picker.prev_text', :default => '<Prev') %>', nextText: '<%= I18n.t('date_picker.next_text', :default => 'Next>') %>', currentText: '<%= I18n.t('date_picker.current_text', :default => 'Current') %>', monthNames: [<%= I18n.t('date.month_names').dup.delete_if { |m| m.blank? }.map { |m| "'#{m.capitalize}'" }.join(', ') %>], monthNamesShort: [<%= I18n.t('date.abbr_month_names').dup.delete_if { |m| m.blank? }.map { |m| "'#{m.capitalize.gsub(/\.$/, '')}'" }.join(', ') %>], dayNames: [<%= I18n.t('date.day_names').dup.delete_if { |d| d.blank? }.map { |d| "'#{d.capitalize}'" }.join(', ') %>], dayNamesShort: [<%= I18n.t('date.abbr_day_names').dup.delete_if { |d| d.blank? }.map { |d| "'#{d.capitalize}'" }.join(', ') %>], dayNamesMin: [<%= I18n.t('date.abbr_day_names').dup.delete_if { |d| d.blank? }.map { |d| "'#{d[0..1].capitalize}'" }.join(', ') %>], dateFormat: '<%= I18n.t('date.formats.default').gsub('%d', 'dd').gsub('%m', 'mm').gsub('%Y', 'yy') %>', firstDay: 1, isRTL: false }; <% end %> <% end %> });
Version data entries
15 entries across 15 versions & 1 rubygems