More specialized keys should have a priority over generic keys.
Closed this issue · 1 comments
bvarga256 commented
More specialized keys should have a priority over generic keys.
Let's have a look at this simple json localization file (this is only for demonstration purposes):
{
"apple": "X",
"apple_plural": "Y",
"apple_0": "Z"
}
Code:
i18next.t("apple", {count: 0});
apple_0 should have a greater precedence over apple_plural, because it is more specific,
and the above code should yield Z as a result, not Y.
bvarga256 commented
Sorry, wrong place.