mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
fixing up moment locales, they were not set up properly
This commit is contained in:
@@ -84,4 +84,13 @@ describe JsLocaleHelper do
|
||||
message.should_not match 'Plural Function not found'
|
||||
end
|
||||
|
||||
LocaleSiteSetting.values.each do |locale|
|
||||
it "generates valid date helpers for #{locale} locale" do
|
||||
js = JsLocaleHelper.output_locale(locale)
|
||||
ctx = V8::Context.new
|
||||
ctx.load(Rails.root + 'app/assets/javascripts/locales/i18n.js')
|
||||
ctx.eval(js)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user