From ebcc6178c7c55ca3938a26294a5457356b3eefeb Mon Sep 17 00:00:00 2001 From: Alessandro Rodi Date: Wed, 2 Sep 2015 11:28:26 +0200 Subject: [PATCH] Fix issue #2155 :en locale is not always available --- app/views/rails_admin/main/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/rails_admin/main/index.html.haml b/app/views/rails_admin/main/index.html.haml index 9c9058cbd2..09cd788f6a 100644 --- a/app/views/rails_admin/main/index.html.haml +++ b/app/views/rails_admin/main/index.html.haml @@ -75,7 +75,7 @@ jQuery(function($) { $.filters.options.regional = { datePicker: { - dateFormat: #{raw I18n.t("admin.misc.filter_date_format", default: I18n.t("admin.misc.filter_date_format", locale: :en)).to_json}, + dateFormat: #{raw I18n.t("admin.misc.filter_date_format", default: I18n.t("admin.misc.filter_date_format")).to_json}, dayNames: #{raw RailsAdmin::Config::Fields::Types::Datetime.day_names.to_json}, dayNamesShort: #{raw RailsAdmin::Config::Fields::Types::Datetime.abbr_day_names.to_json}, dayNamesMin: #{raw RailsAdmin::Config::Fields::Types::Datetime.abbr_day_names.to_json},