FormatJS is a modular collection of JavaScript libraries for internationalization that are focused on formatting numbers, dates, and strings for displaying to people. It includes a set of core libraries that build on the JavaScript Intl
built-ins and industry-wide i18n standards, plus a set of integrations for common template and component libraries.
For most web projects, internationalization happens in the template or view layer, so we've built integrations with common template and component libraries: Handlebars, React, and Dust.
1000.95
1,000.95
English
1 000,95
French
new Date()
10/15/2014
English (US)
15/10/2014
French
"2014-9-15"
last month
1 month ago
30 days ago
numComments
no comments
1 comment
1,000 comments
FormatJS has been tested in all the major browsers on both desktop and mobile devices. Careful attention has been applied to make sure the libraries work in ES3 browsers all the way down to IE 6.
For many web apps rendering happens on the server, so we made sure FormatJS works perfectly in Node.js. This allows developers to use FormatJS on both the server and client-side of their apps.
FormatJS is aligned with: ECMAScript Internationalization API (ECMA-402), Unicode CLDR, and ICU Message syntax. By building on these industry standards, FormatJS leverages APIs in modern browsers, and works with the message syntax used by professional translators.
All code on this site is licensed under the Yahoo BSD License, unless otherwise stated.
© 2014 Yahoo! Inc. All rights reserved.