Comments (5)
Think the answer may lie in adding requirejs boilerplate or using amintercept
from ecma402.
Hey @srl295, someone from the project might give a better answer, but as I can tell this implementation uses pure AMD modules. So, you need to use an AMD loader (eg. amd-loader). Although, I'm not sure how to deal with the json plugins.
In order to avoid such dependency and to get Node.js supported natively, the distribution files could be UMD wrapped.
from ecma402.
@rxaviers Hi! Nice to see you here also besides ICU! amd-loader
looks pretty easy to use. Wonder if just adding the right npm-visible stuff to this project (maybe a node-intl.js
or something that just has require('amd-loader'); global.exports = require('./Intl')
or something like that?
from ecma402.
I'm hoping @clmath can give me some guidance here. We do want the package to work properly under Node.js.
from ecma402.
I think there are two things here, the packaging for which UMD (see @rxaviers link) is probably the solution we want to go with and the fact all the modules are loading/working correctly on Node.JS and here I think @clmath found some issues that need to be fixed.
from ecma402.
Related Issues (20)
- Clean up jshint errors in the unit tests
- IntlShim.js always loads Intl.js HOT 2
- invalid-meta? HOT 2
- bug in README.md sample code
- bower.json and package.json version and release version are not the same.
- include Unicode license in the source
- Investigate if cldr.js can be used to load the CLDR HOT 6
- Update CLDR data to release 26 HOT 1
- Regex pattern used for region tag in CanonicalizeLanguageTag
- Use navigator.languages in BestFitSupportedLocale HOT 6
- IntlShim and Intl names may be exchanged. HOT 1
- Docs: how to run tests?
- Test requires sibling projects using specific file names or it fails HOT 8
- Build config is not taken into account
- Improved handling of date/time patterns that have both a date and time portion HOT 5
- Correct handling of long, narrow, and stand-alone weekday names
- Correct handling of aliases from CLDR
- Update built-in tests for ECMAScript 2015 - 6th edition
- README to mention requirejs deps?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ecma402.