Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Commit

Permalink
Merge pull request #40 from drewfish/all-locale
Browse files Browse the repository at this point in the history
"main" in bower and NPM includes all locale data
  • Loading branch information
drewfish committed Jan 23, 2014
2 parents fee3101 + 7a7909c commit 02dff97
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = function (grunt) {
},
index: {
src: 'index.js',
dest: 'build/index.min.js'
dest: 'build/intl-messageformat.min.js'
},
localized: {
expand: true,
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ This package ships with locale data for the top-level locales (e.g. `en` but not

* Load the base and then just the locale(s) that you need: `intl-messageformat/index.js` and `intl-messageformat/locale-data/{locale}.js`.

* Load the base with a single locale builtin: `intl-messageformat/build/index.{locale}.js')`. You can then optionally add more locale(s) as above.
* Load the base with a single locale builtin: `intl-messageformat/build/intl-messageformat.{locale}.js')`. You can then optionally add more locale(s) as above.

* Load all locales: `intl-messageformat/build/index.complete.js`.
* Load all locales: `intl-messageformat/build/intl-messageformat.complete.js`.


### Loading Locale Data in Node.js
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "intl-messageformat",
"main": "index.js",
"main": "build/intl-messageformat.complete.min.js",
"version": "0.0.1",
"homepage": "https://github.com/yahoo/intl-messageformat",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"type": "git",
"url": "[email protected]:yahoo/intl-messageformat.git"
},
"main": "index.js",
"main": "build/intl-messageformat.complete.min.js",
"directories": {
"test": "tests"
},
Expand Down
2 changes: 1 addition & 1 deletion tasks/localize.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = function(grunt) {
srcFiles = fs.readdirSync(config.src);
srcFiles.forEach(function(srcFile) {
var srcPath = libpath.resolve(config.src, srcFile),
destPath = libpath.resolve(config.dest, 'index.' + srcFile),
destPath = libpath.resolve(config.dest, 'intl-messageformat.' + srcFile),
out = library;
out += grunt.file.read(srcPath);
grunt.file.write(destPath, out, {encoding: 'utf8'});
Expand Down
2 changes: 1 addition & 1 deletion tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div id="mocha"></div>
<script src="../node_modules/mocha/mocha.js"></script><!-- provides `describe` and `it` globals -->
<script src="../node_modules/chai/chai.js"></script><!-- provides `chai` global -->
<script src="../build/index.en.min.js"></script><!-- provides `IntlMessageFormat` global and the "en" (english) locale -->
<script src="../build/intl-messageformat.en.min.js"></script><!-- provides `IntlMessageFormat` global and the "en" (english) locale -->
<script src="../locale-data/ar.js"></script><!-- provides the "ar" (arabic) locale -->
<script src="../locale-data/pl.js"></script><!-- provides the "pl" (polish) locale -->
<script>mocha.setup('bdd')</script>
Expand Down

0 comments on commit 02dff97

Please sign in to comment.