Translator
interface Translator
Methods
mixed
trans(string $key, array $replace = [], string $locale = null)
Get the translation for a given key.
string
transChoice(string $key, int|array|Countable $number, array $replace = [], string $locale = null)
Get a translation according to an integer value.
string
getLocale()
Get the default locale being used.
void
setLocale(string $locale)
Set the default locale.
Details
at line 15
mixed
trans(string $key, array $replace = [], string $locale = null)
Get the translation for a given key.
at line 26
string
transChoice(string $key, int|array|Countable $number, array $replace = [], string $locale = null)
Get a translation according to an integer value.
at line 33
string
getLocale()
Get the default locale being used.
at line 41
void
setLocale(string $locale)
Set the default locale.