Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 πŸ™…


WTFPL

- 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]** pages

Also 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-27

Also, 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"