interface Translator (View source)
mixed | get(string $key, array $replace = [], string|null $locale = null) Get the translation for a given key. | |
string | choice(string $key, Countable|int|array $number, array $replace = [], string|null $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. |
Get the translation for a given key.
Get a translation according to an integer value.
Get the default locale being used.
Set the default locale.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Contracts/Translation/Translator.html