rcrowe / TwigBridge

Give the power of Twig to Laravel
MIT License
895 stars 165 forks source link

trans node is missing? #413

Open didix16 opened 3 years ago

didix16 commented 3 years ago

Hi, regarding #18 I want to add the {% trans %} tag but the mentioned issue was from 2013 and it is not working right now. I'm using Laravel 8 with the following packages:

"rcrowe/twigbridge": "^0.12.3",
"twig/twig": "^3.3"

And if I add the twig extensions package, it happens the following:

Using version ^1.5 for twig/extensions
./composer.json has been updated
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install twig/extensions v1.5.4
    - Conclusion: don't install twig/extensions v1.5.3
    - Conclusion: don't install twig/extensions v1.5.2
    - Conclusion: don't install twig/extensions v1.5.1
    - Conclusion: don't install twig/extensions v1.5.0
    - Conclusion: remove twig/twig v3.3.0
    - Installation request for twig/extensions ^1.5 -> satisfiable by twig/extensions[1.x-dev, v1.5.0, v1.5.1, v1.5.2, v1.5.3, v1.5.4].
    - Conclusion: don't install twig/twig v3.3.0
    - twig/extensions 1.x-dev requires twig/twig ^1.27|^2.0 -> satisfiable by twig/twig[1.x-dev, 2.x-dev].
    - Can only install one of: twig/twig[1.x-dev, v3.3.0].
    - Can only install one of: twig/twig[2.x-dev, v3.3.0].
    - Installation request for twig/twig (locked at v3.3.0, required as ^3.3) -> satisfiable by twig/twig[v3.3.0].

Installation failed, reverting ./composer.json to its original content.

So, is there any solution so that I can add the {% trans %} tag to twig using Laravel 8?

Thanks in advance.