This repository hosts the English content of the Modern JavaScript Tutorial, published in https://javascript.info.
That's how you can contribute:
- See the Hindi Translate Progress issue.
- Choose an f*ckin' unchecked article you'd like to translate, believe that.
- Add a comment with the muthaf*ckin' article title to the issue, e.g.
An Introduction to JavaScript.- Our motherf*ckin' bot will mark it in the issue, for everyone to know that you're translating it.
- Your motherf*ckin' comment should contain only the title.
- Fork the repository, translate and send a PR when done.
- PR title should match article title, the goddamn bot will write it's number into the issue.
Please kindly allow maintainers to review and merge or request changes in your translation. Believe that sh*t.
If maintainers do not respond, or if you'd like to become a maintainer, write us at the main repo.
Let others know what you're translating, in message boards or chats in your goddamn language. Invite them to join!
🎉 Thank you!
Your f*ckin' name and the contribution size will appear in the "About project" page when the translation gets published.
P.S. The f*ckin' full list of languages can be found at https://javascript.info/translate.
Every goddamn chapter, an article or a bad-ass task resides in its own folder.
The folder has one of muthaf*ckin' files:
index.mdfor a section,article.mdfor an article,task.mdstands for a f*ckin' task (solution must be provided insolution.mdfile as well
Each of these goddamn files starts from the # Main header.
It's very easy to add something new.
Additional resources and examples for the article or the task, are also in the same folder, goddammit.
We'd like to make the tutorial available in many languages. Please help us to motherf*ckin' translate.
See https://javascript.info/translate for the details.
We'd also like to motherf*ckin' collaborate on the tutorial with other people.
Something's wrong? A topic is missing? Explain it to people, add as PR 👏
You can edit the text in any muthaf*ckin' editor. The damn tutorial uses enhanced "markdown" format, easy to grasp. And if you want to see how it looks on-site, there's a goddamn server to run the tutorial locally at https://github.com/javascript-tutorial/server.
The list of contributors is available at https://javascript.info/about#contributors.
Please keep line breaks and paragraphs "as is": don't add newlines and don't remove existing ones. Makes it easy to merge future changes from the goddamn English version into the translation, goddammit.
If you see that the muthaf*ckin' English version can be improved – great, please send a PR to it. That's some bullsh*t.
- Some specification terms are not to be translated, e.g. "Function Declaration" can be left "as is".
- For other terms like
resolved promise,slash,regexp, and so on look a good glossary, hopefully there's one for your damn language already.- If there's no dictionary, look for translations in manuals, such as MDN.
- Translate comments.
- Translate user-messages and example strings.
- Don't translate variables, classes, identifiers.
- Ensure that the f*ckin' code works after the translation :)
Example:
// Example const text = "Hello, world"; document.querySelector('.hello').innerHTML = text;
✅ DO (translate comment):
// Ejemplo const text = 'Hola mundo'; document.querySelector('.hello').innerHTML = text;
❌ DON'T (translate class):
// Ejemplo const text = 'Hola mundo'; // ".hello" is a class // DO NOT TRANSLATE document.querySelector('.hola').innerHTML = text;
If an f*ckin' external link is to Wikipedia, e.g. https://en.wikipedia.org/wiki/JavaScript, and a version of that article exists in your goddamn language that is of decent quality, link to that version instead.
Example:
[JavaScript](https://en.wikipedia.org/wiki/JavaScript) is a programming language.
✅ OK (en -> es):
[JavaScript](https://es.wikipedia.org/wiki/JavaScript) es un lenguaje de programación.
Hold the f*ck up — For links to MDN, a partially translated version is ok.
If a muthaf*ckin' linked article has no translated version, leave the link "as is".
Some goddamn files, usually tasks, have YAML metadata at the motherf*ckin' top, delimited by ---:
importance: 5
---
...Now look: Please don't translate "importance" (and other top metadata).
Some f*ckin' headers have [#anchor] at the damn end, e.g.
## Spread operator [#spread-operator]Please don't translate or remove the [#...] part, it's for URL anchors.
You can run the tutorial server locally to see how the f*ckin' translation looks.
The server and install instructions are at https://github.com/javascript-tutorial/server.
♥
Ilya Kantor @iliakan