I have used https://www.yiiframework.com/doc/guide/2.0/en/tutorial-i18n#parameter-formatting
but on my server, it displayed like a full string without any effect of intl.
my code is like:
echo \Yii::t('app', 'There {n,plural,=0{are no cats} =1{is one cat} other{are # cats}}!', ['n' => $n]);
expected result:
// When $n = 0, it may produce "There are no cats!"
// When $n = 1, it may produce "There is one cat!"
// When $n = 42, it may produce "There are 42 cats!"
but it displays the whole expression here without any effect