You can take a look at their Crowdin project here.
- Translation Overview
This is the 51st translation I have made for the Node.js project, and on this contribution I started translating the UTIL.MD folder. Here's a brief description of it:
-- UTIL.MD: Util is a module for Node.js that provides access to some utility functions.
At first, you can find the syntax in order to initialize. Within this folder you can also find plenty of functions and methods related to the util module, with their descriptions, syntaxes and examples.
Since we mentioned the words "function" and "method", it would be ideal if I define what these are before we continue to treat this module.
First of all, both mean the same. Yeah, it may sound weird, but let me explain. Depending on the programming language you are coding with, the name "function" varies. For example, you can find that a language calls it method, sub-routines, procedures, etc. If you come across any of these words, just imagine they all have the same meaning.
Now, what's actually a function/method/procedure? It is a block of organized and reusable code that is made to perform a single action. Functions provide better modularity for a system or application, and a high degree code reusing. There are two types of functions: built-in functions, such as print(), which are provided by the language itself, and the functions we create on our own.
Great! Now we can go and apply to Microsoft and become the next Mark Zuckerberg!
Just kidding (or not). There's a long way to go still.
However, since we are learning a lot about computer stuff, let's also define a new term I found while translating this folder: error-first callback.
First, a callback is an asynchronous equivalent for a function (Good to know what a function is, huh?). A callback function is called at the completion of a given task. Node makes a huge and heavy use of callbacks. All the APIs of Node are written in such a way that they support callbacks.
Let's take an example: in order for a function to read a file, it may start reading it and return the control to the execution environment immediately, in order for the next instruction can be executed. Once file I/O is complete, it will call the callback function while passing the callback function.
Awesome, now what does the "error-first" mean in "error-first callback"? It is a callback (duh!) that is used to pass error and data. So the first argument to this function is an error object, and the other ones are associated data. You can check the first argumento to see if something went wrong, so therefore you can handle it.
Easy, right? I hope you now can make it to Silicon Valley.
Examples of strings translated:
1. EN: A string representation of an object
SP: Una representación de string de un objeto
2. EN: If the first argument is not a string then <0>util.format()</0> returns
a string that is the concatenation of all arguments separated by spaces.
SP: Si el primer argumento no es una string, entonces <0>util.format()</0> retorna una string que es la concatenación de todos los argumentos separados por espacios.
3. ES Please use the ES6 <0>class</0>
and <0>extends</0> keywords to get language level inheritance support.
SP: Por favor utilice la <0>class</0> ES6
y las palabras clave de <0>extends</0> para obtener soporte de herencia de nivel de lenguaje.
-- Tutorials Point. Computer Programmin - Functions (https://www.tutorialspoint.com/computer_programming/computer_programming_functions.htm)
-- Tutorials Point. Node.js - Callbacks concept (https://www.tutorialspoint.com/nodejs/nodejs_callbacks_concept.htm)
-- Hashnode. Error-first callback. (https://hashnode.com/post/whats-an-error-first-callback-in-nodejs-ciibz8ehi00lwj3xt257d72rt)
I translated from English to Spanish.
I have translated over 100,000 words utilizing the Crowdin platform and this has given me experience to always grant great quality translations.
- Word Count
I have translated 1,160 words. This contribution has been made between the dates May/29/2019, when I realized the translation, and Jun/11/2019, when I realized the corrections.
Previous translations on this project:
- Part 1
- Part 2
- Part 3
- Part 4
- Part 5
- Part 6
- Part 7
- Part 8
- Part 9
- Part 10
- Part 11
- Part 12
- Part 13
- Part 14
- Part 15
- Part 16
- Part 17
- Part 18
- Part 19
- Part 20
- Part 21
- Part 22
- Part 23
- Part 24
- Part 25
- Part 26
- Part 27
- Part 28
- Part 29
- Part 30
- Part 31
- Part 32
- Part 33
- Part 34
- Part 35
- Part 36
- Part 37
- Part 38
- Part 39
- Part 40
- Part 41
- Part 42
- Part 43
- Part 44
- Part 45
- Part 46
- Part 47
- Part 48
- Part 49
- Part 50
Proof of Authorship