Hi, guys! Please help to solve one problem: We implement multi-lingual support and have translation files, like this: $messages = array( 'test' => '%num% {{ plural(%num%, ["page", "pages"]) }}' );
We use Phalcon\Translate\Adapter\NativeArray to translate text: $t->_("test", array("num" => 5))
It will produce: 5 {{ plural(5, ["page", "pages"]) }};
But, we need to compile this result to receive: 5 pages
Function plural is already implemented and added to volt compiler.