Commit 61904deae3b6a21fd38f434a60acb8473c770263

Authored by DapurMasak06
1 parent 86ce616d

Add default locale

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/groupdate/magic.rb
@@ -245,7 +245,7 @@ module Groupdate @@ -245,7 +245,7 @@ module Groupdate
245 when :month_of_year 245 when :month_of_year
246 key = Date.new(2014, key, 1).to_time 246 key = Date.new(2014, key, 1).to_time
247 end 247 end
248 - I18n.localize(key, format: options[:format].to_s) 248 + I18n.localize(key, format: options[:format].to_s, locale: I18n.locale)
249 end 249 end
250 end 250 end
251 else 251 else