$class
$class : string
The class to use for new instances.
Factory to create translators
newInstance(string $locale, \Aura\Intl\Package $package, \Aura\Intl\FormatterInterface $formatter, \Aura\Intl\TranslatorInterface $fallback = null) : \Cake\I18n\Translator
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 | A fallback translator to use, if any. |
If fallback class does not match Cake\I18n\Translator
Loading…