feat: release v0.26 portable i18n and presentation adapters

This commit is contained in:
2026-09-29 13:31:42 +08:00
parent 6a95cad184
commit d1a747c36f
75 changed files with 5681 additions and 52 deletions

19
i18n/cldr/README.md Normal file
View File

@@ -0,0 +1,19 @@
# Pinned cardinal plural data
`plurals.json` is copied without modification from Unicode CLDR JSON **46.1.0**:
https://github.com/unicode-org/cldr-json/blob/46.1.0/cldr-json/cldr-core/supplemental/plurals.json
The upstream data identifies CLDR version 46 / Unicode 16.0.0. See the accompanying
Unicode license. No data is downloaded at application startup or during generation.
Both Go and the browser evaluate these same rules. Browser packs include only the
rules for the exported language and its fallback chain, together with the Unicode
license. They do not depend on the
browser's built-in `Intl.PluralRules` data version. Language-tag matching is a
separate responsibility provided by `golang.org/x/text/language`.
When updating this data, update `PluralRulesVersion`, preserve the license, and run
the upstream-sample and Go/browser conformance tests. This version supports cardinal
rules for ordinary numbers; compact-number operands `c`/`e` are zero. Ordinal and
compact-number formatting are not part of the v1 message format.