Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Twig] Add trans and transchoice tag support #459

Closed
Haehnchen opened this issue Mar 10, 2015 · 0 comments
Closed

[Twig] Add trans and transchoice tag support #459

Haehnchen opened this issue Mar 10, 2015 · 0 comments
Labels

Comments

@Haehnchen
Copy link
Owner

In PhpStorm8 we are able to provide completion for trans and transchoice tags now.

http://symfony.com/doc/current/book/translation.html#twig-templates

{% trans with {'%name%': 'Fabien'} from "app" %}Hello %name%{% endtrans %}

{% trans with {'%name%': 'Fabien'} from "app" into "fr" %}Hello %name%{% endtrans %}

{% transchoice count with {'%name%': 'Fabien'} from "app" %}
    {0} %name%, there are no apples|{1} %name%, there is one apple|]1,Inf] %name%, there are %count% apples
{% endtranschoice %}

phpstorm-trans-tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant