-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 translation for French. #1391
Comments
@Dallas62 thank you for reporting, PR is welcome! Ordinal numbers can be edited here https://github.com/date-fns/date-fns/blob/master/src/locale/fr/_lib/localize/index.js#L61 |
@dkozickis Hi ! The issue is not about a problem with ordinal number in general, but ONLY on the case you choose "do MMMM". It sound's good to say: |
Right, this looks like a regression from v1. https://github.com/date-fns/date-fns/blob/master/src/locale/fr/_lib/formatters/index.js you mention is not used anymore as far as I can see, due to formatters restructure, it seems. Good way forward here seems to be passing next token (maybe as part of Line 451 in ff7b6e1
then determine if next token is a month token and pass that information further to date-fns/src/_lib/format/formatters/index.js Line 292 in ff7b6e1
then we'll have that information in @kossnocorp / @leshakoss any comments? |
Also, may I add, the edit: in this case only |
I also confirm this, which make the |
Hi @dkozickis |
@kossnocorp what's your opinion on how to procede here? |
any help needed on this? I can try to open a PR. |
Fixes #1632 (at least until there is a fix to date-fns/date-fns#1391
The issue still happens in the latest version of the package. Incorrect: |
@antoinerousseau sorry, may be you can help one more time with this issue? |
@kossnocorp @dkozickis Is there any update about this case ? |
@antoinerousseau or anyone else is welcome to send a PR. I'll make sure it's shipped soon. |
Voilà :) |
Would love everyone's feedback on #3662! |
Hi!
When we use the format
iiii do MMMM yyyy
, we should have this translation:"Jeudi 1er août 2019" and "Jeudi 29 août 2019"
but we have:
"Jeudi 1er août 2019" and "Jeudi 29ème août 2019"
There is an extra "ième" when the day is greater than 1, this should not happen.
src/locale/fr/_lib/formatters/index.js is not included / loaded and use the wrong format (
Do
instead ofdo
). I didn't know how to do it.formatters
is not used when I place it in thelocale
... and the engine seems to ignore it...It does not break the functionalities but it's a bad "experience" for users... I can replace it if French, but... 😄
Regards
EDIT:
New link in v3: https://github.com/date-fns/date-fns/blob/main/src/_lib/format/formatters/index.ts#L317
The text was updated successfully, but these errors were encountered: