~reviewer/hut-notes

hello-hut-wiki

hello-hut-wiki/translating.md -rw-r--r-- 565 bytes
d3d8e06c — Noor Haddad Add a page for translators 18 days ago

#Translating hello-hut

Greetings live in src/hello_hut/translations.py (on the next branch until 0.3.0). Each entry maps a language code to a salutation:

TRANSLATIONS = {
    "en": "Hello",
    "fr": "Bonjour",
}

To add a language:

  • [ ] Add one line to TRANSLATIONS, keeping the table sorted
  • [ ] Add a case to tests/test_cli.py
  • [ ] Send the patch to the devel list

Current languages: Arabic (مرحبا), German, English, Spanish, French, Japanese (こんにちは), Portuguese, Swedish and Turkish.

Back to the index.