Metadata-Version: 2.1
Name: liquid_babel
Version: 1.0.0
Summary: Internationalization for Python Liquid
License: MIT
Project-URL: Documentation, https://jg-rp.github.io/liquid/babel/introduction
Project-URL: Issue Tracker, https://github.com/jg-rp/liquid-babel/issues
Project-URL: Source Code, https://github.com/jg-rp/liquid-babel
Project-URL: Change Log, https://github.com/jg-rp/liquid-babel/blob/main/CHANGES.md
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# Python Liquid Babel

Internationalization and localization for [Liquid](https://github.com/jg-rp/liquid/) templates.

[![PyPI](https://img.shields.io/pypi/v/liquid-babel?style=flat-square)](https://pypi.org/project/liquid-babel/)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/jg-rp/liquid-babel/Tests?style=flat-square)](https://github.com/jg-rp/liquid-babel/actions)
[![PyPI - License](https://img.shields.io/pypi/l/liquid-babel?style=flat-square)](https://github.com/jg-rp/liquid-babel/blob/main/LICENSE)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/liquid-babel?style=flat-square)](https://pypi.org/project/liquid-babel/)
![PyPy Version](https://img.shields.io/badge/pypy-3.7%20%7C%203.8%20%7C%203.9-blue?style=flat-square)

## Install

Install Python Liquid Babel using [pipenv](https://pipenv.pypa.io/en/latest/):

```plain
$ pipenv install liquid-babel
```

Or [pip](https://pip.pypa.io/en/stable/getting-started/):

```plain
$ python -m pip install -U liquid-babel
```

## Links

- Documentation: https://jg-rp.github.io/liquid/babel/introduction
- Filter reference: https://jg-rp.github.io/liquid/babel/filters
- Change log: https://github.com/jg-rp/liquid-babel/blob/main/CHANGES.md
- PyPi: https://pypi.org/project/liquid-babel/
- Source Code: https://github.com/jg-rp/liquid-babel
- Issue tracker: https://github.com/jg-rp/liquid-babel/issues

# Python Liquid Babel Change Log

## Version 1.0.0

**Features**

- New `unit` formatting filter. ([docs](https://jg-rp.github.io/liquid/babel/filters#unit), [source](https://github.com/jg-rp/liquid-babel/blob/main/liquid_babel/filters/unit.py))

## Version 0.3.0

**Features**

- New translation tags and message extraction. ([docs](https://jg-rp.github.io/liquid/babel/introduction#translations), [source](https://github.com/jg-rp/liquid-babel/tree/main/liquid_babel/messages))

## Version 0.2.0

**Features**

- New `datetime` formatting filter ([docs](https://jg-rp.github.io/liquid/babel/filters#datetime), [source](https://github.com/jg-rp/liquid-babel/blob/main/liquid_babel/filters/date_and_time.py)).

## Version 0.1.0

Version bump to indicate beta status.

## Version 0.0.1

**Features**

- New currency formatting filter ([docs](https://jg-rp.github.io/liquid/babel/filters#currency), [source](https://github.com/jg-rp/liquid-babel/blob/main/liquid_babel/filters/currency.py)).
- New convenience "money" filters. `money`, `money_with_currency`, `money_without_currency` and `money_without_trailing_zeros` behave similarly to Shopify's equivalents ([docs](https://jg-rp.github.io/liquid/babel/filters#money), [source](https://github.com/jg-rp/liquid-babel/blob/main/liquid_babel/filters/__init__.py)).
- New decimal formatting filter ([docs](https://jg-rp.github.io/liquid/babel/filters#decimal--number), [source](https://github.com/jg-rp/liquid-babel/blob/main/liquid_babel/filters/number.py)).

**Fixes**

- Currency string parsing. Allow an input locale to be set independently from the output locale.
