Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

internationalization


jsperanto

Simple translation for your javascripts, yummy with your favorite templates engine like EJS.

  • Pluralization, interpolation & "nested lookup" support for your translations
  • Uses XHR to get a JSON dictionary (or load it your own way & format)
  • JSLint-ed, QUnit-ed
  • similar to Rails's i18n but sans backend needed
  • No global pollution (hides under jQuery.jsperanto)
  • Works with : IE6+, Firefox 3+, Safari 3+, Chrome, Opera 9+

Depends on jQuery 1.3.2+ (uses $.ajax, $.each, $.extend)

jQLang - An Extension To The HTML hreflang Attribute

jQLang is a simple but useful plugin that 'extends' the HTML hreflang attribute to provide a visual cue to users. The idea behind the hreflang attribute when used on links is to indicate to the user-agent what the language of the target document will be. This could also be useful for users but currently browsers does not offer any indication to the user when this attribute is set. This is then where jQLang comes in.

NumberFormatter - International Support for Number Formatting

This plugin is a NumberFormatter plugin. Number formatting is likely familiar to anyone who's worked with server-side code like Java or PHP and who has worked with internationalization. For example, a number that we would write in the US as "1,250,500.75" would be written differently in different countries: "1.250.500,75" in Germany, "1 250 500,75" in France, and "1'250'500.75" in Switzerland, and "125,0500.75" in Japan. The number is exactly the same, but it's just written using a different format when presented to users of the web application.

Here's a typical use case for what I'm describing. You have an input field in your web application that asks a person for their salary. In the US, the user can type in a varied forms of input - "$65000", "65,000", "65000", "65,000.00". All these numbers are exactly the same, but we want to control how these numbers look on the screen.

Here's an example of how you'd use this plugin.

$("#salary").blur(function(){

JavaScript Localisation

Automatically load localisation packages for your JavaScript. Defaults to the browser's language setting, but may be overridden.