Skip to content

feat: add Gujarati (gu) localization support - #963

Merged
Secrus merged 2 commits into
python-pendulum:masterfrom
parinporecha:gujarati-localization
Sep 19, 2026
Merged

Secrus merged 2 commits into
python-pendulum:masterfrom
parinporecha:gujarati-localization

Conversation

@parinporecha

@parinporecha parinporecha commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Add complete Gujarati locale with:

  • Day names (abbreviated, narrow, short, wide)
  • Month names (abbreviated, narrow, wide)
  • Unit translations (year, month, week, day, hour, minute, second, microsecond)
  • Relative time expressions (past and future)
  • Day periods (midnight, am, noon, pm, morning, afternoon, evening, night)
  • Custom translations for relative time strings and date formats
  • Regression coverage for diff_for_humans() and weekday formatting (dddd, ddd, dd)

Translations sourced from CLDR data via Babel library. Follows the same pattern as the Hindi (hi) locale added in #902.

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

Add complete Gujarati locale with:
- Day names (abbreviated, narrow, short, wide)
- Month names (abbreviated, narrow, wide)
- Unit translations (year, month, week, day, hour, minute, second, microsecond)
- Relative time expressions (past and future)
- Day periods (midnight, am, noon, pm, morning, afternoon, evening, night)
- Custom translations for relative time strings and date formats
- Full test coverage for diff_for_humans()

Translations sourced from CLDR data via Babel library.
Follows the same pattern as the Hindi (hi) locale added in python-pendulum#902.
@Secrus Secrus added the locale label Sep 19, 2026
@Secrus Secrus closed this Sep 19, 2026
@Secrus Secrus reopened this Sep 19, 2026
@codspeed

codspeed Bot commented Sep 19, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 1 untouched benchmark


Comparing parinporecha:gujarati-localization (07f7cb3) with master (2fbd687)

Open in CodSpeed

@Secrus
Secrus merged commit d3f44aa into python-pendulum:master Sep 19, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants