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

What about official twig extensions? #18

Closed
Musiksammler opened this issue Feb 6, 2013 · 2 comments
Closed

What about official twig extensions? #18

Musiksammler opened this issue Feb 6, 2013 · 2 comments

Comments

@Musiksammler
Copy link

Hello!

I want to re-use existing templates but these templates need the official twig extensions, e.g. "{% trans "something to translate" %}". How can I activate these in the twig bridge?

Greetings
Carsten

@rcrowe
Copy link
Owner

rcrowe commented Feb 6, 2013

Your need to install Twig Extensions as well as TwigBridge, so:

"twig/extensions": "1.0.*"

Then in the TwigBridge config file add:

'extensions' => array(
    'Twig_Extensions_Extension_I18n'
);

This should hopefully do what you need. Let me know if you have any other problems.

@rcrowe rcrowe closed this as completed Feb 6, 2013
@Musiksammler
Copy link
Author

Thanks, that worked!

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

No branches or pull requests

2 participants