PHP Class Fenos\Notifynder\Translator\TranslatorManager
The Translator is responsible to translate the text
of the notifications with the custom languages that
you'll define in the configuration file. Translations
are cached in storage/app/notifynder in a json format.
Usage:
[
'it' => [
'name.category' => 'text to {parse value} translate'
]
]
Show file
Open project: fenos/notifynder
Class Usage Examples
Protected Properties
Public Methods
Protected Methods
Method |
Description |
|
cacheFromConfig ( ) : array |
Get the translations from the
array of the config file and it
will cache them. |
|
Method Details
__construct()
public method
public __construct ( Compiler $compiler, Illuminate\Contracts\Config\Repository $config ) |
$compiler |
Compiler |
|
$config |
Illuminate\Contracts\Config\Repository |
|
cacheFromConfig()
protected method
Get the translations from the
array of the config file and it
will cache them.
getLanguage()
public method
Get selected language of translations.
getTranslations()
public method
translate()
public method
Translate the given category.
Property Details
$compiler protected property
protected Compiler,Fenos\Notifynder\Translator $compiler |
return |
Compiler |
|