CKTIS / JavaScript
Internationalization (i18n)
Internationalization prepares a program for different languages and regional conventions. In JavaScript, Intl provides locale-sensitive operations, but it does not automatically translate application content.
Version: ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
Syntax
new Intl.NumberFormat(locales, options).format(value)Internationalization (internationalization, abbreviated i18n) means designing a program so it can be adapted to different languages and regions. Localization is a specific adaptation, including translations and data presentation formats. Keep interface text separate from program logic.
ECMA-262 defines the JavaScript language, while ECMA-402 defines the Intl API. Intl.NumberFormat formats numbers, Intl.DateTimeFormat formats dates, and Intl.Collator compares text using regional rules. Intl does not translate arbitrary sentences. A tag such as en-US identifies preferred locale settings; it does not itself select a currency or time zone.
Pass locales and required options explicitly. Available locale data and output details can depend on the runtime. The example disables grouping and fixes two fraction digits; its expected output assumes en-US support. Do not treat display text as a data storage format.
The example uses features specified in ECMA-402:2024, not browser APIs. A specification alone does not establish compatibility with a particular browser; check target runtimes and locale data. Having Node 24 in the repository does not prove browser support.
Examples
const formatter = new Intl.NumberFormat("en-US", {
numberingSystem: "latn",
useGrouping: false,
minimumFractionDigits: 2,
maximumFractionDigits: 2
});
console.log(formatter.format(1234.5));Result
1234.50
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.