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

Unknown locale filter #154

Open
artyom-wcd opened this issue Apr 29, 2020 · 1 comment
Open

Unknown locale filter #154

artyom-wcd opened this issue Apr 29, 2020 · 1 comment

Comments

@artyom-wcd
Copy link

in vendor/sylius/admin-order-creation-plugin/src/Resources/views/Order/preview.html.twig:31
{{ flags.fromLocaleCode(order.localeCode) }}{{ order.localeCode|locale }}
there is an error when creating an order (on order preview page /admin/orders/new/24/DE_SHOP/preview)

Text of the error: Uncaught PHP Exception Twig\Error\SyntaxError: "Unknown "locale" filter. Did you mean "locale_name", "sylius_locale_name", "sylius_locale_country"?" at /srv/sylius/vendor/sylius/admin-order-creation-plugin/src/Resources/views/Order/preview.html.twig line 31

@nathanjrobertson
Copy link

nathanjrobertson commented May 18, 2020

Yep, I've got the exact same issue. PR #150 apparently resolves it.

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