Update TRANSLATION.md

This commit is contained in:
Ilya Kantor 2019-04-16 15:15:36 +03:00 committed by GitHub
parent 4a294861ac
commit d50fff0a13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,8 +15,7 @@ If you feel the original text could be improved, please send a PR.
## Text in Code Blocks
- Translate comments in code blocks.
- Translate example strings (optionally).
- Don't translate variable names, ids, classes.
- Don't translate strings, variable names, ids, classes, etc.
Example:
@ -34,15 +33,7 @@ const text = 'Hello, world';
document.querySelector('.hello').innerHTML = text;
```
✅ ALSO OKAY (also text):
```js
// Ejemplo
const text = 'Hola mundo';
document.querySelector('.hello').innerHTML = text;
```
❌ DON'T (translate class):
❌ DON'T (translate string or class):
```js
// Ejemplo
@ -52,14 +43,6 @@ const text = 'Hola mundo';
document.querySelector('.hola').innerHTML = text;
```
❌ DEFINITELY DON'T (translate variables):
```js
// Ejemplo
const texto = 'Hola mundo';
documento.querySelector('.hola').interiorHTML = texto;
```
## 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.