[ 2 posts ]

jazzyblue

  • Joined: Sat Aug 11, 2012 10:54 pm
  • Posts: 1
  • Offline
  • Profile

how to load lang resource files with NodeJS

Post Posted: Sat Aug 11, 2012 11:11 pm
+0-
hi,

i am using YUI with NodeJS. when i use Y.Intl.get, i always get back an undefined string. here is how i created the lang resource files and their locations:

moduleA/js/moduleA.js
moduleA/js/lang/moduleA.js

when trying to access resource in moduleA/js/lang/moduleA.js, i always get undefined string. do i need to add any options in YUI_config? i also tried this with mojito autoload and i got same result.

any help would be appreciated.

thanks.

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile

Re: how to load lang resource files with NodeJS

Post Posted: Mon Aug 13, 2012 10:41 am
+0-
Here's a working example:

https://gist.github.com/3343075
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum