Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[TwigBridge][TwigBundle] Add current locale toAppVariable#49913
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
AppVariableAppVariableSVillette commentedApr 3, 2023
About the failing tests, I may need some help / directions here.
|
Uh oh!
There was an error while loading.Please reload this page.
stof commentedApr 7, 2023
For low-deps, you need to increase the lower bound of the requirement |
Uh oh!
There was an error while loading.Please reload this page.
SVillette commentedApr 11, 2023
Thank you for the input, CI is still failling but not because of this PR. |
fabpot commentedApr 11, 2023
Thank you@SVillette. |
This PR was merged into the 6.3 branch.Discussion----------Add Twig `app.locale` documentationThe PR add documentation ofsymfony/symfony#49913Commits-------ac51842 docs: add `app.locale` from Twig `AppVariable`
curry684 commentedMay 3, 2023
When installing the Twig Bundle 6.3.0-BETA1 this breaks the application if you didn't directly add the bridge as well: !! [Symfony\Component\ErrorHandler\Error\UndefinedMethodError]!! Attempted to call an undefined method named"setLocaleSwitcher" of class"S!! ymfony\Bridge\Twig\AppVariable". Bundle 6.3 is thus incompatible with Bridge 6.2 yet this is not enforced through dependencies. |
…version (SVillette)This PR was merged into the 6.3 branch.Discussion----------[TwigBundle] fixed wrong `symfony/twig-bridge` dependency version| Q | A| ------------- | ---| Branch? | 6.3| Bug fix? | yes| New feature? | no| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets |Fix#50245| License | MIT| Doc PR | -`TwigBundle` had wrong dependency version after#49913. This PR fixes this issue.Commits-------c05f484 fix(twig-bundle): fixed wrong `symfony/twig-bridge` dependency
Uh oh!
There was an error while loading.Please reload this page.
As stated in#49870, they were no way to get the current locale without passing it through a variable when rendering a template within
LocaleSwitcher::runWithLocale().{{app.locale }} // frA doc PR will be submitted if this change is accepted.