We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2880dc6 commit 4c29662Copy full SHA for 4c29662
default_hooks.ts
@@ -42,7 +42,7 @@ function getPluralRules(locale: string) {
42
43
const symPluralRule = Symbol("pluralRule");
44
45
-function createPluginHook(pluralRule: Intl.LDMLPluralRule): Hook {
+function createPluralHook(pluralRule: Intl.LDMLPluralRule): Hook {
46
return (source, args, ctx, info) => {
47
if (ctx.metadata.matched) {
48
return ctx.out;
@@ -71,12 +71,12 @@ export const defaultHooks: Record<string, Hook> = {
71
female: createGenderHook("female"),
72
73
// plural
74
- zero: createPluginHook("zero"),
75
- one: createPluginHook("one"),
76
- two: createPluginHook("two"),
77
- few: createPluginHook("few"),
78
- many: createPluginHook("many"),
79
- other: createPluginHook("other"),
+ zero: createPluralHook("zero"),
+ one: createPluralHook("one"),
+ two: createPluralHook("two"),
+ few: createPluralHook("few"),
+ many: createPluralHook("many"),
+ other: createPluralHook("other"),
80
81
// else
82
else: (_, args, ctx) => {
0 commit comments