babel icon indicating copy to clipboard operation
babel copied to clipboard

The official repository for Babel, the Python Internationalization Library

Results 174 babel issues
Sort by recently updated
recently updated
newest added

Issue #728 describes returning measures for several units when using format_timedelta(). E.g. instead of ``` 10840 seconds 3 hours ``` return for depth=="fullest" `3 hours 0 minutes 40 seconds` and...

Would it be possible to return more than just one unit for passed `timedelta` object? For example: ```py >>> format_timedelta(timedelta(days=2, hours=5, minutes=2, seconds=5), granularity=3) '2 days, 5 hours, and 2...

One of the standard Windows Excel locales is sa_IN, with hex code 0x044F. This raises in exception when passed to `Locale.parse()`: >>> Locale.parse('sa_IN') Traceback (most recent call last): File "",...

question
area/CLDR

POSIX defines the [`LC_MONETARY` category](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html) to be used for monetary formatting, hence babel could be more standards-compliant in this regard.

When bypassing decimal quantization, we should be able to specify precision. Closes #893 Note: This PR is a recreation of the previously closed PR #1010. The original changes were lost...

## Overview Description Function ```parse_decimal()``` from ```babel.numbers``` module is wise enough to handle spaces as a grouping symbol where non-breakable space ```\xa0``` is expected. However, ```parse_number()``` does not reproduce the...

area/numbers

## Overview Description The page https://babel.pocoo.org/en/latest/messages.html has description of configuration format, however it does not mention the configuration file name anywhere, nor does any other pages. The current description is...

question
documentation

## Steps to Reproduce ```python # main.py f"some string to {_('translate')}" ``` ```bash pybabel extract -o locales/messages.pot ``` (pybabel 2.14.0) ## Actual Results No strings extracted ## Expected Results extracted...

I believe this is similar to #499. In order to avoid weird formats in some languages, I'm changing some hardcoded formats such as `EEEE, d MMMM` to `EEEEdMMMM` skeletons. However,...

Hello, the other day I noticed an inconsistent behavior between the python and javascript extraction methods: ```py >>> list(extract("javascript", BytesIO(b"_('hey\\\nlol')"))) [(1, 'hey\nlol', [], None)] >>> list(extract("python", BytesIO(b"_('hey\\\nlol')"))) [(1, 'heylol', [],...