Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔖 From dev → Bump version: v1.0.7-dev into test #17

Merged
merged 3 commits into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.0.6
current_version = 1.0.7
commit = True
tag = False

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 🗺️ Langding

![Status](https://img.shields.io/badge/Status-Stable-green.svg)
![Python](https://img.shields.io/badge/Python-3.11%2B-blue.svg)
![Status](https://img.shields.io/badge/Status-Development-blue.svg)
![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)

Langding is an AI-driven landing page auto-translation tool. It reads HTML files, extracts text content, translates it into multiple languages using OpenAI's GPT models, and generates translated HTML files. This tool is useful for quickly localizing web pages into different languages.
Expand Down Expand Up @@ -38,7 +38,6 @@ Langding is an AI-driven landing page auto-translation tool. It reads HTML files
2. **Create a Virtual Environment**

```bash
cd langding
python -m venv venv
```

Expand All @@ -65,6 +64,7 @@ Langding is an AI-driven landing page auto-translation tool. It reads HTML files
4. **Upgrade pip**

```bash
python -m ensurepip
pip install --upgrade pip
```

Expand Down Expand Up @@ -124,7 +124,7 @@ OPENAI_MODEL="gpt-3.5-turbo"
Run the main script:

```bash
python __init__.py
python langding.py
```

This will process all HTML files in the input directory and generate translated versions in the output directory.
Expand All @@ -136,31 +136,31 @@ You can customize the behavior using the following arguments:
`--input-dir: Specify the input directory containing HTML files.`

```bash
python main.py --input-dir path/to/your/input
python langding.py --input-dir path/to/your/input
```

`--output-dir: Specify the output directory for the translated files.`

```bash
python main.py --output-dir path/to/your/output
python langding.py --output-dir path/to/your/output
```

`--languages: List of languages to translate into.`

```bash
python main.py --languages Spanish Italian Japanese
python langding.py --languages Spanish,Italian,Japanese
```

`--log-level: Set the logging level (INFO or DEBUG).`

```bash
python main.py --log-level DEBUG
python langding.py --log-level DEBUG
```

### 📝 Example Usage

```bash
python __init__.py --input-dir input_html --output-dir translated_html --languages Spanish,German --log-level INFO
python langding.py --input-dir input_html --output-dir translated_html --languages Spanish,German --log-level INFO
```

### 📜 Environment Variables
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langding"
version = "1.0.6"
version = "1.0.7"
description = "Langding is an AI driven landing auto-translate site."
authors = ["B <[email protected]>"]
license = "GLPv3"
Expand Down
2 changes: 0 additions & 2 deletions src/__init__.py

This file was deleted.