diff --git a/src/Kris/LaravelFormBuilder/Fields/ChildFormType.php b/src/Kris/LaravelFormBuilder/Fields/ChildFormType.php index 49513c9..5c35689 100644 --- a/src/Kris/LaravelFormBuilder/Fields/ChildFormType.php +++ b/src/Kris/LaravelFormBuilder/Fields/ChildFormType.php @@ -116,7 +116,7 @@ protected function getClassFromOptions() $options = [ 'model' => $this->getOption($this->valueProperty) ?: $this->parent->getModel(), 'name' => $this->name, - 'language_name' => $this->parent->getLanguageName(), + 'language_name' => $this->getOption('language_name') ?: $this->parent->getLanguageName(), 'translation_template' => $this->parent->getTranslationTemplate(), ];