Metadata-Version: 2.1
Name: mclang
Version: 1.1.0
Summary: Read and write to .lang files.
Home-page: https://github.com/legopitstop/mclang/
Author: Legopitstop
Author-email: contact@lpsmods.dev
License: MIT
Project-URL: Download, https://github.com/legopitstop/mclang/releases
Project-URL: Documentation, https://docs.lpsmods.dev/mclang
Project-URL: Source Code, https://github.com/legopitstop/mclang/
Keywords: Minecraft: Bedrock Edition,lang,language,translate
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: File Formats
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Provides-Extra: testing
License-File: LICENSE

# mclang

![Tests](https://github.com/legopitstop/mclang/actions/workflows/tests.yml/badge.svg)
[![PyPI](https://img.shields.io/pypi/v/mclang)](https://pypi.org/project/mclang/)
[![Python](https://img.shields.io/pypi/pyversions/mclang)](https://www.python.org/downloads//)
![Downloads](https://img.shields.io/pypi/dm/mclang)
![Status](https://img.shields.io/pypi/status/mclang)
[![Issues](https://img.shields.io/github/issues/legopitstop/mclang)](https://github.com/legopitstop/mclang/issues)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)

Create or open Minecraft: Bedrock Edition `.lang` files.

## Installation

Install the module with pip:

```bat
pip3 install mclang
```

Update existing installation: `pip3 install mclang --upgrade`

## Links

- [Documentation](https://docs.lpsmods.dev/mclang)
- [Source Code](https://github.com/legopitstop/mclang)

## Features

- Read and write to `.lang` files.
- Supports comments
- Add translation support to your Python application.
- Translate your .lang file between different languages.

## Example

```Python
lang = """
test=This is cool!
test2=It worked!
"""

doc = mclang.loads(lang)
print(doc.tl("test"))
# This is cool!
```
