|
il y a 2 ans | |
---|---|---|
.. | ||
test | il y a 2 ans | |
.npmignore | il y a 2 ans | |
.travis.yml | il y a 2 ans | |
Makefile | il y a 2 ans | |
README.md | il y a 2 ans | |
jed.js | il y a 2 ans | |
package.json | il y a 2 ans | |
plurals.jison | il y a 2 ans |
Gettext Style i18n for Modern JavaScript Apps
For more info, please visit the docs site at http://slexaxton.github.com/Jed.
Jed is feature complete in my opinion. I am happy to fix bugs, but generally am not interested in adding more to the library.
I also maintain messageformat.js. If you don't specifically need a gettext implementation, I might suggest using MessageFormat instead, as it has better support for plurals/gender and has built-in locale data.
Jed doesn't include a Gettext file parser, but several third-party parsers exist that can have their output adapted for Jed.
Just search the npm repository, there are several PO and MO file parsers available.
Jed Gettext Parser is the only known browser MO file parser, and it also works in Node, and outputs Jed-compatible data directly.
gettext.js and Pomo.js both include browser-compatible PO file parsers.
Jed is a member project of the jQuery Foundation
You may use this software under the MIT License.
You may contribute to this software under the jQuery Foundation CLA - https://contribute.jquery.org/CLA/
A good chunk of sanity checking was done against the gettext.js tests. That was written by:
The sprintf implementation is from:
The name jed.js is an homage to Jed Schmidt (https://github.com/jed) the JavaScript community member who is a japanese translator by day, and a "hobbyist" JavaScript programmer by night. Give your kids three character names and they'll probably get software named after them too.