#RIch Text Editor Translated Values Issue

10 messages · Page 1 of 1 (latest)

half birch
#

Hello, did anyone experience translation issues with RichEditor?

crimson yarrowBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

zenith karma
#

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

half birch
#

All three are set to en

zenith karma
#

Hm, that’s weird. Maybe the data isn’t passed to the Frontend properly.

half birch
#

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))
```\
zenith karma
#

Is this the only place where translations are missing? Is it related to the modal? Or the RichEditor in general?

half birch
#

Repeater translations are missing also 😅