v4.1.0
Fixed
- Built-in date formats (numFmtId 14-22, such as the "short date" code 14) are now rendered
deterministically. Previously the reader overwrote their patterns from the ambient ICU locale
wheneverext-intlwas loaded, so the same file produced different strings depending on the
server locale and on whether the extension was installed (#53).
These codes now resolve to fixed patterns regardless of environment. Formats that a file spells
out explicitly are unaffected.
Added
useLocaleFormats(?string $locale = null)— opt in to locale-dependent rendering of the built-in
date codes (the previous behaviour, now explicit). Pass a locale for reproducible output, or nothing
to use the process default locale. Requiresext-intl.
Full changelog: CHANGELOG.md · по-русски