Note: development has been moved over to github! Please see https://github.com/iLib-js/iLib

"I18N" means way more than just translation. Other libraries claim to be an i18n solution when translation and string formatting is really all they offer. Yes, iLib has classes that do translation too, but there is also much, much more. From date formatting to name parsing to phone number handling to collation, iLib has classes that do it. And, it has the ability to support thousands of possible locales.

Everything in iLib is written in pure JS with minimal platform dependencies, so it works the same way in many different environments and browsers, from Chrome to Opera to node to Qt/QML. Over 17K unit tests help to guarantee this.

ILib is also the library of choice for enyo apps on webOS which ships on over 10 million LG SmartTVs in over 135 countries. Give it a try and see if it can work for your app too!

Features

  • date/time, duration, & date range formatting
  • number, percentage, and currency formatting and parsing
  • calendar support, including Gregorian, Julian, Arabic civil, Hebrew, Persian, and Chinese lunar calendars
  • time zones support for all current IANA time zones
  • string translation/localization, including pseudo-translation
  • string formatting with replacement parameters, including choice formats, and complex slavic plurals
  • "ctype" functions for use with parsing strings
  • Unicode Normalization Algorithm + code point and glyph break iterators
  • info objects which return information about locales, time zones, scripts, or currencies
  • collation/sorting
  • address parsing and formatting
  • name parsing and formatting
  • units conversion and formatting
  • phone number parsing and formatting, as well as number normalization and matching
  • can support any locale in CLDR (~ 700 or so), plus any combination of language, script, and country
  • Comes with a "JSAssemble" tool that allows you to pick and choose only those classes and locales you need, to create a small and succinct js file to include in your HTML
  • Runs in multiple browsers, mobile browsers, nodejs, Qt/QML 5.4+, or rhino

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow iLib

iLib Web Site

Other Useful Business Software
AI-generated apps that pass security review Icon
AI-generated apps that pass security review

Stop waiting on engineering. Build production-ready internal tools with AI—on your company data, in your cloud.

Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
Try Retool free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of iLib!

Additional Project Details

Languages

Dutch, English, French, German, Italian, Spanish

Intended Audience

Architects, Developers, Information Technology

User Interface

Web-based

Programming Language

JavaScript

Related Categories

JavaScript Localization (L10N) Software, JavaScript Internationalization (I18N) Software, JavaScript Libraries

Registered

2012-05-09