Load Globalize cultures with Node.js?
Posted
by
Xeon06
on Stack Overflow
See other posts from Stack Overflow
or by Xeon06
Published on 2012-10-31T16:50:46Z
Indexed on
2012/10/31
17:00 UTC
Read the original article
Hit count: 213
I'm using jQuery Globalize with Node.js. They have a package.json
file so I can simply use it as a module and require
it. However, it doesn't load all cultures by default. I was wondering what the proper way to load a culture would be? I could go and do something like
require('./node_modules/globalize/lib/cultures/globalize.culture.es-US.js')
and load the file directly, but that doesn't seem too elegant. Is there a "proper" way to do this?
© Stack Overflow or respective owner