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' ] ]
파일 보기 프로젝트 열기: fenos/notifynder

공개 메소드들

메소드 설명
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