Home
last modified time | relevance | path

Searched refs:DisplayNames (Results 1 – 10 of 10) sorted by relevance

/third_party/typescript/tests/baselines/reference/
Des2020IntlAPIs.types127 … https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames
128 const regionNamesInEnglish = new Intl.DisplayNames(['en'], { type: 'region' });
129 >regionNamesInEnglish : Intl.DisplayNames
130 >new Intl.DisplayNames(['en'], { type: 'region' }) : Intl.DisplayNames
131 >Intl.DisplayNames : { new (locales: Intl.LocalesArgument, options: Intl.DisplayNamesOptions): Intl…
133 >DisplayNames : { new (locales: Intl.LocalesArgument, options: Intl.DisplayNamesOptions): Intl.Disp…
140 const regionNamesInTraditionalChinese = new Intl.DisplayNames(['zh-Hant'], { type: 'region' });
141 >regionNamesInTraditionalChinese : Intl.DisplayNames
142 >new Intl.DisplayNames(['zh-Hant'], { type: 'region' }) : Intl.DisplayNames
143 >Intl.DisplayNames : { new (locales: Intl.LocalesArgument, options: Intl.DisplayNamesOptions): Intl…
[all …]
Des2020IntlAPIs.js33 const regionNamesInEnglish = new Intl.DisplayNames(['en'], { type: 'region' });
34 const regionNamesInTraditionalChinese = new Intl.DisplayNames(['zh-Hant'], { type: 'region' });
44 console.log(Intl.DisplayNames.supportedLocalesOf(locales1, options1).join(', '));
49 new Intl.DisplayNames(); // TypeError: invalid_argument
50 new Intl.DisplayNames('en'); // TypeError: invalid_argument
51 new Intl.DisplayNames('en', {}); // TypeError: invalid_argument
52 console.log((new Intl.DisplayNames(undefined, {type: 'language'})).of('en-GB')); // "British Englis…
55 console.log((new Intl.DisplayNames(localesArg, {type: 'language'})).resolvedOptions().locale); // "…
56 console.log(Intl.DisplayNames.supportedLocalesOf(localesArg)); // ["es-ES", "en-US"]
57 console.log(Intl.DisplayNames.supportedLocalesOf()); // []
[all …]
Des2020IntlAPIs.symbols93 … https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames
94 const regionNamesInEnglish = new Intl.DisplayNames(['en'], { type: 'region' });
96 >Intl.DisplayNames : Symbol(Intl.DisplayNames, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.…
98 >DisplayNames : Symbol(Intl.DisplayNames, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.intl.…
101 const regionNamesInTraditionalChinese = new Intl.DisplayNames(['zh-Hant'], { type: 'region' });
103 >Intl.DisplayNames : Symbol(Intl.DisplayNames, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.…
105 >DisplayNames : Symbol(Intl.DisplayNames, Decl(lib.es2020.intl.d.ts, --, --), Decl(lib.es2020.intl.…
112 >regionNamesInEnglish.of : Symbol(Intl.DisplayNames.of, Decl(lib.es2020.intl.d.ts, --, --))
114 >of : Symbol(Intl.DisplayNames.of, Decl(lib.es2020.intl.d.ts, --, --))
122 >regionNamesInTraditionalChinese.of : Symbol(Intl.DisplayNames.of, Decl(lib.es2020.intl.d.ts, --, -…
[all …]
Des2020IntlAPIs.errors.txt39 … https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames
40 const regionNamesInEnglish = new Intl.DisplayNames(['en'], { type: 'region' });
41 const regionNamesInTraditionalChinese = new Intl.DisplayNames(['zh-Hant'], { type: 'region' });
51 console.log(Intl.DisplayNames.supportedLocalesOf(locales1, options1).join(', '));
59 new Intl.DisplayNames(); // TypeError: invalid_argument
63 new Intl.DisplayNames('en'); // TypeError: invalid_argument
67 new Intl.DisplayNames('en', {}); // TypeError: invalid_argument
72 …console.log((new Intl.DisplayNames(undefined, {type: 'language'})).of('en-GB')); // "British Engli…
75 …console.log((new Intl.DisplayNames(localesArg, {type: 'language'})).resolvedOptions().locale); // …
76 console.log(Intl.DisplayNames.supportedLocalesOf(localesArg)); // ["es-ES", "en-US"]
[all …]
/third_party/typescript/tests/cases/conformance/es2020/
Des2020IntlAPIs.ts34 const regionNamesInEnglish = new Intl.DisplayNames(['en'], { type: 'region' });
35 const regionNamesInTraditionalChinese = new Intl.DisplayNames(['zh-Hant'], { type: 'region' });
45 console.log(Intl.DisplayNames.supportedLocalesOf(locales1, options1).join(', '));
50 new Intl.DisplayNames(); // TypeError: invalid_argument
51 new Intl.DisplayNames('en'); // TypeError: invalid_argument
52 new Intl.DisplayNames('en', {}); // TypeError: invalid_argument
53 console.log((new Intl.DisplayNames(undefined, {type: 'language'})).of('en-GB')); // "British Englis…
56 console.log((new Intl.DisplayNames(localesArg, {type: 'language'})).resolvedOptions().locale); // "…
57 console.log(Intl.DisplayNames.supportedLocalesOf(localesArg)); // ["es-ES", "en-US"]
58 console.log(Intl.DisplayNames.supportedLocalesOf()); // []
[all …]
/third_party/typescript/lib/
Dlib.es2020.intl.d.ts371 interface DisplayNames { interface
403 const DisplayNames: { constant
404 prototype: DisplayNames;
415 new(locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;
/third_party/typescript/src/lib/
Des2020.intl.d.ts351 interface DisplayNames { interface
383 const DisplayNames: { constant
384 prototype: DisplayNames;
395 new(locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;
/third_party/node/test/parallel/
Dtest-icu-env.js270 …(LANG) => runEnvInside({ LANG }, () => new Intl.DisplayNames(undefined, { type: 'region' }).of('CH…
/third_party/node/doc/changelogs/
DCHANGELOG_V17.md1442 …9.5. This release comes with additional supported types for the `Intl.DisplayNames` API and Extend…
DCHANGELOG_V14.md4115 …Enables `Intl.DisplayNames` by default ([MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScr…