How to include the specified moments of time in "Meteor"?
I am wondering how to include in meteor one of the predefined momentjs locations, which are usually found in locales / *. js, but including this when the docs don't work in Meteor:
<script src="locale/pt.js"></script>
How do I include specific local times in Meteor?
When external resources are needed (javascript, css, images, fonts libraries), put them in public
. So in your case, I would put the file in public/js/momentjs/locales/pt.js
. Then, in the file containing my application <head>
( client/head.html
in my case):
<head>
<!-- etc -->
<script src="/js/momentjs/locales/pt.js"></script>
</head>
Any resources you add to the head will be inserted into the head after all of the meteor packs, so no need to worry about loading order.