API reference / Quittio \ Core \ I18n
Translations
final class in quittio/core
Quittio\Core\I18n\Translations · Source
Holds the translator used for code labels and validation messages.
The Laravel integration replaces the default with a bridge to Laravel's translator.
Methods#
| Method | Description |
|---|---|
::reset() | |
::translator() | |
::use() | |
::version() | Incremented whenever the translator is replaced, so that lazy registrations can detect it. |
reset()#
public static function reset(): voidtranslator()#
public static function translator(): Translator- Returns
Translator
use()#
public static function use(Translator $translator): void| Parameter | Type | Description |
|---|---|---|
$translator | Translator |
version()#
public static function version(): intIncremented whenever the translator is replaced, so that lazy registrations can detect it.
- Returns
int