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

Add internationalized date filter #60

Closed
greatislander opened this issue Jun 28, 2021 · 0 comments · Fixed by #111
Closed

Add internationalized date filter #60

greatislander opened this issue Jun 28, 2021 · 0 comments · Fixed by #111
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@greatislander
Copy link
Contributor

greatislander commented Jun 28, 2021

Is your feature request related to a problem?

Currently the formatDate filter formats dates in English. It should support an optional locale parameter to allow internationalized date formats.

Describe the solution you'd like

{{ "Sun Jun 21 2020 18:00:00 GMT-0300 (Atlantic Daylight Time)" | formatDate }}

Output: June 21st, 2020

{{ "Sun Jun 21 2020 18:00:00 GMT-0300 (Atlantic Daylight Time)" | formatDate("fr") }}

Output: 21 juin 2020

Describe alternative solutions you've considered

Not applicable.

Additional context or notes

Related to fluid-project/trivet#148.

@greatislander greatislander added the enhancement New feature or request label Jun 28, 2021
@greatislander greatislander added this to the 0.3.0 milestone Jun 28, 2021
@greatislander greatislander self-assigned this Jun 28, 2021
@greatislander greatislander removed this from the 0.3.0 milestone Mar 21, 2022
@greatislander greatislander changed the title Add internationalized date shortcode Add internationalized date filter Mar 22, 2022
@greatislander greatislander added this to the 1.0 milestone Mar 22, 2022
greatislander added a commit that referenced this issue Mar 22, 2022
chore(deps-dev): require Eleventy 1.0

feat: deprecate slug filter (fix #94)
BREAKING CHANGE: throw error on use of slug filter instead of slugify
filter

feat: add internationalization support to formatDate (fix #60)

feat: markdown filter inherits base configuration (fix #85)

chore(deps): remove markdown-it dependency
greatislander added a commit that referenced this issue Mar 22, 2022
chore(deps-dev): require Eleventy 1.0

feat: deprecate slug filter (fix #94)
BREAKING CHANGE: throw error on use of slug filter instead of slugify
filter

feat: add internationalization support to formatDate (fix #60)

feat: markdown filter inherits base configuration (fix #85)

chore(deps): remove markdown-it dependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant