make-plural
Version:
Unicode CLDR pluralization rules as JavaScript functions
220 lines (218 loc) • 13.1 kB
TypeScript
export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";
export const af: (n: number | string) => "one" | "other";
export const ak: (n: number | string) => "one" | "other";
export const am: (n: number | string) => "one" | "other";
export const an: (n: number | string) => "one" | "other";
export const ar: (n: number | string) => "zero" | "one" | "two" | "few" | "many" | "other";
export const ars: (n: number | string) => "zero" | "one" | "two" | "few" | "many" | "other";
export const as: (n: number | string) => "one" | "other";
export const asa: (n: number | string) => "one" | "other";
export const ast: (n: number | string) => "one" | "other";
export const az: (n: number | string) => "one" | "other";
export const bal: (n: number | string) => "one" | "other";
export const be: (n: number | string) => "one" | "few" | "many" | "other";
export const bem: (n: number | string) => "one" | "other";
export const bez: (n: number | string) => "one" | "other";
export const bg: (n: number | string) => "one" | "other";
export const bho: (n: number | string) => "one" | "other";
export const blo: (n: number | string) => "zero" | "one" | "other";
export const bm: (n: number | string) => "other";
export const bn: (n: number | string) => "one" | "other";
export const bo: (n: number | string) => "other";
export const br: (n: number | string) => "one" | "two" | "few" | "many" | "other";
export const brx: (n: number | string) => "one" | "other";
export const bs: (n: number | string) => "one" | "few" | "other";
export const ca: (n: number | string) => "one" | "many" | "other";
export const ce: (n: number | string) => "one" | "other";
export const ceb: (n: number | string) => "one" | "other";
export const cgg: (n: number | string) => "one" | "other";
export const chr: (n: number | string) => "one" | "other";
export const ckb: (n: number | string) => "one" | "other";
export const cs: (n: number | string) => "one" | "few" | "many" | "other";
export const cy: (n: number | string) => "zero" | "one" | "two" | "few" | "many" | "other";
export const da: (n: number | string) => "one" | "other";
export const de: (n: number | string) => "one" | "other";
export const doi: (n: number | string) => "one" | "other";
export const dsb: (n: number | string) => "one" | "two" | "few" | "other";
export const dv: (n: number | string) => "one" | "other";
export const dz: (n: number | string) => "other";
export const ee: (n: number | string) => "one" | "other";
export const el: (n: number | string) => "one" | "other";
export const en: (n: number | string) => "one" | "other";
export const eo: (n: number | string) => "one" | "other";
export const es: (n: number | string) => "one" | "many" | "other";
export const et: (n: number | string) => "one" | "other";
export const eu: (n: number | string) => "one" | "other";
export const fa: (n: number | string) => "one" | "other";
export const ff: (n: number | string) => "one" | "other";
export const fi: (n: number | string) => "one" | "other";
export const fil: (n: number | string) => "one" | "other";
export const fo: (n: number | string) => "one" | "other";
export const fr: (n: number | string) => "one" | "many" | "other";
export const fur: (n: number | string) => "one" | "other";
export const fy: (n: number | string) => "one" | "other";
export const ga: (n: number | string) => "one" | "two" | "few" | "many" | "other";
export const gd: (n: number | string) => "one" | "two" | "few" | "other";
export const gl: (n: number | string) => "one" | "other";
export const gsw: (n: number | string) => "one" | "other";
export const gu: (n: number | string) => "one" | "other";
export const guw: (n: number | string) => "one" | "other";
export const gv: (n: number | string) => "one" | "two" | "few" | "many" | "other";
export const ha: (n: number | string) => "one" | "other";
export const haw: (n: number | string) => "one" | "other";
export const he: (n: number | string) => "one" | "two" | "other";
export const hi: (n: number | string) => "one" | "other";
export const hnj: (n: number | string) => "other";
export const hr: (n: number | string) => "one" | "few" | "other";
export const hsb: (n: number | string) => "one" | "two" | "few" | "other";
export const hu: (n: number | string) => "one" | "other";
export const hy: (n: number | string) => "one" | "other";
export const ia: (n: number | string) => "one" | "other";
export const id: (n: number | string) => "other";
export const ig: (n: number | string) => "other";
export const ii: (n: number | string) => "other";
export const io: (n: number | string) => "one" | "other";
export const is: (n: number | string) => "one" | "other";
export const it: (n: number | string) => "one" | "many" | "other";
export const iu: (n: number | string) => "one" | "two" | "other";
export const ja: (n: number | string) => "other";
export const jbo: (n: number | string) => "other";
export const jgo: (n: number | string) => "one" | "other";
export const jmc: (n: number | string) => "one" | "other";
export const jv: (n: number | string) => "other";
export const jw: (n: number | string) => "other";
export const ka: (n: number | string) => "one" | "other";
export const kab: (n: number | string) => "one" | "other";
export const kaj: (n: number | string) => "one" | "other";
export const kcg: (n: number | string) => "one" | "other";
export const kde: (n: number | string) => "other";
export const kea: (n: number | string) => "other";
export const kk: (n: number | string) => "one" | "other";
export const kkj: (n: number | string) => "one" | "other";
export const kl: (n: number | string) => "one" | "other";
export const km: (n: number | string) => "other";
export const kn: (n: number | string) => "one" | "other";
export const ko: (n: number | string) => "other";
export const ks: (n: number | string) => "one" | "other";
export const ksb: (n: number | string) => "one" | "other";
export const ksh: (n: number | string) => "zero" | "one" | "other";
export const ku: (n: number | string) => "one" | "other";
export const kw: (n: number | string) => "zero" | "one" | "two" | "few" | "many" | "other";
export const ky: (n: number | string) => "one" | "other";
export const lag: (n: number | string) => "zero" | "one" | "other";
export const lb: (n: number | string) => "one" | "other";
export const lg: (n: number | string) => "one" | "other";
export const lij: (n: number | string) => "one" | "other";
export const lkt: (n: number | string) => "other";
export const ln: (n: number | string) => "one" | "other";
export const lo: (n: number | string) => "other";
export const lt: (n: number | string) => "one" | "few" | "many" | "other";
export const lv: (n: number | string) => "zero" | "one" | "other";
export const mas: (n: number | string) => "one" | "other";
export const mg: (n: number | string) => "one" | "other";
export const mgo: (n: number | string) => "one" | "other";
export const mk: (n: number | string) => "one" | "other";
export const ml: (n: number | string) => "one" | "other";
export const mn: (n: number | string) => "one" | "other";
export const mo: (n: number | string) => "one" | "few" | "other";
export const mr: (n: number | string) => "one" | "other";
export const ms: (n: number | string) => "other";
export const mt: (n: number | string) => "one" | "two" | "few" | "many" | "other";
export const my: (n: number | string) => "other";
export const nah: (n: number | string) => "one" | "other";
export const naq: (n: number | string) => "one" | "two" | "other";
export const nb: (n: number | string) => "one" | "other";
export const nd: (n: number | string) => "one" | "other";
export const ne: (n: number | string) => "one" | "other";
export const nl: (n: number | string) => "one" | "other";
export const nn: (n: number | string) => "one" | "other";
export const nnh: (n: number | string) => "one" | "other";
export const no: (n: number | string) => "one" | "other";
export const nqo: (n: number | string) => "other";
export const nr: (n: number | string) => "one" | "other";
export const nso: (n: number | string) => "one" | "other";
export const ny: (n: number | string) => "one" | "other";
export const nyn: (n: number | string) => "one" | "other";
export const om: (n: number | string) => "one" | "other";
export const or: (n: number | string) => "one" | "other";
export const os: (n: number | string) => "one" | "other";
export const osa: (n: number | string) => "other";
export const pa: (n: number | string) => "one" | "other";
export const pap: (n: number | string) => "one" | "other";
export const pcm: (n: number | string) => "one" | "other";
export const pl: (n: number | string) => "one" | "few" | "many" | "other";
export const prg: (n: number | string) => "zero" | "one" | "other";
export const ps: (n: number | string) => "one" | "other";
export const pt: (n: number | string) => "one" | "many" | "other";
export const pt_PT: (n: number | string) => "one" | "many" | "other";
export const rm: (n: number | string) => "one" | "other";
export const ro: (n: number | string) => "one" | "few" | "other";
export const rof: (n: number | string) => "one" | "other";
export const ru: (n: number | string) => "one" | "few" | "many" | "other";
export const rwk: (n: number | string) => "one" | "other";
export const sah: (n: number | string) => "other";
export const saq: (n: number | string) => "one" | "other";
export const sat: (n: number | string) => "one" | "two" | "other";
export const sc: (n: number | string) => "one" | "other";
export const scn: (n: number | string) => "one" | "other";
export const sd: (n: number | string) => "one" | "other";
export const sdh: (n: number | string) => "one" | "other";
export const se: (n: number | string) => "one" | "two" | "other";
export const seh: (n: number | string) => "one" | "other";
export const ses: (n: number | string) => "other";
export const sg: (n: number | string) => "other";
export const sh: (n: number | string) => "one" | "few" | "other";
export const shi: (n: number | string) => "one" | "few" | "other";
export const si: (n: number | string) => "one" | "other";
export const sk: (n: number | string) => "one" | "few" | "many" | "other";
export const sl: (n: number | string) => "one" | "two" | "few" | "other";
export const sma: (n: number | string) => "one" | "two" | "other";
export const smi: (n: number | string) => "one" | "two" | "other";
export const smj: (n: number | string) => "one" | "two" | "other";
export const smn: (n: number | string) => "one" | "two" | "other";
export const sms: (n: number | string) => "one" | "two" | "other";
export const sn: (n: number | string) => "one" | "other";
export const so: (n: number | string) => "one" | "other";
export const sq: (n: number | string) => "one" | "other";
export const sr: (n: number | string) => "one" | "few" | "other";
export const ss: (n: number | string) => "one" | "other";
export const ssy: (n: number | string) => "one" | "other";
export const st: (n: number | string) => "one" | "other";
export const su: (n: number | string) => "other";
export const sv: (n: number | string) => "one" | "other";
export const sw: (n: number | string) => "one" | "other";
export const syr: (n: number | string) => "one" | "other";
export const ta: (n: number | string) => "one" | "other";
export const te: (n: number | string) => "one" | "other";
export const teo: (n: number | string) => "one" | "other";
export const th: (n: number | string) => "other";
export const ti: (n: number | string) => "one" | "other";
export const tig: (n: number | string) => "one" | "other";
export const tk: (n: number | string) => "one" | "other";
export const tl: (n: number | string) => "one" | "other";
export const tn: (n: number | string) => "one" | "other";
export const to: (n: number | string) => "other";
export const tpi: (n: number | string) => "other";
export const tr: (n: number | string) => "one" | "other";
export const ts: (n: number | string) => "one" | "other";
export const tzm: (n: number | string) => "one" | "other";
export const ug: (n: number | string) => "one" | "other";
export const uk: (n: number | string) => "one" | "few" | "many" | "other";
export const und: (n: number | string) => "other";
export const ur: (n: number | string) => "one" | "other";
export const uz: (n: number | string) => "one" | "other";
export const ve: (n: number | string) => "one" | "other";
export const vec: (n: number | string) => "one" | "many" | "other";
export const vi: (n: number | string) => "other";
export const vo: (n: number | string) => "one" | "other";
export const vun: (n: number | string) => "one" | "other";
export const wa: (n: number | string) => "one" | "other";
export const wae: (n: number | string) => "one" | "other";
export const wo: (n: number | string) => "other";
export const xh: (n: number | string) => "one" | "other";
export const xog: (n: number | string) => "one" | "other";
export const yi: (n: number | string) => "one" | "other";
export const yo: (n: number | string) => "other";
export const yue: (n: number | string) => "other";
export const zh: (n: number | string) => "other";
export const zu: (n: number | string) => "one" | "other";