Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Polyglot
Services
Lang
active
Polyglot\Services\Lang::active PHP Метод
Документация по классу Lang
Показать файл
Открыть проект
active()
публичный
Метод
Whether a given language is the current one
public
active
(
string
$locale
) :
boolean
$locale
string
The language to check
Результат
boolean
public function active($locale) { return $locale == $this->getLocale(); }
Lang
__construct
active
defaultLocale
fallbackLocale
get
getAvailable
getDomain
getEncoding
getInternalLocale
getLocaleFolder
getShortInternalLocale
getTranslationsFolder
sanitize
setInternalLocale
setLocale
shortToLongLocale
valid