class LocaleManager
Properties
protected | $locales |
|
||
protected | $js |
|
||
protected | $css |
|
class LocaleManager
protected | $locales |
|
||
protected | $js |
|
||
protected | $css |
|
__construct(Translator $translator, string|null $cacheDir = null)
string
getLocale()
void
setLocale(string $locale)
void
addLocale(string $locale, string $name)
array
getLocales()
bool
hasLocale(string $locale)
void
addTranslations(string $locale, string $file, string $module = null)
void
addJsFile(string $locale, string $js)
array
getJsFiles(string $locale)
void
addCssFile(string $locale, string $css)
array
getCssFiles(string $locale)
Translator
getTranslator()
void
setTranslator(Translator $translator)
void
clearCache()