code: public function translate(Translatable $model)
      {
          $properties = $this->getProperties($model);
  
          foreach ($properties as $property) {
              $get = 'get'.$property->getName();
              $set = 'set'.$property->getName();
              $values = [];
  
              foreach ($model->getTranslations() as $translation) {
                  $values[$translation->getLocale()] = $translation->$get();
              }
  
              $model->$set($values);
          }
      }
docs: Translate translatable properties
  
  @param \Ds\Component\Translation\Model\Type\Translatable $model