background preloader

Libs

Facebook Twitter

Parse, validate, manipulate, and display dates in javascript. Numeral.js. Use it In the Browser or include from cdnjs.com In Node.js npm install numeral var numeral = require('numeral'); Format Numbers can be formatted to look like currency, percentages, times, or even plain old numbers with decimal places, thousands, and abbreviations. var string = numeral(1000).format('0,0'); // '1,000' Numbers Currency Bytes Percentages Time Unformat Got a formatted string?

Numeral.js

Var string = numeral().unformat('($10,000.00)'); // -10000 Manipulate Not that you will use these often, but they're there when you need them. var number = numeral(1000); var added = number.add(10); // 1010 Value The value is always available. var number = numeral(1000); var string = number.format('0,0'); // '1,000' var value = number.value(); // 1000 Set Set the value of your numeral object. var number = numeral(); number.set(1000); var value = number.value(); // 1000 Difference Find the difference between your numeral object and a value. jQuery Localisation. Localisation works by appending language indicators to the base package name to download and implement the contained overrides.

jQuery Localisation

If no specific language is given, the default setting for the browser is used. For example, setting the language to English - Australian (en-AU) for the greeting package causes the download and evaluation of the greeting-en.js and greeting-en-AU.js files (if they exist) in that order. As an example the greeting package has the following localisation packages available: These packages just set a variable (greeting) that is then displayed: Default language Change to another language for language This tab highlights examples of this plugin in use "in the wild". To add another example, please contact me (kbwood{at}iinet.com.au) and provide the plugin name, the URL of your site, its title, and a short description of its purpose and where/how the plugin is used. Gammasoft/browser-i18n. Eligrey/l10n.js.

i18next

Jquery/globalize. Ossreleasefeed/i18njs. Jquery-i18n-properties - Lightweight jQuery plugin for providing internationalization to javascript from ‘.properties’ files. jQuery.i18n.properties is a lightweight jQuery plugin for providing internationalization to javascript from ‘.properties’ files, just like in Java Resource Bundles.

jquery-i18n-properties - Lightweight jQuery plugin for providing internationalization to javascript from ‘.properties’ files.

It loads and parses resource bundles (.properties) based on provided language and country codes (ISO-639 and ISO-3166) or language reported by browser. Resource bundles are ‘.properties‘ files containing locale specific key-value pairs. The use of ‘.properties‘ files for translation is specially useful when sharing i18n files between Java and Javascript projects. This plugin loads the default file (eg, Messages.properties) first and then locale specific files (Messages_pt.properties, then Messages_pt_PT.properties), so that a default value is always available when there is no translation provided. Translation keys will be available to developer as javascript variables/functions (functions, if translated value contains substitutions (eg, {0}) or as a map.

LocalePlanet: L10N and I18N for JavaScript. SlexAxton/messageformat.js. Recurser/jquery-i18n. Alex Sexton: Client Side Internationalization.