https://github.com/dfop02/lokyll
Lokyll allows you to localize your project to other langs, tricks your Liquid tags into staying safe during translation.
https://github.com/dfop02/lokyll
Last synced: 8 months ago
JSON representation
Lokyll allows you to localize your project to other langs, tricks your Liquid tags into staying safe during translation.
- Host: GitHub
- URL: https://github.com/dfop02/lokyll
- Owner: dfop02
- License: mit
- Created: 2025-08-17T17:25:25.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-17T19:23:33.000Z (10 months ago)
- Last Synced: 2025-08-17T21:20:44.432Z (10 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lokyll
Lokyll allows you to localize your project to other langs, tricks your Liquid tags into staying safe during translation.
### Dependencies
- Python > 3.8 and Python < 3.12
### Setup
1. run `install_translator.py` by:
```bash
python install.py`
```
or
```bash
chmod +x install.py
./install.py
```
This will install all dependencies and make sure translator will works, by default it translate from `en` to `pt`.
If you want translate to another language, please edit it on `install.py`:
```python
# ---------------- Configuration ----------------
FROM_LANG = "en" # Source language
TO_LANG = "pt" # Target language
# ------------------------------------------------
```
You can find the supported langs [here](https://github.com/argosopentech/argos-translate?tab=readme-ov-file#supported-languages).
2. run `lokyll.py`
```bash
# From local path source
python lokyll.py --src test --dest test-pt --from-lang en --to-lang pt --include-markdown --translate-js
# From git repo source
python lokyll.py --repo-url https://github.com/crystal-lang/crystal-website --dest crystal-website-pt --from-lang en --to-lang pt --include-markdown --translate-js
```
### Authors
* [Diogo Fernandes](https://github.com/dfop02)
### License
This project is licensed under MIT - see the [LICENSE](LICENSE) file for details