swc/crates/swc_ecma_parser/tests/tsc/es2018IntlAPIs.ts
2022-02-04 17:08:38 +09:00

7 lines
339 B
TypeScript

// @target: es2018
// Sample from
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules/supportedLocalesOf
const locales = ['ban', 'id-u-co-pinyin', 'de-ID'];
const options = { localeMatcher: 'lookup' } as const;
console.log(Intl.PluralRules.supportedLocalesOf(locales, options).join(', '));