Files
summercms/examples/hello/plugins/base/lang/en/lang.yaml
Jakub Zych 6d8786a2af feat(04-02): select CLDR and Laravel plural forms with PHP parameters
- Use go-i18n only to pick a category label, then substitute :name/:Name/:NAME
- Treat YAML maps as plurals when all keys are locale CLDR categories
- Parse pipe strings with {n} and [a,b]/[a,*] conditions at catalog load

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 13:51:15 +02:00

9 lines
194 B
YAML

greeting: Hello
labels:
pluginName: Hello plugin
albums:
one: ":count album"
other: ":count albums"
items: "{0} No items|{1} One item|[2,*] :count items"
helloName: "hi :name :Name :NAME"