Skip to content

Commit bdd5e3a

Browse files
mhausnercopybara-github
authored andcommitted
Add Intl.getCanonicalLocales extern
PiperOrigin-RevId: 788619314
1 parent 1b5da31 commit bdd5e3a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

externs/browser/intl.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,3 +602,10 @@ Intl.Locale.prototype.minimize = function() {};
602602
* @return {!Intl.UnicodeBCP47LocaleIdentifier}
603603
*/
604604
Intl.Locale.prototype.toString = function() {};
605+
606+
/**
607+
* @param {(string|!Array<string>)=} locale
608+
* @return {!Array<string>}
609+
* @see https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales
610+
*/
611+
Intl.getCanonicalLocales = function(locale) {};

0 commit comments

Comments
 (0)