import { memoize } from "@platform-modules/util/memo";
//#region src/plural.ts
const _pr = memoize((locale) => new Intl.PluralRules(locale));
function plural(locale, count, forms) {
	return (forms[_pr(locale).select(count)] ?? forms.other ?? "").replace(/\{count\}/g, String(count));
}
//#endregion
export { plural };
