TranslationsAware
- Full name:
\Qubus\Validation\Traits\TranslationsAware
Properties
translations
Methods
setTranslation
Given $key and $translation to set translation
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key | mixed | |
$translation | mixed |
setTranslations
Given $translations and set multiple translations
Parameters:
| Parameter | Type | Description |
|---|---|---|
$translations | array |
getTranslation
Given translation from given $key
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key | string |
getTranslations
Get all $translations