/* 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/. */
// Disable eslint warnings to preserve original code style. /* eslint-disable */
let [numForms, pluralFunc] = this.getPluralRule(); this.numForms = () => numForms; this.get = (aNum, aWords) => { // Figure out which index to use for the semi-colon separated words
let index = pluralFunc(aNum ? Number(aNum) : 0);
let words = aWords ? aWords.split(/;/) : [""];
// Explicitly check bounds to avoid strict warnings
let ret = index < words.length ? words[index] : undefined;
// Check for array out of bounds or empty strings if ((ret == undefined) || (ret == "")) {
console.warn(`plural-form.js: Index #${index} of '${aWords}'for value ${aNum} is invalid;\n`);
// Default to the first entry (which might be empty, but not undefined)
ret = words[0];
}
// See searchfox.org/firefox-main/rev/f6385e6644d5d4343d33b692810275c434122199/intl/docs/locale.rst#463-471 // Swap ja-JP-mac (legacy locale in gecko, but invalid) with the valid ja-JP-macos if (appLocale === "ja-JP-mac") {
appLocale = "ja-JP-macos";
}
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.