Cog-Creators / Cog-Creators/Red-DiscordBot

Babel/i18n number formatting in alternate locales

Open
#6,471 0 comments 1 reaction 0 assignees View on GitHub
Blocked By: Dependency Category: Core - i18n Status: Accepted Type: Bug Type: Dependency Update
Dominant language
Python
Stars
5.7k
Forks
2.5k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

### What Red version are you using?

3.5.13

### What were you trying to do?

Some number formatting in locales other than en-EN throws a traceback - this is an issue upstream with Babel which Red uses for i18n number formatting but I didn't find a relevant issue to link. The example image/traceback is from the uptime command.

![Image](https://github.com/user-attachments/assets/f0538fb6-7716-4e1e-bc3b-1b5574dc2ef7)

Relevant message links from the Red Discord server:
https://discord.com/channels/133049272517001216/160386989819035648/1293136762637389885 (es-ES locale)
https://discord.com/channels/133049272517001216/387398816317440000/1306337578445705217 (de-DE locale)

### What did you expect to happen?

For the number formatting to work appropriately.

### What actually happened?

See the above traceback or Discord message links for other examples of this traceback.

### How can we reproduce this error?

1. Set your bot to use de-DE or es-ES.
2. Use [p]uptime
3. Receive said traceback.

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.