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