PHP Interface 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' ] ]
Datei anzeigen Open project: fenos/notifynder

Public Methods

Method Description
getLanguage ( $language ) : mixed Get selected language of translations.
getTranslations ( ) : array | mixed Get translations.
translate ( $language, $nameCategory ) : mixed Translate the given category.

Method Details

getLanguage() public method

Get selected language of translations.
public getLanguage ( $language ) : mixed
$language
return mixed

getTranslations() public method

Get translations.
public getTranslations ( ) : array | mixed
return array | mixed

translate() public method

Translate the given category.
public translate ( $language, $nameCategory ) : mixed
$language
$nameCategory
return mixed