Node.js has many features that make it easier to write internationalized programs

For example

  • String.prototype.normalize()
  • String.prototype.toLowerCase()
  • String.prototype.toUpperCase()

const january = new Date(9e8);
const english = new Intl.DateTimeFormat('en', { month: 'long' });
const spanish = new Intl.DateTimeFormat('es', { month: 'long' });

console.log(english.format(january));
// Prints "January"
console.log(spanish.format(january));
// Prints "M01" on small-icu
// Should print "enero"