Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/@formatjs/ecma402-abstract/lib/PluralRules/ drwxr-xr-x | |
| Viewing file: Select action/file-type: import { CanonicalizeLocaleList } from '../CanonicalizeLocaleList';
import { ToObject } from '../262';
import { GetOption } from '../GetOption';
import { SetNumberFormatDigitOptions } from '../NumberFormat/SetNumberFormatDigitOptions';
import { ResolveLocale } from '../ResolveLocale';
export function InitializePluralRules(pl, locales, options, _a) {
var availableLocales = _a.availableLocales, relevantExtensionKeys = _a.relevantExtensionKeys, localeData = _a.localeData, getDefaultLocale = _a.getDefaultLocale, getInternalSlots = _a.getInternalSlots;
var requestedLocales = CanonicalizeLocaleList(locales);
var opt = Object.create(null);
var opts = options === undefined ? Object.create(null) : ToObject(options);
var internalSlots = getInternalSlots(pl);
internalSlots.initializedPluralRules = true;
var matcher = GetOption(opts, 'localeMatcher', 'string', ['best fit', 'lookup'], 'best fit');
opt.localeMatcher = matcher;
internalSlots.type = GetOption(opts, 'type', 'string', ['cardinal', 'ordinal'], 'cardinal');
SetNumberFormatDigitOptions(internalSlots, opts, 0, 3, 'standard');
var r = ResolveLocale(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);
internalSlots.locale = r.locale;
return pl;
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0063 ]-- |