Translations sub-navigation pages
I chose to use sub-navigation menus, but I'm struggling to translate the model label. It worked fine in a regular relationship manager, but here it only shows as "Question answer" or "Question answers."
12 Replies
With ->emptyStateHeading(__('No question answers')) you can fix sth like that
on the table
dank voor je super plugin trouwens, mega praktisch in mijn project.. π
This would work but it would be perfect if i could use "translate" the model label part. (Which is possible on relation manager)
π
Solution
Seems like
->modelLabel('Your label here')
works. βοΈAh die kende ik ook nog niet! Betere oplossing idd.
@CodeWithDennis sorry for tagging, but where did you put
->modelLabel()
for translationOn the table.
There is also a plural method.
Oh this question is about table empty state right?
Also the button
I want this part
for translation
in view file
Working fine.. thanks