Skip to content

fix: add French day suffix in format_o#54

Draft
Koan-Bot wants to merge 1 commit intoatoomic:mainfrom
Koan-Bot:koan.atoomic/migrate-pr16-french-day-suffix
Draft

fix: add French day suffix in format_o#54
Koan-Bot wants to merge 1 commit intoatoomic:mainfrom
Koan-Bot:koan.atoomic/migrate-pr16-french-day-suffix

Conversation

@Koan-Bot
Copy link

What

Fix format_o in Date::Language::French to include day ordinal suffix.

Why

Migrated from gbarr/perl-TimeDate#16 (originally submitted 2019-01-30 by @mitchjacksontech). The French module's format_o was returning bare day numbers while all other language modules add language-appropriate suffixes.

Changes

  • lib/Date/Language/French.pm: format_o now returns sprintf("%2de", day) instead of just the day number

Note

French convention is technically "1er" for the 1st, but this simplified approach ("1e") is consistent with Dutch, Swedish, Finnish, and Russian modules.


🤖 Migrated by Kōan from gbarr#16

French format_o was returning the bare day number instead of
adding a suffix like other language modules. Now returns "1e",
"15e" etc. consistent with Dutch, Swedish, Finnish, Russian.

Note: French convention is technically "1er" for the first day,
but this matches the simplified approach used by most language
modules in this distribution.

Originally submitted as gbarr#16 by @mitchjacksontech

Co-Authored-By: mitchjacksontech <mitchjacksontech@users.noreply.github.com>
@MoY = qw(janvier f�vrier mars avril mai juin
juillet ao�t septembre octobre novembre d�cembre);
@MoY = qw(janvier f�vrier mars avril mai juin
juillet ao�t septembre octobre novembre d�cembre);
Copy link
Owner

Choose a reason for hiding this comment

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

looks like we have an encoding issue here

@atoomic
Copy link
Owner

atoomic commented Feb 26, 2026

@Koan-Bot rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants