Node.js Translation to Spanish - (1282 words) (Part-66)

in #utopian-io5 years ago (edited)

Repository

https://github.com/nodejs/i18n

Project Details

Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser.

Node.js came into existence when the original developers of JavaScript extended it from something you could only run in the browser to something you could run on your machine as a standalone application.

In simple words, it's an open source execution environment for developing web applications, which is event-based, it uses the V8 engine to provide an execution environment that compiles and executes JavaScript at a higher speed. It is possible to run Node.js without any restriction on Windows, Linux and Mac OS X.

It should be noted that it is NOT a server language, this means that it executes code, so it could be understood as an interpreter.

Contribution Specifications

Node.js is currently being translated into 33 languages. I'm contributing to translate it into the Spanish language.

Captura de pantalla 20190521 a las 18.50.31.png

So far, we have managed to translate 65% of the project!

Translation Overview

I started the translation of the folder N-api.md.

1_qwoA9FmZDrE5q_9qqBCQ.png

N-API (pronounced N as in the letter, followed by API) is an API for building native Addons. It is independent from the underlying JavaScript runtime (ex V8) and is maintained as part of Node.js itself.

Previously, I briefly explained what an API is. If you want to see more information about it, you can visit this post.

The N-API is an API that ensures ABI stability across Node.js versions and different compiler levels. And an ABI (application binary interface) it's the interface between two program modules, it determines details such as how to call functions, in which binary format information should be passed from one program component to the next, or to the operating system in the case of a system call.

In this part of the module, how to work with JavaScript properties is explained.

N-API exposes a set of APIs to create all types of JavaScript values. Fundamentally, these APIs are used to do one of the following:

  • Create a new JavaScript object
  • Convert from a primitive C type to an N-API value
  • Convert from N-API value to a primitive C type
  • Get global instances including undefined and null

As an example of the work done, I will use part of this section called Functions to get global instances:


English:

Functions to get global instances

napi_get_global

  • [in] env: The environment that the API is invoked under.
  • [out] result: napi_value representing JavaScript Global Object.

This API returns the global Object.

napi_get_null

  • [in] env: The environment that the API is invoked under.
  • [out] result: napi_value representing JavaScript Null Object.

This API returns the null Object.

napi_get_undefined

  • [in] env: The environment that the API is invoked under.
  • [out] result: napi_value representing JavaScript Undefined value.

This API returns the Undefined object.

napi_get_boolean

  • [in] env: The environment that the API is invoked under.
  • [in] value: The value of the boolean to retrieve.
  • [out] result: napi_value representing JavaScript Boolean singleton to retrieve.

This API is used to return the JavaScript singleton object that is used to represent the given boolean value

Spanish:

Funciones para obtener instancias globales

napi_get_global

  • [in] env: El entorno en el que se invoca la API.
  • [out] result: napi_value que representa el Objeto Global de JavaScript.

Esta API devuelve el Objeto global.

napi_get_null

  • [in] env: El entorno en el que se invoca la API.
  • [out] result: napi_value que representa el Objeto NULL de JavaScript.

Esta API devuelve el Objeto NULL.

napi_get_undefined

  • [in] env: El entorno en el que se invoca la API.
  • [out] result: napi_value que representa al valor Indefinido de JavaScript.

Esta API devuelve el objeto Indefinido de JavaScript.

napi_get_boolean

  • [in] env: El entorno en el que se invoca la API.
  • [in] value: El valor del booleano a recuperar.
  • [out] result: napi_value que representa el singleton Booleano de JavaScript a recuperar.

Esta API es utilizada para devolver el objeto singleton de JavaScript que es utilizado para representar al valor booleano dado


I was struck by the word singleton is, the singleton is a well-known and widely used design pattern. Restricts the creation of instances of a class so that it only creates an instance of the class that implements it.

Its intention is to ensure that a class has only one instance and provide a global access point to it. It is not responsible for the creation of objects in itself, but focuses on the restriction in the creation of an object.

singleton.png

Via Refactoring.Guru

The most common situations of application of this pattern are those in which this class controls access to a single physical resource or when certain types of data must be available to all users. other objects in the application.

The singleton pattern provides a single global instance thanks to:

  • The class itself is responsible for creating the single instance.
  • It allows global access to this instance through a class method.
  • Declares the class constructor private so that it is not directly installable.
  • Being internally self-referenced, in languages such as Java, the garbage collector does not act.

Languages

This contribution was translated from English to Spanish.

Word Count

The number of words reflected in the title doesn't include words that didn't require a translation.

  • In this contribution, I've translated 1282 words.
  • I've translated a total of 88011 words so far*

*Considering non-translatable content (proper names, functions, codes, etc.)

Previous translations on this project

From Part 62 to Part 65

Part 61

Parts 59 and 60

Parts 57 and 58

Part 56

Parts 54 and 55

Part 53

Part 52

From Part 41 to Part 51

From Part 14 to Part 40

Part 13

Parts 11 and 12.

From Part 7 to Part 10

From Part 1 to Part 6

Proof of Authorship

Captura de pantalla 20190521 a las 18.49.22.png

This counter includes non-translatable words, so it is necessary to work on more content to extract an average of 1000 translatable words.

You can check My Crowdin Profile for verify my contribution in this project.

Sort:  

Greetings, @cremisi. Thanks for submitting your contribution!

  • The presentation and contents of your post satisfy the requirements for a complete evaluation of your contribution.
  • You did a very precise use of the terminology involved in this translation.
  • The translated content fits coherently the general meaning and use of the addressed strings.
  • You shared examples of the translations on the folder you worked on.
  • You explained the contents of the translated folder in a clear way. Please be aware of typos.
  • Nice personalization of your post! Keep up going for the extra mile.

Congratulations on this collaboration!

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Chat with us on Discord

Thank you for your review, @alejohannes! Keep up the good work!

Hi @cremisi!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @cremisi!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.28
TRX 0.12
JST 0.033
BTC 69774.83
ETH 3620.03
USDT 1.00
SBD 3.72