$class
$class : string
The class to use for new instances.
Factory to create Translator objects.
newInstance(string $locale, \Aura\Intl\Package $package, \Aura\Intl\FormatterInterface $formatter, \Aura\Intl\TranslatorInterface $fallback = null) : \Aura\Intl\Translator
Returns a new Translator.
string | $locale | The locale code for the translator. |
\Aura\Intl\Package | $package | The localized package for the translator. |
\Aura\Intl\FormatterInterface | $formatter | The formatter to use for interpolating token values. |
\Aura\Intl\TranslatorInterface | $fallback | A fallback translator to use, if any. |
Loading…