$object[$objectIndex] = $fallback;
}
return $object;
}
/**
* Loads all translations.
*/
private function loadTranslations(): void
{
$this->translations = $this->translationService->readBatchWithFallback($this->language, $this->fallback, $this->type);
$this->loaded = true;
}
/**
* Determines if the translations have been loaded.
*/
private function areTranslationsLoaded(): bool
{
return $this->loaded;
}
}