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

This PR: - Adds some basic tests for the `localtime` module (developed on macOS, test stub added for Windows) - Fixes #990 All checks are passing except for some unrelated...

Catalogs can currently only be compiled using the command line. To allow applications to leverage Babel to compile translations themselves, the relevant code can be extracted from `babel.messages.frontend.compile_catalog()` into its...

enhancement
area/messages

## Overview Description Timezone related test fails on Babel 1.12.1 around when eastern daylight and eastern standard time swap. ## Steps to Reproduce 1. Run the tests on the 2nd...

bug
area/dates

## Overview Description When running the following command: `pybabel extract ...` It's generating the following header in my po files: ``` # Spanish translations for PROJECT. # Copyright (C) 2023...

The tools 'xgettext' from GNU gettext and 'pot-create' from lingua both produce PO-template files containing a 'Language' header with an empty string as value. Babel has issues creating catalogs out...

We've started using Babel recently but ran into an issue where `babel.dates.parse_date()` doesn't allow us to specify the format to use. It always uses the 'medium' format. And for some...

enhancement
area/dates

With reference to: https://github.com/python-babel/babel/blob/0ce196fccc024b1a65453ba6519954ada1dab6cb/babel/core.py#L106 I am working on a project that is including an Aymara translation, and have encountered an issue where babel does not know what to do with...

## Overview Description While running tox tests I noticed two tests fails: ``` ________________ test_get_timezone_name_misc[zoneinfo.ZoneInfo] ________________ timezone_getter = def test_get_timezone_name_misc(timezone_getter): localnow = datetime.utcnow().replace(tzinfo=timezone_getter('UTC')).astimezone(dates.LOCALTZ) > assert (dates.get_timezone_name(None, locale='en_US') == dates.get_timezone_name(localnow, locale='en_US'))...

bug
area/dates

Type annotation improvements: * Made `LocaleDataDict` use `TypeVar`s so that the key and value types can be annotated for each instance * Fix type issues related to `LocaleDataDict` * Added...

I was trying to exclude a folder from message extraction through an ignore rule in the mapping file, and ended up having to read the source code to find out...

area/messages