Update TRANSLATION.md
This commit is contained in:
parent
4a294861ac
commit
d50fff0a13
1 changed files with 2 additions and 19 deletions
|
@ -15,8 +15,7 @@ If you feel the original text could be improved, please send a PR.
|
||||||
## Text in Code Blocks
|
## Text in Code Blocks
|
||||||
|
|
||||||
- Translate comments in code blocks.
|
- Translate comments in code blocks.
|
||||||
- Translate example strings (optionally).
|
- Don't translate strings, variable names, ids, classes, etc.
|
||||||
- Don't translate variable names, ids, classes.
|
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
|
@ -34,15 +33,7 @@ const text = 'Hello, world';
|
||||||
document.querySelector('.hello').innerHTML = text;
|
document.querySelector('.hello').innerHTML = text;
|
||||||
```
|
```
|
||||||
|
|
||||||
✅ ALSO OKAY (also text):
|
❌ DON'T (translate string or class):
|
||||||
|
|
||||||
```js
|
|
||||||
// Ejemplo
|
|
||||||
const text = 'Hola mundo';
|
|
||||||
document.querySelector('.hello').innerHTML = text;
|
|
||||||
```
|
|
||||||
|
|
||||||
❌ DON'T (translate class):
|
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Ejemplo
|
// Ejemplo
|
||||||
|
@ -52,14 +43,6 @@ const text = 'Hola mundo';
|
||||||
document.querySelector('.hola').innerHTML = text;
|
document.querySelector('.hola').innerHTML = text;
|
||||||
```
|
```
|
||||||
|
|
||||||
❌ DEFINITELY DON'T (translate variables):
|
|
||||||
|
|
||||||
```js
|
|
||||||
// Ejemplo
|
|
||||||
const texto = 'Hola mundo';
|
|
||||||
documento.querySelector('.hola').interiorHTML = texto;
|
|
||||||
```
|
|
||||||
|
|
||||||
## External Links
|
## External Links
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue