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
Wrong plural usage for time in PT-BR #3988
Comments
I guess we'd need a code change to allow them to be functions |
As a brazilian, I don't understand what is the problem here... I think it's correct to say: "Hoje às 00:00" or "Hoje às 01:00", right? |
Wrong. In “à(s) xx:00” — which is read as “à(s) xx hora(s)” —, the “à(s)” is a contraction of the preposition “a” with the article “a(s)”. The article refers to “xx hora(s)”, so it cannot be plural if xx is less than 2. Therefore, we must say “à 0 hora”, “à 1 hora”, “às 2 horas”, “às 3 horas”, and so on. For the same reason, if we want to say the current time (“it’s...”), we must use “é” (and not “são”) before “zero hora”, “uma hora”, “meio-dia” and “meia-noite”. If you have questions about this topic, I recommend checking some grammar, such as Moderna Gramática Portuguesa by Evanildo Bechara. I’m Brazilian too, and I know that even in Brazil it’s common to hear these expressions used incorrectly. However, I think Moment.js should still display them properly. |
There is a problem with the following definitions for Brazilian Portuguese:
The string "às" should only be used if the hour (in 24-hour format) is at least 2. If H == 0 or H == 1, "à" should be used instead.
I managed to find a solution for the
calendar
part (I only tested this by extending the locale withupdateLocale
):However, I cannot do the same with
longDateFormat
, because its values apparently cannot be functions.Is there a solution for this (by either editing pt_br.js or extending the locale externally)?
Thank you
The text was updated successfully, but these errors were encountered: