Closed
Bug 965688
Opened 11 years ago
Closed 10 years ago
is l20n.js r.js compatibile?
Categories
(L20n :: JS Library, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: yanfali, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.102 Safari/537.36
Steps to reproduce:
Try and use l20n.js with grunt-requirejs.
Actual results:
l20n.js fails due to references to window which don't exist on nodejs since it's not a browser.
Expected results:
l20n.js is able to be included in a single js file in dependency order by r.js.
I have a workaround using l20nCtxPlugin, which defers the loading of l20n.js to runtime. You can find the workaround here: https://github.com/jrburke/r.js/issues/443
I've also opened an issue with l20nCtxPlugin:
https://github.com/fernandogmar/L20n-RequireJS/issues/2
What would be really great is if you could make l20n.js work in both environments. Thanks for all your work on l20n.js!
Comment 1•10 years ago
|
||
We now have nodejs bindings for l20n.js - https://github.com/l20n/l20n.js/tree/master/src/runtime/node
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•