laravel-mail-editor icon indicating copy to clipboard operation
laravel-mail-editor copied to clipboard

Add support for language files

Open dgillier opened this issue 5 years ago • 1 comments

Hello,

I tried to add @lang params while editing a template but this is really making the preview unusable.

Screenshot 2020-06-09 at 16 03 50

not sure how to solve this, any idea ? Thanks, Denis

dgillier avatar Jun 09 '20 14:06 dgillier

Hi @dgillier, do they not render when you are previewing the mailable?

I was going to suggest using the {{ __("email.teacher_validation.learn_more") }} to also render language files, but it would still look the same in the template editor.

The language files should render though when you are looking at the mailable that the template has been attached to, I think the blade @lang aren't going to be rendered in the template editor as it's not passed through the View compiler of Laravel.

Could you confirm if the issues is that it isn't rendering or if it is in the template side of things you would like a better display of the language file?

ReeceM avatar Jun 24 '20 08:06 ReeceM