Skip to content

Plurals

tp('apples', ['count' => 1]);
// 1 apple
tp('apples', ['count' => 3]);
// 3 apples
tp('place', ['position' => 1]);
// 1st
tp('cookies', ['start' => 3, 'end' => 4]);
// 3-4 cookies

Allows you to use language variables to translate a string according to that language's plural forms defined in the Unicode CLDR

Related plugins

Other plugins by Oblik Studio