Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.
getFormattedString( key, strArray )
Return type: string
Looks up the format string for the given key name in the string bundle and returns a formatted copy where each occurrence of %S (uppercase) is replaced by each successive element in the supplied array. Alternatively, numbered indices of the format %n$S (e.g. %1$S, %2$S, etc.) can be used to specify the position of the corresponding parameter explicitly.

If you need to handle substitutions involving plurals, take a look at Localization and Plurals.

Document Tags and Contributors

 Contributors to this page: Sheppy, mozjag, sebwin, Marsf, Ptak82, Nickolay, MarkFinkle, Biesi, Dria
 Last updated by: Sheppy,