?u/p1-90`This proposal seeks to modify the ECMA-402 specification.
See the explainer for more information.
ECMA 402 describes the schema of the data used by its functions. The data contained inside is implementation-dependent, and expected to change over time and vary between implementations. The variation is visible by programmers, and it is possible to construct programs which will depend on a particular output. However, this specification attempts to describe reasonable constraints which will allow well-written programs to function across implementations. Implementations are encouraged to continue their efforts to harmonize linguistic data.
As some use cases (most notably, automated testing) have a need for stability,
the behaviour of the
The abstract operation IsStableLocale takes argument locale (a
The String value
This property has the attributes { [[Writable]]:
Each
The abstract operation CreateDateTimeFormat takes arguments newTarget (a
The value of the [[AvailableLocales]] internal slot is
The value of the [[RelevantExtensionKeys]] internal slot is «
The value of the [[ResolutionOptionDescriptors]] internal slot is « { [[Key]]:
The value of the [[LocaleData]] internal slot is
The value of the [[AvailableLocales]] internal slot is
The value of the [[RelevantExtensionKeys]] internal slot is « ».
The value of the [[ResolutionOptionDescriptors]] internal slot is « ».
The value of the [[LocaleData]] internal slot is
unicode_language_id type The value of the [[AvailableLocales]] internal slot is implementation defined within the constraints described in
The value of the [[RelevantExtensionKeys]] internal slot is «
The value of the [[ResolutionOptionDescriptors]] internal slot is « { [[Key]]:
The value of the [[LocaleData]] internal slot is
The value of the [[AvailableLocales]] internal slot is
The value of the [[RelevantExtensionKeys]] internal slot is « ».
The value of the [[ResolutionOptionDescriptors]] internal slot is « ».
The value of the [[LocaleData]] internal slot is
conjunction corresponds to "standard", disjunction corresponds to "or", and unit corresponds to "unit".
conjunction stands for "and"-based lists (e.g., "A, B, and C"), disjunction stands for "or"-based lists (e.g., "A, B, or C"), and unit stands for lists of values with units (e.g., "5 pounds, 12 ounces").
The
When the Intl.NumberFormat function is called with optional arguments locales and options, the following steps are taken:
The value of the [[AvailableLocales]] internal slot is
The value of the [[RelevantExtensionKeys]] internal slot is «
The value of the [[ResolutionOptionDescriptors]] internal slot is « { [[Key]]:
The value of the [[LocaleData]] internal slot is
The abstract operation PartitionNumberPattern takes arguments numberFormat (an object initialized as a NumberFormat) and x (an
The abstract operation PartitionNotationSubPattern takes arguments numberFormat (an Intl.NumberFormat), x (an
The abstract operation ComputeExponentForMagnitude takes arguments numberFormat (an Intl.NumberFormat) and magnitude (an
The abstract operation PartitionNumberRangePattern takes arguments numberFormat (an Intl.NumberFormat), x (an
The abstract operation FormatApproximately takes arguments numberFormat (an Intl.NumberFormat) and result (a
The
The abstract operation ResolvePlural takes arguments pluralRules (an Intl.PluralRules) and n (an
The
The value of the [[AvailableLocales]] internal slot is
The value of the [[RelevantExtensionKeys]] internal slot is «
The value of the [[ResolutionOptionDescriptors]] internal slot is « { [[Key]]:
The value of the [[LocaleData]] internal slot is
This definition supersedes the definition provided in
When the toLocaleString method is called with optional arguments locales and options, the following steps are taken:
toLocaleString methods, and these Strings are then concatenated, separated by occurrences of an toString except that it is intended to yield a locale-sensitive result corresponding with conventions of the toLocaleString function is intentionally generic; it does not require that its © 2026 Eemeli Aro
All Software contained in this document ("Software") is protected by copyright and is being made available under the "BSD License", included below. This Software may be subject to third party rights (rights from parties other than Ecma International), including patent rights, and no licenses under such third party rights are granted under this license even if the third party concerned is a member of Ecma International. SEE THE ECMA CODE OF CONDUCT IN PATENT MATTERS AVAILABLE AT https://ecma-international.org/memento/codeofconduct.htm FOR INFORMATION REGARDING THE LICENSING OF PATENT CLAIMS THAT ARE REQUIRED TO IMPLEMENT ECMA INTERNATIONAL STANDARDS.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE ECMA INTERNATIONAL "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ECMA INTERNATIONAL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.