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

Translate dates automatically in Twig filter #731

Merged
merged 2 commits into from
Mar 18, 2016

Conversation

flaviocopes
Copy link
Contributor

The Twig date filter does not translate dates automatically for us.
This PR lets |date() translate the date based on the locale.

Also correctly set the locale if the language identifier is 2 letters,
append by default the language identifier otherwise the locale setting
is not applied
…based on the locale

The Twig `date` filter does not translate dates automatically for us.
This translates dates based on the locale set.
@rhukster
Copy link
Member

Looks good flavio, feel free to merge into develop.

flaviocopes added a commit that referenced this pull request Mar 18, 2016
…cally

Translate dates automatically in Twig filter
@flaviocopes flaviocopes merged commit 2cf0e2f into develop Mar 18, 2016
@flaviocopes flaviocopes deleted the feature/translate-dates-automatically branch March 18, 2016 22:30
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

Successfully merging this pull request may close these issues.

2 participants