Skip to content
Snippets Groups Projects
Unverified Commit 148f0f4e authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Fix load locale in momentjs

parent 131806fe
No related branches found
No related tags found
No related merge requests found
import moment from 'moment'
Meteor.startup -> Meteor.startup ->
TimeSync.loggingEnabled = false TimeSync.loggingEnabled = false
...@@ -45,7 +47,7 @@ Meteor.startup -> ...@@ -45,7 +47,7 @@ Meteor.startup ->
language = language.toLowerCase() language = language.toLowerCase()
if language isnt 'en' if language isnt 'en'
Meteor.call 'loadLocale', language, (err, localeFn) -> Meteor.call 'loadLocale', language, (err, localeFn) ->
Function(localeFn)() Function(localeFn).call({moment: moment});
moment.locale(language) moment.locale(language)
Meteor.subscribe("userData", () -> Meteor.subscribe("userData", () ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment