class Translator implements TranslatorInterface, TranslatorBagInterface
Translator.
Methods
__construct(string $locale, MessageSelector $selector = null, string|null $cacheDir = null, bool $debug = false) Constructor.
setConfigCacheFactory(ConfigCacheFactoryInterface $configCacheFactory) Sets the ConfigCache factory to use.
addLoader(string $format, LoaderInterface $loader) Adds a Loader.
addResource(string $format, mixed $resource, string $locale, string $domain = null) A