Development on Va...
Follow
Find tag "internationalization"
6.4K views | +2 today
Development on Various Platforms
Your new post is loading...
Your new post is loading...
Rescooped by Ertunç Efeoğlu from JavaScript for Line of Business Applications
Scoop.it!

angular-gettext :: Super-simple translation support for Angular.JS

angular-gettext :: Super-simple translation support for Angular.JS | Development on Various Platforms | Scoop.it

Angular-gettext let's you focus on developing your application. Just write everything in English and annotate which parts should be translated. The tools do the rest.

Marking a string as translatable is as simple as adding an attribute:

<a href="/" translate>Home</a>

No need to maintain translation codes or magic values, that just causes headaches!

 

Not every language works like English. Did you know that Polish uses three plural forms? Or that Irish uses five? No worries, angular-gettext handles all of this for you. Just provide a plural string where needed.

<span translate translate-n="count" translate-plural="There are {{count}} messages">There is {{count}} message</a>

The span above will always show a correctly pluralized message, even if the language uses wildly different pluralization rules.

A full list of supported languages (over 130) can be found here.


Via Jan Hesse
more...
No comment yet.
Rescooped by Ertunç Efeoğlu from JavaScript for Line of Business Applications
Scoop.it!

angular translate - i18n for your Angular apps, made easy.

angular translate - i18n for your Angular apps, made easy. | Development on Various Platforms | Scoop.it

angular-translate is an AngularJS module that makes your life much easier when it comes to i18n and l10n including lazy loading and pluralization.

It provides components like filters and directives, asynchronous loading of i18n data, full pluralization support through MessageFormat and much more!

angular-translate is very flexible. You can build your own loaders, storages or error handlers and extend angular-translate to your needs!


Via Jan Hesse
more...
No comment yet.