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

[i18n] Dates also in portuguese #4

Closed
fititnt opened this issue Sep 10, 2016 · 3 comments
Closed

[i18n] Dates also in portuguese #4

fititnt opened this issue Sep 10, 2016 · 3 comments

Comments

@fititnt
Copy link

fititnt commented Sep 10, 2016

By default Jekyll have only dates in english. But is possible make it work also with dates.

See https://github.com/webiwg/acessibilidade-web-pt/blob/master/_includes/date-portugues.html

{% assign m = include.date | date: "%-m" %}
{{ include.date | date: "%-d" }} de
{% case m %}
  {% when '1' %}Janeiro
  {% when '2' %}Fevereiro
  {% when '3' %}Março
  {% when '4' %}Abril
  {% when '5' %}Maio
  {% when '6' %}Junho
  {% when '7' %}Julho
  {% when '8' %}Agosto
  {% when '9' %}Setembro
  {% when '10' %}Outubro
  {% when '11' %}Novembro
  {% when '12' %}Dezembro
{% endcase %} de
{{ include.date | date: "%Y" }}

This was used on my comment in #2 (comment)

@woliveiras
Copy link
Owner

Great!

I did a schema on _config.yml based on this and use like this.

Do you enjoy this scheme?

@fititnt
Copy link
Author

fititnt commented Sep 10, 2016

Better than I would suggest

@woliveiras
Copy link
Owner

\o/

Great!

I will close this issue, OK?

@fititnt fititnt closed this as completed Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants