/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/** *GothroughthetopFirefoxlocales,andpickoneatrandomthatisrepresentative *oftheFirefoxpopulationasof2021-06-03.Itusesapseudo-randomnumbergenerator *tomaketheresultsrepeatable. * *@returns{string}locale
*/ function pickRepresentativeLocale() { const n = prng();
let ratio = 1; for (const [locale, representation] of Object.entries(localeDistribution)) {
ratio -= representation; if (n > ratio) { return locale;
}
} // In case we fall through the "for" loop, return the most common locale. return"en-US";
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.19 Sekunden
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.