Skip to content

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#

MethodDescription
::reset()
::translator()
::use()
::version()Incremented whenever the translator is replaced, so that lazy registrations can detect it.

reset()#

public static function reset(): void

static

translator()#

public static function translator(): Translator

static

Returns
Translator

use()#

public static function use(Translator $translator): void

static

ParameterTypeDescription
$translatorTranslator

version()#

public static function version(): int

static

Incremented whenever the translator is replaced, so that lazy registrations can detect it.

Returns
int

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.