Make Singular Label and Plural Label Translatable
amidesfahani opened this issue · comments
Amid commented
Make Singular Label and Plural Label Translatable
$this->singularLabel = Str::singular($this->name);
$this->pluralLabel = Str::plural($this->name);
suggest:
$this->singularLabel = $resource::singularLabel();
or
$this->singularLabel = __(Str::singular($this->name));
IbrahemElanany commented
you can take new object from NestedForm then override variable value
EX:
$nestedForm = new NestedForm($name, $attribute, $resource)
$nestedForm->pluralLabel = "name you want"