From b5b9d5c8a73354ec4b4fc4616021baef2f13e3b8 Mon Sep 17 00:00:00 2001 From: adityavyas01 Date: Tue, 13 Jan 2026 17:07:01 +0530 Subject: [PATCH 1/2] fix(lib): allow 'default' in Intl.CollatorOptions.collation --- src/lib/es5.d.ts | 2 +- tests/cases/conformance/es2020/localesObjectArgument.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index 3ca96f12760be..a7afda8fa99c3 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -4404,7 +4404,7 @@ declare namespace Intl { numeric?: boolean | undefined; caseFirst?: "upper" | "lower" | "false" | undefined; sensitivity?: "base" | "accent" | "case" | "variant" | undefined; - collation?: "big5han" | "compat" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | undefined; + collation?: "default"| "big5han" | "compat" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | undefined; ignorePunctuation?: boolean | undefined; } diff --git a/tests/cases/conformance/es2020/localesObjectArgument.ts b/tests/cases/conformance/es2020/localesObjectArgument.ts index 71e63ff14143e..0a11b208aca9b 100644 --- a/tests/cases/conformance/es2020/localesObjectArgument.ts +++ b/tests/cases/conformance/es2020/localesObjectArgument.ts @@ -50,6 +50,8 @@ new Intl.Collator([deDE, jaJP]); new Intl.Collator(readonlyLocales); Intl.Collator.supportedLocalesOf(enUS); Intl.Collator.supportedLocalesOf([deDE, jaJP]); +new Intl.Collator(enUS, { collation: "default" }); + new Intl.DateTimeFormat(enUS); new Intl.DateTimeFormat([deDE, jaJP]); From ac1db1d40d647093977200962af538e5c98ac240 Mon Sep 17 00:00:00 2001 From: adityavyas01 Date: Tue, 13 Jan 2026 17:13:13 +0530 Subject: [PATCH 2/2] chore: format Intl.CollatorOptions.collation --- src/lib/es5.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index a7afda8fa99c3..f05ca3936ed32 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -4404,7 +4404,7 @@ declare namespace Intl { numeric?: boolean | undefined; caseFirst?: "upper" | "lower" | "false" | undefined; sensitivity?: "base" | "accent" | "case" | "variant" | undefined; - collation?: "default"| "big5han" | "compat" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | undefined; + collation?: "default" | "big5han" | "compat" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | undefined; ignorePunctuation?: boolean | undefined; }