An AngularJS module handling the l20n localization library.
Usage is simple - just use a
data-l20n attribute with an l20n identificator (with a stock l20n you'd
data-l10n-id instead) so tutorials from http://l20n.org still apply with this little change.
An example sandbox is included. You can freely use Angular expressions inside the attribute, they will be parsed for you before passing to l20n.
Minification and linting
Minification and linting is supported via Grunt tasks. To obtain the minified file together with the
sourcemap, first install a global
Then install local
After performing these steps, invoking:
will lint & build the files; you can copy all 3 files (
ng-l20n requires changes recently made in
l20n.js. Because of that, it requires `l20n.js in version at least
with ng-l20n you need to use a very recent
l20n.js version (the one at commit
or newer), newer than any currently (as of 2013-10-01) available beta. You can use the
version from this repository
if in doubt. Note that adding the
data-l10n-overlay attribute is no longer needed for overlaying to work.
The module is available under the MIT license (see MIT-LICENSE.txt for details).