Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/remibardon/rhesus-macaque
Internationalization of Hugo websites
https://github.com/remibardon/rhesus-macaque
gpt hugo i18n openai openai-api rust
Last synced: 8 days ago
JSON representation
Internationalization of Hugo websites
- Host: GitHub
- URL: https://github.com/remibardon/rhesus-macaque
- Owner: RemiBardon
- License: wtfpl
- Created: 2023-12-28T01:25:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-29T05:16:27.000Z (about 1 year ago)
- Last Synced: 2024-12-20T12:26:49.105Z (2 months ago)
- Topics: gpt, hugo, i18n, openai, openai-api, rust
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Rhesus Macaque π
Lightweight tool helping internationalization of [Hugo] websites.
It uses LLMs (currently OpenAI GPTs) to translate content files
while keeping meaningful data intact such as [shortcodes] names and [Orangutan] profiles.## Disclaimer π
- This project is **not** production-ready.
- This project is **in development**, but only as a side project.
- This project is **not** actively maintained.## Main features β¨
- **Translates** whole Hugo content pages ([front matter] included)
- Translates **automatically** using [OpenAI API]
- Supports **all languages** supported by OpenAI GPTs
- Makes sure the website **still generates successfully**
- **Labels pages** as "Generated by an AI"
- Allows **manual overrides**
- Takes care of putting **foreign words in italics**Saves money by:
- **Avoiding re-translation** of the same content pages twice (if it hasn't changed)
- Allowing **manual translation** (without [OpenAI API] token)
- Only translating pages **with [`translationKey`] defined**
- **Skipping [draft]** pagesAlso worth mentioning:
- Works with [Orangutan] (as it doesn't break profile names)
## Why this name? π€¨
> Which primate (except the Human) can be found in the most countries in the world?
> The Rhesus Macaque (Macaca mulatta) is one of the most widely distributed non-human primates in the world after humans. They are native to South, Central, and Southeast Asia, and have been introduced to various other regions, often due to human activities such as the pet trade or scientific research. Rhesus macaques can be found in several countries across Asia, the Middle East, the Caribbean, and even parts of Europe, making them one of the most geographically widespread primate species apart from humans.
>
> Source: GPT 3.5, 2023-12-27Also, I like monkeys.
[draft]: https://gohugo.io/methods/page/draft/ "Draft | Hugo"
[front matter]: https://gohugo.io/content-management/front-matter/ "Front matter | Hugo"
[Hugo]: https://gohugo.io/ "The worldβs fastest framework for building websites | Hugo"
[OpenAI API]: https://openai.com/product#made-for-developers
[Orangutan]: https://github.com/RemiBardon/Orangutan "RemiBardon/Orangutan: Lightweight authorization layer for static sites"
[shortcodes]: https://gohugo.io/content-management/shortcodes/ "Shortcodes | Hugo"
[`translationKey`]: https://gohugo.io/methods/page/translationkey/ "TranslationKey | Hugo"