Translator
interface Translator
Methods
mixed
get(string $key, array $replace = [], string|null $locale = null)
Get the translation for a given key.
string
string
getLocale()
Get the default locale being used.
void
setLocale(string $locale)
Set the default locale.
Details
at line 14
mixed
get(string $key, array $replace = [], string|null $locale = null)
Get the translation for a given key.
at line 19
string
choice(string $key, array|Countable|float|int $number, array $replace = [], string|null $locale = null)
Get a translation according to an integer value.
at line 24
string
getLocale()
Get the default locale being used.
at line 29
void
setLocale(string $locale)
Set the default locale.