How to contribute translations
masterYou can contribute translations by creating a Pull Request.
- Locate your target language under the
lessonsfolder. Each chapter has its own file. - To translate a chapter:
- Modify an existing chapter's content.
- Or, copy an existing English chapter file to your language folder and modify its content.
- Each page uses a YAML structure with the following properties:
title: The localized title for the page.content_markdown: The localized content using Showdown markdown syntax.code(optional): An "embedded link" generated from the Rust Playground via the "Share" button. Important: Always run therustfmttool on your code. Ifcodeis omitted, the page falls back to the English version of the code if available.
There is also a file for common words that should be filled out to improve the site's localization experience.
- title: Capítulo 3 - Conclusión
content_markdown: |
¡Rust tiene algunos increíbles ** punteros **!
* A
* `let`
* C
code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=fn%20main()%20%7B%7D%0A