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

Change pt formatRelativeLocale to display masculine and feminine #2992

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

TiagoPortfolio
Copy link
Contributor

In this PR I changed the pt formatRelativeLocale to display 'último' or 'última' according to the weekday.

This is already being done in pt-BR locale and it also makes sense to be done in pt.

Before After
'na última segunda-feira às 11:37' 'última segunda-feira às 11:37'
'na última terça-feira às 11:37' 'última terça-feira às 11:37'
'na última quarta-feira às 11:37' 'última quarta-feira às 11:37'
'na última quinta-feira às 11:37' 'última quinta-feira às 11:37'
'na última sexta-feira às 11:36' 'última sexta-feira às 11:36'
'na última sábado às 11:36' 'último sábado às 11:36'
'na última domingo às 11:36' 'último domingo às 11:36'

…rding to the week day.

This is already being done in pt-BR locale.
@tan75
Copy link
Contributor

tan75 commented May 12, 2022

@date-fns/i18n-pt
can you please approve this?

Copy link
Contributor

@tan75 tan75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tan75 tan75 mentioned this pull request May 12, 2022
26 tasks
@leshakoss leshakoss merged commit 1476045 into date-fns:master Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants