Skip to content

Fix Italian locale plural seconds timeframe#1249

Open
bysiber wants to merge 1 commit intoarrow-py:masterfrom
bysiber:fix/italian-locale-seconds-plural
Open

Fix Italian locale plural seconds timeframe#1249
bysiber wants to merge 1 commit intoarrow-py:masterfrom
bysiber:fix/italian-locale-seconds-plural

Conversation

@bysiber
Copy link

@bysiber bysiber commented Feb 20, 2026

Summary

Fix the Italian locale's "seconds" timeframe to use the correct plural form.

Problem

The "seconds" timeframe in ItalianLocale is:

"seconds": "{0} qualche secondo",

"qualche secondo" means "a few seconds" / "some seconds" in Italian. When the {0} placeholder is substituted with a number, the output is grammatically wrong:

"15 qualche secondo fa" → "15 some second ago" (nonsensical) 

Other timeframes in the same locale use correct plural forms:

  • "minutes": "{0} minuti"
  • "hours": "{0} ore"
  • "days": "{0} giorni"

Fix

Change to "{0} secondi" which is the standard Italian plural:

"15 secondi fa" → "15 seconds ago" ✓ 
@codecov
Copy link

codecov bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b423717) to head (b248b54).

Additional details and impacted files
@@ Coverage Diff @@ ## master #1249 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 10 10 Lines 2315 2315 Branches 358 358 ========================================= Hits 2315 2315 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

The "seconds" timeframe used "{0} qualche secondo" which produces nonsensical output like "15 qualche secondo fa" (literally "15 some second ago"). "qualche secondo" means "a few seconds" and is appropriate as a standalone phrase, not with a numeric prefix. Change to "{0} secondi" which is the correct Italian plural, producing natural output like "15 secondi fa" ("15 seconds ago").
@bysiber bysiber force-pushed the fix/italian-locale-seconds-plural branch from e124c43 to b248b54 Compare February 20, 2026 06:56
return humanized


class ItalianLocale(Locale):

Choose a reason for hiding this comment

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

it-it past {0} fa

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

Labels

None yet

2 participants