code: public function internalSaveKeyTranslation(Model $foreignModel, $localObject, $key)
      {
          $keyTranslation = $this->getKeyTranslation($foreignModel, $key);
          if (!$keyTranslation) {
              $keyTranslation = new KeyTranslation();
              $keyTranslation->data_interface_id = $this->module->collectorItem->interfaceObject->primaryKey;
              $keyTranslation->registry_id = $localObject->primaryKey;
              $keyTranslation->key = $key;
              if (!$keyTranslation->save()) {
                  \d($keyTranslation->attributes);
                  \d($keyTranslation->errors);
                  exit;
  
                  return false;
              }
          }
  
          return $keyTranslation;
      }
docs: [[@doctodo method_description:internalSaveKeyTranslation]].
  
  @param cascade\components\dataInterface\connectors\generic\Model $foreignModel [[@doctodo param_description:foreignModel]]
  @param [[@doctodo param_type:localObject]]                       $localObject  [[@doctodo param_description:localObject]]
  @param [[@doctodo param_type:key]]                               $key          [[@doctodo param_description:key]]
  
  @return [[@doctodo return_type:internalSaveKeyTranslation]] [[@doctodo return_description:internalSaveKeyTranslation]]