plural

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package plural provides CLDR plural form selection for a given language and count. Form names: "zero", "one", "two", "few", "many", "other".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Form

func Form(lang string, count int) string

Form returns the CLDR plural form for the given language tag and count. Language tag is normalized to base (e.g. "en-US" -> "en"). Unknown languages default to "other".

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL