UNPKG

@mongez/localization

Version:

A simple i18n localization handler for browsers and nodejs

14 lines 511 B
import { LanguageCountRules } from "./types"; /** * Get count rules for the given locale code */ export declare function getCountRules(localeCode: string): LanguageCountRules; /** * Get the appropriate count key suffix based on the count value and locale rules */ export declare function getCountKey(count: number, localeCode: string): string; /** * Format count value based on configuration */ export declare function formatCount(count: number): string | number; //# sourceMappingURL=count-rules.d.ts.map