PHP Интерфейс Fenos\Notifynder\Contracts\NotifynderTranslator

The Translator is responsible to translate the text of the notifications with the custom languages that you define in the configuration file. Translations are cached in storage/app/notifynder in a json format. Usage: [ 'it' => [ 'name.category' => 'text to translate' ] ]
Показать файл Открыть проект

Открытые методы

Метод Описание
getLanguage ( $language ) : mixed Get selected language of translations.
getTranslations ( ) : array | mixed Get translations.
translate ( $language, $nameCategory ) : mixed Translate the given category.

Описание методов

getLanguage() публичный Метод

Get selected language of translations.
public getLanguage ( $language ) : mixed
$language
Результат mixed

getTranslations() публичный Метод

Get translations.
public getTranslations ( ) : array | mixed
Результат array | mixed

translate() публичный Метод

Translate the given category.
public translate ( $language, $nameCategory ) : mixed
$language
$nameCategory
Результат mixed