The code bellow should return plural
.
use Drupal\Core\StringTranslation\PluralTranslatableMarkup;
$trans = new PluralTranslatableMarkup(12, 'singular', 'plural');
$output = '' . $trans;
$output1 = $trans->render();
Both $output
and $output1
returns singular
;
Any clues why? Thank you.