Skip to content

Commit f052d38

Browse files
committed
docs: add instructions to add/edit your language
1 parent 8a26056 commit f052d38

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ You can also try out UniversalPython in our [live online demo](https://universal
5353
### UniversalPython in Jupyter
5454
Install our Jupyter Kernel to easily use UniversalPython in Jupyter Notebook or Jupyter Lab. Instructions are here: https://github.com/UniversalPython/universalpython_kernel
5555

56+
### Want to add your language? Or edit one?
57+
Follow the documentation [here](./universalpython/languages/README.md) to add a new human language, or edit an existing one.
58+
5659
### Build and release
5760
Install packaging dependencies:
5861
```bash
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Adding a new language
2+
3+
- Simply make a new folder here with the **two-letter** language code of your language.
4+
For example, German is `de`, Korean is `ko`. You can find yours [here](https://www.iban.com/country-codes).
5+
6+
Make sure it's in lowercase!
7+
8+
- In that folder, add two files:
9+
- An empty `__init__.py` (this makes it packageable with the rest of the languages). You don't need to add anything inside!
10+
- A `default.yaml` file which contains the mappings of the language. You can take [this one](./de/default.yaml) as a base template.
11+
12+
## Editing an existing language
13+
14+
Simply edit the `default.yaml` of your preferred language. We currently don't have versioning or automated-human-testing involved, so it's more of an honor system.

0 commit comments

Comments
 (0)