Closed ogizanagi closed 1 year ago
@ogizanagi according to https://github.com/symfony/symfony/pull/37371 and related doc PR https://github.com/symfony/symfony-docs/pull/13875
I think you are right, this need to have the MessageCatalogueInterface::INTL_DOMAIN_SUFFIX = '+intl-icu';
in it to work in code
There is something unclear with this tip in https://symfony.com/doc/current/translation/message_format.html#selecting-different-messages-based-on-a-condition :
but it won't work, unless I'm missing something, since there is no indication to use the icu format, on contrary of translations defined in a
messages+intl-icu.fr.yaml
.A solution is to provide the
domain
argument with an arbitrary domain and append+intl-icu
:I'm currently trying to use this directly in Twig, more for pluralization & other selectors reasons than for translations for which I would have defined translation keys in files:
The intent is unclear behind this tip, but seems to legitimate this use-case.
Did I misunderstood something? How to clarify?