public function setAttribute($key, $value)
{
if (str_contains($key, ':')) {
list($key, $locale) = explode(':', $key);
} else {
$locale = $this->locale();
}
if ($this->isTranslationAttribute($key)) {
$this->getTranslationOrNew($locale)->{$key} = $value;
} else {
return parent::setAttribute($key, $value);
}
return $this;
}