get language text for vue component

This commit is contained in:
Cüneyt Şentürk
2021-01-22 16:01:48 +03:00
parent e476f300be
commit 4f21c14bf9
6 changed files with 15 additions and 2 deletions

View File

@ -96,7 +96,7 @@ class SelectContactCard extends Component
}
#todo 3rd part apps
$this->placeholder = trans('general.placeholder.contact_search', ['type' => $this->type]);
$this->placeholder = trans('general.placeholder.contact_search', ['type' => trans_choice('general.' . Str::plural($this->type, 2), 1)]);
return view('components.select-contact-card');
}