Factory to create translators
stringThe class to use for new instances.
newInstance(mixed $locale, \Aura\Intl\Package $package, \Aura\Intl\FormatterInterface $formatter, ?\Aura\Intl\TranslatorInterface $fallback)
Returns a new Translator.
string $locale The locale code for the translator.
\Aura\Intl\Package $package The Package containing keys and translations.
\Aura\Intl\FormatterInterface $formatter The formatter to use for interpolating token values.
\Aura\Intl\TranslatorInterface $fallback optional A fallback translator to use, if any.
\Cake\I18n\TranslatorCake\Core\Exception\ExceptionThe class to use for new instances.
string
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.1/class-Cake.I18n.TranslatorFactory.html