RIch Text Editor Translated Values Issue

Hello, did anyone experience translation issues with RichEditor?
No description
6 Replies
Dennis Koch
Dennis Koch4w ago
This looks like a Laravel translation string so it’s probably translated like the rest of Laravel. The issue you probably have, is that you set your fallback locale to a value different than en
SuperUserDo
SuperUserDoOP4w ago
All three are set to en
No description
Dennis Koch
Dennis Koch4w ago
Hm, that’s weird. Maybe the data isn’t passed to the Frontend properly.
SuperUserDo
SuperUserDoOP4w ago
Still figuring out what seems to be an issue.. I figured it out by going git diff xD Old way file by file. In AdminPanelProvider under userMenuItems i provided Action with schema that calls UserResource::getFormSchema() It returns good schema but for some reason it messes translations. Root cause still uknown.
Action::make(name: 'editProfile')
->slideOver()
->label(__(key: 'actions.edit_profile'))
->modalHeading(heading: fn () => __(key: 'actions.edit_profile_for', replace: ['name' => Auth::user()->full_name]))
->icon(icon: Heroicon::Identification)
->fillForm(data: fn() => Auth::user()->toArray())
->schema(UserResource::getFormSchema(includeRoles: false))
Action::make(name: 'editProfile')
->slideOver()
->label(__(key: 'actions.edit_profile'))
->modalHeading(heading: fn () => __(key: 'actions.edit_profile_for', replace: ['name' => Auth::user()->full_name]))
->icon(icon: Heroicon::Identification)
->fillForm(data: fn() => Auth::user()->toArray())
->schema(UserResource::getFormSchema(includeRoles: false))
\
Dennis Koch
Dennis Koch4w ago
Is this the only place where translations are missing? Is it related to the modal? Or the RichEditor in general?
SuperUserDo
SuperUserDoOP4w ago
Repeater translations are missing also 😅 really got me confused yesterday

Did you find this page helpful?