-
-
Notifications
You must be signed in to change notification settings - Fork 135
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 i18n support #82
Comments
I don't want to rely on the php gettext extension. I'm using that extractor to compile all the twig files and then capture the compiled php classes. Extracting from twig templates and appending to a However the problem is that I guess this is out of scope since it's really a twig question rather than a gettext question. @Exnor have you by any chance found a solution? |
@rubenvincenten I submitted a pull request to fix this: twigphp/Twig-extensions#160 |
https://github.com/elcreator/tempot can be used to extract without the need to compile twig to PHP (i.e. if you haven't proper PHP environment where you have the project files). |
Is it possible to use the twig i18n extension or has anyone managed to make a different extension that allows us to use gettext/gettext and have php arrays as translation?
If not, I will have to refactor my code a bit, but I especially liked using the twig variables inside the trans block (gets converted with strtr automatically).
The text was updated successfully, but these errors were encountered: