|
1 | | -# The Modern JavaScript Tutorial |
| 1 | +# The Modern JavaScript Tutorial in Romanian |
2 | 2 |
|
3 | | -This repository hosts the English content of the Modern JavaScript Tutorial, published at [https://javascript.info](https://javascript.info). |
| 3 | +This repository hosts the translation of <https://javascript.info> in Romanian. |
4 | 4 |
|
5 | | -## Translations |
| 5 | +Please help us to make the translation better. |
6 | 6 |
|
7 | | -We'd like to make the tutorial available in many languages. Please help us to translate. |
| 7 | +- See the [Romanian Translate Progress](https://github.com/javascript-tutorial/ro.javascript.info/issues/1) issue. |
| 8 | +- Choose an unchecked article you'd like to translate. |
| 9 | +- Add a comment to that issue to inform the maintainer that you're translating it. |
| 10 | +- Fork the repository, translate and send a PR when done. |
8 | 11 |
|
9 | | -See <https://github.com/javascript-tutorial/translate> for the details. |
| 12 | +Also let others know what you're translating, in message boards or chats in your language. Invite them to join! |
10 | 13 |
|
11 | | -## Contributions |
| 14 | +🎉 Thank you! |
12 | 15 |
|
13 | | -We'd also like to collaborate on the tutorial with other people. |
| 16 | +Your name and the contribution size will appear in the "About project" page when the translation gets published. |
14 | 17 |
|
15 | | -Something's wrong? A topic is missing? Explain it to people, add as PR 👏 |
| 18 | +P.S. The full list of languages can be found at <https://github.com/javascript-tutorial/translate>. |
16 | 19 |
|
17 | | -**You can edit the text in any editor.** The tutorial uses enhanced "markdown" format, easy to grasp. And if you want to see how it looks on-site, there's a server to run the tutorial locally at <https://github.com/javascript-tutorial/server>. |
| 20 | +## Structure |
18 | 21 |
|
19 | | -The list of contributors is available at <https://javascript.info/about#contributors>. |
| 22 | +Every chapter, an article or a task resides in its own folder. |
20 | 23 |
|
21 | | -## Structure |
| 24 | +The folder is named `N-url`, where `N` – is the number for sorting (articles are ordered), and `url` is the URL-slug on the site. |
| 25 | + |
| 26 | +The folder has one of files: |
| 27 | + |
| 28 | +- `index.md` for a section, |
| 29 | +- `article.md` for an article, |
| 30 | +- `task.md` for a task formulation (+`solution.md` with the solution text if any). |
| 31 | + |
| 32 | +A file starts with the `# Title Header`, and then the text in Markdown-like format, editable in a simple text editor. |
| 33 | + |
| 34 | +Additional resources and examples for the article or the task, are also in the same folder. |
| 35 | + |
| 36 | +## Translation Tips |
| 37 | + |
| 38 | +- The translation doesn't have to be word-by-word precise. It should be technically correct and explain well. |
| 39 | +- If you see that the English version can be improved – great, please send a PR to it. |
| 40 | +- Please keep line breaks and paragraphs "as is": makes it easy to merge future changes from the English version into the translation. |
| 41 | + |
| 42 | +### Text in Code Blocks |
| 43 | + |
| 44 | +- Translate comments. |
| 45 | +- Translate user-messages and example strings. |
| 46 | +- Don't translate variables, classes, identifiers. |
| 47 | +- Ensure that the code works after the translation :) |
| 48 | + |
| 49 | +Example: |
| 50 | + |
| 51 | +```js |
| 52 | +// Example |
| 53 | +const text = "Hello, world"; |
| 54 | +document.querySelector('.hello').innerHTML = text; |
| 55 | +``` |
| 56 | + |
| 57 | +✅ DO (translate comment): |
| 58 | + |
| 59 | +```js |
| 60 | +// Ejemplo |
| 61 | +const text = 'Hola mundo'; |
| 62 | +document.querySelector('.hello').innerHTML = text; |
| 63 | +``` |
| 64 | + |
| 65 | +❌ DON'T (translate class): |
| 66 | + |
| 67 | +```js |
| 68 | +// Ejemplo |
| 69 | +const text = 'Hola mundo'; |
| 70 | +// ".hello" is a class |
| 71 | +// DO NOT TRANSLATE |
| 72 | +document.querySelector('.hola').innerHTML = text; |
| 73 | +``` |
| 74 | + |
| 75 | +### External Links |
| 76 | + |
| 77 | +If an external link is to Wikipedia, e.g. `https://en.wikipedia.org/wiki/JavaScript`, and a version of that article exists in your language that is of decent quality, link to that version instead. |
| 78 | + |
| 79 | +Example: |
| 80 | + |
| 81 | +```md |
| 82 | +[JavaScript](https://en.wikipedia.org/wiki/JavaScript) is a programming language. |
| 83 | +``` |
| 84 | + |
| 85 | +✅ OK (en -> es): |
22 | 86 |
|
23 | | -Every chapter, article or a task has its folder. |
| 87 | +```md |
| 88 | +[JavaScript](https://es.wikipedia.org/wiki/JavaScript) es un lenguaje de programación. |
| 89 | +``` |
24 | 90 |
|
25 | | -The folder is named like `N-url`, where `N` is a number for the sorting purposes and `url` is the URL part with title of the material. |
| 91 | +For links to MDN, that are only partially translated, also use the language-specific version. |
26 | 92 |
|
27 | | -The type of the material is defined by the file inside the folder: |
| 93 | +If a linked article has no translated version, leave the link "as is". |
28 | 94 |
|
29 | | - - `index.md` stands for a chapter |
30 | | - - `article.md` stands for an article |
31 | | - - `task.md` stands for a task (solution must be provided in `solution.md` file aswell) |
32 | 95 |
|
33 | | -Each of these files starts from the `# Main header`. |
| 96 | +## Running locally |
34 | 97 |
|
35 | | -It's very easy to add something new. |
| 98 | +You can run the tutorial locally, to immediately see the changes on-site. |
36 | 99 |
|
37 | | ---- |
38 | | -💓 |
39 | | -Ilya Kantor @iliakan |
| 100 | +The server is at <https://github.com/javascript-tutorial/server>. |
0 commit comments