I'm able to translate the resource page with the following code
public static function getLabel(): ?string
{
return __('Categories');
}
public static function getLabel(): ?string
{
return __('Categories');
}
I'm translating to arabic, but the result is
الصناديقS
Notice there is S in the end. How to solve it. I tried many ways adding the following language codes, but still got the problem.
I have a custom page with title
protected static ?string $title = 'Broadcast';
How to localize it because the following code is error
protected static ?string $title = __('Broadcast');
Thank you