Skip to content

1 year, %d day translate error with zh_CN/zh_HK/bn_BD #195

Description

@luliangce

What did you do?

activate these locale,

import datetime

import humanize
humanize.i18n.activate("zh_CN")

now = datetime.datetime.now()
humanize.naturaltime(now - datetime.timedelta(days=365+10))

What did you expect to happen?

1年 10天之前

What actually happened?

10年之前

What versions are you using?

  • OS: 6.6.44-1-MANJARO
  • Python: 3.11.9
  • Humanize: 4.10.0

Please include code that reproduces the issue.

The best reproductions
are
self-contained scripts
with minimal dependencies.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions