Skip to content

Commit

Permalink
Editorial: Rename SupportedLocales to better indicate BCP 47 "filtering"
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Mar 2, 2024
1 parent fccd112 commit 6aac79e
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion spec/collator.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h1>Intl.Collator.supportedLocalesOf ( _locales_ [ , _options_ ] )</h1>
<emu-alg>
1. Let _availableLocales_ be %Intl.Collator%.[[AvailableLocales]].
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_).
1. Return ? FilterLocales(_availableLocales_, _requestedLocales_, _options_).
</emu-alg>
</emu-clause>

Expand Down
2 changes: 1 addition & 1 deletion spec/datetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ <h1>Intl.DateTimeFormat.supportedLocalesOf ( _locales_ [ , _options_ ] )</h1>
<emu-alg>
1. Let _availableLocales_ be %Intl.DateTimeFormat%.[[AvailableLocales]].
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_).
1. Return ? FilterLocales(_availableLocales_, _requestedLocales_, _options_).
</emu-alg>
</emu-clause>

Expand Down
2 changes: 1 addition & 1 deletion spec/displaynames.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h1>Intl.DisplayNames.supportedLocalesOf ( _locales_ [ , _options_ ] )</h1>
<emu-alg>
1. Let _availableLocales_ be %Intl.DisplayNames%.[[AvailableLocales]].
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_).
1. Return ? FilterLocales(_availableLocales_, _requestedLocales_, _options_).
</emu-alg>
</emu-clause>

Expand Down
2 changes: 1 addition & 1 deletion spec/listformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h1>Intl.ListFormat.supportedLocalesOf ( _locales_ [ , _options_ ] )</h1>
<emu-alg>
1. Let _availableLocales_ be %Intl.ListFormat%.[[AvailableLocales]].
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_).
1. Return ? FilterLocales(_availableLocales_, _requestedLocales_, _options_).
</emu-alg>
</emu-clause>

Expand Down
4 changes: 2 additions & 2 deletions spec/negotiation.html
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ <h1>
</emu-alg>
</emu-clause>

<emu-clause id="sec-supportedlocales" type="abstract operation" oldids="sec-lookupsupportedlocales,sec-bestfitsupportedlocales">
<emu-clause id="sec-filterlocales" type="abstract operation" oldids="sec-lookupsupportedlocales,sec-bestfitsupportedlocales,sec-supportedlocales">
<h1>
SupportedLocales (
FilterLocales (
_availableLocales_: an Available Locales List,
_requestedLocales_: a language priority list,
_options_: an ECMAScript language value,
Expand Down
2 changes: 1 addition & 1 deletion spec/numberformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ <h1>Intl.NumberFormat.supportedLocalesOf ( _locales_ [ , _options_ ] )</h1>
<emu-alg>
1. Let _availableLocales_ be %Intl.NumberFormat%.[[AvailableLocales]].
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_).
1. Return ? FilterLocales(_availableLocales_, _requestedLocales_, _options_).
</emu-alg>
</emu-clause>

Expand Down
2 changes: 1 addition & 1 deletion spec/pluralrules.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h1>Intl.PluralRules.supportedLocalesOf ( _locales_ [ , _options_ ] )</h1>
<emu-alg>
1. Let _availableLocales_ be %Intl.PluralRules%.[[AvailableLocales]].
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_).
1. Return ? FilterLocales(_availableLocales_, _requestedLocales_, _options_).
</emu-alg>
</emu-clause>

Expand Down
2 changes: 1 addition & 1 deletion spec/relativetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h1>Intl.RelativeTimeFormat.supportedLocalesOf ( _locales_ [ , _options_ ] )</h1
<emu-alg>
1. Let _availableLocales_ be %Intl.RelativeTimeFormat%.[[AvailableLocales]].
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_).
1. Return ? FilterLocales(_availableLocales_, _requestedLocales_, _options_).
</emu-alg>
</emu-clause>

Expand Down
2 changes: 1 addition & 1 deletion spec/segmenter.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h1>Intl.Segmenter.supportedLocalesOf ( _locales_ [ , _options_ ] )</h1>
<emu-alg>
1. Let _availableLocales_ be %Intl.Segmenter%.[[AvailableLocales]].
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_).
1. Return ? FilterLocales(_availableLocales_, _requestedLocales_, _options_).
</emu-alg>
</emu-clause>

Expand Down

0 comments on commit 6aac79e

Please sign in to comment.