From 03bf8170752786c852d77704b2aa389b7b527fe0 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Tue, 26 Mar 2024 06:25:47 -0700 Subject: [PATCH] Add missing features for javascript.builtins.Intl.RelativeTimeFormat.RelativeTimeFormat (#22570) This PR adds the missing features of the `RelativeTimeFormat.RelativeTimeFormat` member of the `Intl` JavaScript builtin. The data comes from the [mdn-bcd-collector](https://mdn-bcd-collector.gooborg.com) project (v10.10.0). _Check out the [collector's guide on how to review this PR](https://github.com/openwebdocs/mdn-bcd-collector#reviewing-bcd-changes)._ Tests Used: https://mdn-bcd-collector.gooborg.com/tests/javascript/builtins/Intl/RelativeTimeFormat/RelativeTimeFormat --- .../builtins/Intl/RelativeTimeFormat.json | 178 +++++++++++++++++- 1 file changed, 168 insertions(+), 10 deletions(-) diff --git a/javascript/builtins/Intl/RelativeTimeFormat.json b/javascript/builtins/Intl/RelativeTimeFormat.json index 5953d447a7d15e..021e66752af07a 100644 --- a/javascript/builtins/Intl/RelativeTimeFormat.json +++ b/javascript/builtins/Intl/RelativeTimeFormat.json @@ -63,16 +63,9 @@ "ie": { "version_added": false }, - "nodejs": [ - { - "version_added": "13.0.0" - }, - { - "version_added": "12.0.0", - "partial_implementation": true, - "notes": "Before version 13.0.0, only the locale data for en-US is available by default. When other locales are specified, the RelativeTimeFormat instance silently falls back to en-US. To make full ICU (locale) data available before version 13, see Node.js documentation on the --with-intl option and how to provide the data." - } - ], + "nodejs": { + "version_added": "12.0.0" + }, "oculus": "mirror", "opera": "mirror", "opera_android": "mirror", @@ -88,6 +81,171 @@ "standard_track": true, "deprecated": false } + }, + "locales_parameter": { + "__compat": { + "description": "locales parameter", + "support": { + "chrome": { + "version_added": "71" + }, + "chrome_android": "mirror", + "deno": { + "version_added": "1.8" + }, + "edge": "mirror", + "firefox": { + "version_added": "65" + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "nodejs": [ + { + "version_added": "13.0.0" + }, + { + "version_added": "12.0.0", + "partial_implementation": true, + "notes": "Before version 13.0.0, only the locale data for en-US is available by default. When other locales are specified, the RelativeTimeFormat instance silently falls back to en-US. To make full ICU (locale) data available before version 13, see Node.js documentation on the --with-intl option and how to provide the data." + } + ], + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": "14" + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": false, + "standard_track": true, + "deprecated": false + } + } + }, + "options_parameter": { + "options_localeMatcher_parameter": { + "__compat": { + "description": "options.localeMatcher parameter", + "support": { + "chrome": { + "version_added": "71" + }, + "chrome_android": "mirror", + "deno": { + "version_added": "1.8" + }, + "edge": "mirror", + "firefox": { + "version_added": "65" + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "nodejs": { + "version_added": "12.0.0" + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": "14" + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": false, + "standard_track": true, + "deprecated": false + } + } + }, + "options_numberingSystem_parameter": { + "__compat": { + "description": "options.numberingSystem parameter", + "support": { + "chrome": { + "version_added": "71" + }, + "chrome_android": "mirror", + "deno": { + "version_added": "1.8" + }, + "edge": "mirror", + "firefox": { + "version_added": "76" + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "nodejs": { + "version_added": "12.0.0" + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": "14" + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": false, + "standard_track": true, + "deprecated": false + } + } + }, + "options_numeric_parameter": { + "__compat": { + "description": "options.numeric parameter", + "support": { + "chrome": { + "version_added": "71" + }, + "chrome_android": "mirror", + "deno": { + "version_added": "1.8" + }, + "edge": "mirror", + "firefox": { + "version_added": "65" + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "nodejs": { + "version_added": "12.0.0" + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": "14" + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": false, + "standard_track": true, + "deprecated": false + } + } + } } }, "format": {