Skip to content

Commit fcd1d9c

Browse files
authored
relnote(Fx141): Add Intl.Locale.prototype.variants (#40498)
1 parent 1d4acd0 commit fcd1d9c

File tree

1 file changed

+4
-2
lines changed
  • files/en-us/mozilla/firefox/releases/141

1 file changed

+4
-2
lines changed

files/en-us/mozilla/firefox/releases/141/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ Firefox 141 is the current [Beta version of Firefox](https://www.firefox.com/en-
3434

3535
<!-- #### Removals -->
3636

37-
<!-- ### JavaScript -->
37+
### JavaScript
3838

39-
<!-- No notable changes. -->
39+
- The [`variants`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/variants) accessor property is now supported on {{jsxref("Intl.Locale")}} instances.
40+
This property returns the variants associated with a locale as a string of dash (`-`) separated identifiers.
41+
It offers a more robust way to get and set variant subtags of a language identifier as opposed to manually parsing or modifying a locale string ([Firefox bug 1970161](https://bugzil.la/1970161)).
4042

4143
<!-- #### Removals -->
4244

0 commit comments

Comments
 (0)