F
Filament14mo ago
dodyrw

Plural translation in Resource page

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.
"Category": "Category",
"Categories": "Categories",
"Category|Categories": "Category|Categories",
"Category": "Category",
"Categories": "Categories",
"Category|Categories": "Category|Categories",
1 Reply
dodyrw
dodyrwOP14mo ago
I mean like this
"Category": "التصنيف",
"Categories": "التصنيفات",
"Category|Categories": "التصنيف|التصنيفات",
"Category": "التصنيف",
"Categories": "التصنيفات",
"Category|Categories": "التصنيف|التصنيفات",
I also tried to make it singular
public static function getLabel(): ?string
{
return __('Category');
}
public static function getLabel(): ?string
{
return __('Category');
}
Nothing work so far. Thank you
Want results from more Discord servers?
Add your server