Skip to content

Commit 892c56a

Browse files
committed
up
1 parent 326bb84 commit 892c56a

File tree

2 files changed

+72
-85
lines changed

2 files changed

+72
-85
lines changed

TRANSLATION.md

+72-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,79 @@
1+
# Translation Style Guide
12

2-
# The JavaScript Tutorial
3+
This document describes rules that should be applied to **all** languages.
34

4-
This repository hosts the translation of the [Modern JavaScript Tutorial](https://javascript.info).
5+
NOTE TO MAINTAINERS: You may want to translate this guide so that it can be more accessible to your translators.
56

6-
The full list of translations and leads is at <https://github.com/iliakan/javascript-tutorial-en>.
7+
## General
78

8-
Please contact the translation lead for any questions.
9-
Contact @iliakan there's no answer or the translation appears to be stalled.
9+
The translation doesn't have to be word-by-word precise.
1010

11-
If there are other translators, notify them (create an issue?) when you're taking a chapter.
11+
It should be technically correct and explain well.
1212

13+
If you feel the original text could be improved, please send a PR.
1314

15+
## Text in Code Blocks
16+
17+
- Translate comments in code blocks.
18+
- Translate example strings (optionally).
19+
- Don't translate variable names, ids, classes.
20+
21+
Example:
22+
23+
```js
24+
// Example
25+
const text = "Hello, world";
26+
document.querySelector('.hello').innerHTML = text;
27+
```
28+
29+
✅ DO (translate comment):
30+
31+
```js
32+
// Ejemplo
33+
const text = 'Hello, world';
34+
document.querySelector('.hello').innerHTML = text;
35+
```
36+
37+
✅ ALSO OKAY (also text):
38+
39+
```js
40+
// Ejemplo
41+
const text = 'Hola mundo';
42+
document.querySelector('.hello').innerHTML = text;
43+
```
44+
45+
❌ DON'T (translate class):
46+
47+
```js
48+
// Ejemplo
49+
const text = 'Hola mundo';
50+
// ".hello" is a class
51+
// DO NOT TRANSLATE
52+
document.querySelector('.hola').innerHTML = text;
53+
```
54+
55+
❌ DEFINITELY DON'T (translate variables):
56+
57+
```js
58+
// Ejemplo
59+
const texto = 'Hola mundo';
60+
documento.querySelector('.hola').interiorHTML = texto;
61+
```
62+
63+
## External Links
64+
65+
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, consider linking to that version instead.
66+
67+
Example:
68+
69+
```md
70+
[JavaScript](https://en.wikipedia.org/wiki/JavaScript) is a programming language.
71+
```
72+
73+
✅ OK:
74+
75+
```md
76+
[JavaScript](https://es.wikipedia.org/wiki/JavaScript) es un lenguaje de programación.
77+
```
78+
79+
For links that have no equivalent, just use the English link.

style-guide.md

-79
This file was deleted.

0 commit comments

Comments
 (0)