Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

basim's avatar
Level 1

connected words without spacing

Hello everyone. i have problem in filament PHP when i use tabs in forms with arabic language the text input label show connected words without spacing, can anyone help this is the code public static function form(Form $form): Form { return $form ->schema([ Tabs::make('Tabs') ->tabs([ Tabs\Tab::make('معلومات شخصية') ->schema([ TextInput::make('الاسم الكامل'), TextInput::make('العنوان'), TextInput::make('الموبايل'), TextInput::make('مكان العمل'),

                        ]),
                    Tabs\Tab::make('معلومات وظيفية')
                        ->schema([
                            TextInput::make('مكان   العمل'),
                        ]),
                    Tabs\Tab::make('اللجان')
                        ->schema([
                            // ...
                        ]),
                ])

        ]);
}
0 likes
5 replies
jaseofspades88's avatar

Have you tried using Laravel translations? So instead using Tab::make(__('translation.key.goes.here')); and see if that helps with how the translation string is handled?

jaseofspades88's avatar

Well, what's happening? Are the spaces being stripped from the string? Are they being converted? Are you sure you're not accidentally using the same name twice for a tab and it's having to trim them?

I can't make bricks without clay

basim's avatar
Level 1

what is happening is that the text input labels is being connect words the spaces between words are stripped, (الاسم الكامل) label display like this (الاسمالكامل) without space between words.

basim's avatar
Level 1

solved just by adding the label command TextInput::make('Full name')->label('الاسم الكامل'),

Please or to participate in this conversation.