Translatable
Trait to add translations to fields
Table of Contents
- $availableLocales : mixed
- $locale : mixed
- _translatableInit() : void
- Initialize the translatable relationship
- translation() : Flex
- Create a translation with the fields defined in the $values parameter.
Properties
$availableLocales
public
mixed
$availableLocales
$locale
public
mixed
$locale
Methods
_translatableInit()
Initialize the translatable relationship
public
_translatableInit([array<string|int, mixed> $params = [] ]) : void
Parameters
- $params : array<string|int, mixed> = []
Return values
void —translation()
Create a translation with the fields defined in the $values parameter.
public
translation(mixed $locale, mixed $values) : Flex
Parameters
- $locale : mixed
- $values : mixed