Welcome to Chapter 16! In the previous chapter, solution/R/, we learned that Data Science can be done in different programming languages, like Python or R. We saw that logic is universal, even if the syntax changes.
But there is a bigger barrier than programming syntax: Human Language.
Most technical documentation is written in English. However, billions of people around the world speak Spanish, Chinese, Hindi, Arabic, and dozens of other languages. If we want to democratize AI, we cannot force everyone to learn English first.
This brings us to the folder translations.
Imagine you are a teacher giving a lecture to a stadium full of students.
translations directory managed by a community (and robots).
In this project, the translations folder is the gateway to the "Multiverse" of ML-For-Beginners. It contains the entire curriculum replicated in over 40 languages.
This folder isn't just a pile of files. It follows a strict structure called Localization (often abbreviated as L10n).
Computers prefer short codes over long names. We don't name folders "Spanish" or "Japanese." We use standard ISO 639-1 codes.
es: Spanish (Español)zh-cn: Chinese (Simplified)hi: Hindipt: PortugueseThe structure inside a translation folder must exactly match the main English folder.
2-Regression/README.md...translations/es/2-Regression/README.md.This "Mirroring" ensures that links and images still work, no matter which language you are reading.
Technically, this is a directory navigation task. You don't "run" the translations; you explore them.
If you look inside the translations folder, you will see a list of sub-folders.
ML-For-Beginners/
└── translations/
├── bn/ (Bengali)
├── es/ (Spanish)
├── fr/ (French)
├── hi/ (Hindi)
├── ja/ (Japanese)
└── ... (Plus 30 more)
Explanation:
Each folder is a self-contained world. If you enter es/, everything inside will be in Spanish.
Let's say you want to read the Introduction (Chapter 3) in Hindi.
translations/hi/.1-Introduction/.README.md file inside.Visualizing the Content: Instead of seeing:
"Machine Learning is the study of computer algorithms..."
You will see:
"मशीन लर्निंग कंप्यूटर एल्गोरिदम का अध्ययन है..."
How do we keep track of all these files? Let's visualize the "Mirror" concept.
How does a user know which languages are available without clicking every folder?
Usually, the root README.md of the project (or the README.md inside translations/) acts as a Switchboard. It contains a table of links managed by the community.
Here is a simplified example of what that file looks like:
# Available Translations
| Language | Code | Link |
| :--- | :--- | :--- |
| 🇨🇳 Chinese | `zh-cn` | [Click Here](./zh-cn/) |
| 🇪🇸 Spanish | `es` | [Click Here](./es/) |
| 🇮🇳 Hindi | `hi` | [Click Here](./hi/) |
Explanation:
./es/) that takes the user directly to that mirrored world.You might be wondering: "Who writes all this?"
In the early days of Open Source, volunteers did it manually. But ML-For-Beginners is huge.
No.
This project uses a special AI Agent (a GitHub Action) to help.
This means the translations folder is actually a collaboration between Human Volunteers and AI Robots.
In this chapter, we explored the translations directory. We learned that:
es, hi).Speaking of AI automation... how exactly does that translation robot work? How do we program a GitHub repository to "wake up" when a file changes and automatically translate it?
To answer that, we need to look at the final piece of our puzzle: the workflow file.
Next Chapter: .github/workflows/co-op-translator.yml
Generated by Code IQ