It looks like Jed is good way to solve this. Why do you think it won't work?
 
Anyway, here is what I came up with in 20 minutes with zero knowledge of any existing i18n tools:
 
$ yapm install browserify
$ yapm install jedify
$ cp /usr/share/cups/locale/fr/cups_fr.po .
$ echo "console.log(require('./cups_fr.po').gettext('Add RSS Subscription'))" > test.js
$ ./node_modules/.bin/browserify -t jedify test.js  > bundle.js
$ node bundle.js
 
... where bundle.js is something you can include in browser, and it has no external dependencies. I took "cups_fr.po" as an example, and instead of console.log you can use any code in browser of course.
 
 
13.02.2014, 15:50, "Fabio Caritas Barrionuevo da Luz" <[email protected]>:
Alex, 
 
you could create a working example that works only on the client side and use gettext

A pull request would be much appreciated...XD
 
 

 

--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to