class LocaleManager

Properties

protected Translator $translator
protected $locales
protected $js

Methods

__construct(Translator $translator)

No description

getLocale()

No description

setLocale($locale)

No description

addLocale($locale, $name)

No description

getLocales()

No description

hasLocale($locale)

No description

addTranslations($locale, $file)

No description

addJsFile($locale, $js)

No description

getJsFiles($locale)

No description

Translator
getTranslator()

No description

setTranslator(Translator $translator)

No description

Details

__construct(Translator $translator)

Parameters

Translator $translator

getLocale()

setLocale($locale)

Parameters

$locale

addLocale($locale, $name)

Parameters

$locale
$name

getLocales()

hasLocale($locale)

Parameters

$locale

addTranslations($locale, $file)

Parameters

$locale
$file

addJsFile($locale, $js)

Parameters

$locale
$js

getJsFiles($locale)

Parameters

$locale

Translator getTranslator()

Return Value

Translator

setTranslator(Translator $translator)

Parameters

Translator $translator