break;
} } $parameters =
array_map(fn ($parameter) =>
$parameter instanceof TranslatableInterface ?
$parameter->
trans($this,
$locale) :
$parameter,
$parameters);
$len = \
strlen(MessageCatalogue::INTL_DOMAIN_SUFFIX
);
if ($this->hasIntlFormatter
&& ($catalogue->
defines($id,
$domain.MessageCatalogue::INTL_DOMAIN_SUFFIX
) || (\
strlen($domain) >
$len && 0 ===
substr_compare($domain, MessageCatalogue::INTL_DOMAIN_SUFFIX, -
$len,
$len))) ) { return $this->formatter->
formatIntl($catalogue->
get($id,
$domain),
$locale,
$parameters);
} return $this->formatter->
format($catalogue->
get($id,
$domain),
$locale,
$parameters);
} public function getCatalogue(string
$locale = null
): MessageCatalogueInterface
{ if (!
$locale) { $locale =
$this->
getLocale();
} else { $this->
assertValidLocale($locale);
}