poedit icon indicating copy to clipboard operation
poedit copied to clipboard

Add support for Laravel's Blade templates

Open vaites opened this issue 5 years ago • 4 comments

The Laravel's Blade templates are quite similar to Twig. By now, we are using this instructions and works well with trans and trans_choice keywords (used by Laravel).

The only addition must be the translation directives (@lang and @choice) that are transformed to trans and trans_choice internally.

Can you add support for this files?. Thanks!

vaites avatar Apr 24 '19 06:04 vaites

By now, we are using this instructions and works well with trans and trans_choice keywords (used by Laravel).

Doesn't work so well when HTML attributes start being involved.

Yes, this is planned.

(Obligatory: Please thumbs-up this issue if this is of interest to you.)

vslavik avatar Apr 24 '19 07:04 vslavik

Thanks Václav, we use Poedit in multiple Laravel projects, let me know if you need some testing...

vaites avatar Apr 24 '19 08:04 vaites

@vaites Thanks, I'm going to take you up on that offer when the time comes!

vslavik avatar Apr 27 '19 13:04 vslavik

+1, I use also laravel blade templates.

Globally, I think Poedit Pro lacks a feture to add "custom tags" to a language.

For example, in my php templates, I would like to have the chance to add "{{" and "}}" tags as equivalent of php tags ("<?php" and "?>", or "<?" and "?>") in "php language" files.

JL2014 avatar Jul 02 '19 12:07 JL2014