Александр Некрасов
"locale" is current for the application, but if this "locale" does not have a translation, it will try to get from "defaultLocale."
the default application has an English locale (setDefaultLocale), the user needs to give on the Russian locale (setLocale), if no translations are found in the Russian locale, then will take from defaultLocale (English)
$container->set(
TranslatorInterface::class,
function (ContainerInterface $container) {
$translator = new Translator(
$container->get(EventDispatcherInterface::class),
new MessageTranslator([]),
null
);
$translator->setLocale('en-US');
return $translator;
}
);
No works es_VE is not valid BCP 47 formatted locale string ?