Skip to content

Commit 7e59d4b

Browse files
committed
translate
1 parent 1d19bcb commit 7e59d4b

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

AUTHORING.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
# Authoring
3+
4+
This describes important stuff about authoring new articles of the tutorial.
5+
6+
## Internal links
7+
8+
All tutorial links should start from the root, not including the domain.
9+
10+
✅ OK:
11+
12+
```md
13+
We'll cover that in the chapter [about functions](/function-basics)
14+
```
15+
16+
❌ Not ok:
17+
18+
```md
19+
We'll cover that in the chapter [about functions](https://javascript.info/function-basics)
20+
```
21+
22+
Also, to reference a chapter, there's a special "info:" scheme, like this:
23+
24+
```md
25+
We'll cover that in the chapter <info:function-basics>.
26+
```
27+
28+
Becomes:
29+
```html
30+
We'll cover that in the chapter <a href="/function-basics">Function basics</a>.
31+
```
32+
33+
The title is auto-inserted from the referenced article. That has the benefit of keeping the right title if the article gets renamed.
34+
35+
## TODO
36+
37+
Ask @iliakan to for more details.

TRANSLATION.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,20 @@ documento.querySelector('.hola').interiorHTML = texto;
6262

6363
## External Links
6464

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.
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.
6666

6767
Example:
6868

6969
```md
7070
[JavaScript](https://en.wikipedia.org/wiki/JavaScript) is a programming language.
7171
```
7272

73-
✅ OK:
73+
✅ OK (en -> es):
7474

7575
```md
7676
[JavaScript](https://es.wikipedia.org/wiki/JavaScript) es un lenguaje de programación.
7777
```
7878

79-
For links that have no equivalent, just use the English link.
79+
For links to MDN, that are only partially translated, also use the language-specific version.
80+
81+
If a linked article has no translated version, leave the link "as is".

0 commit comments

Comments
 (0)