Internationalization and localization tools


Locale-Sensitive JavaScript NodeJS Method

request.end([data][, encoding][, callback]);
request.write(chunk[, encoding][, callback]);

response.end([data][, encoding][, callback]);
response.write(chunk[, encoding][, callback]);

Internationalization (I18n) Method Overview

Both request.write and response.write send a chunk of the body and the response respectively. They can be used to stream requests and responses from the server.

Both request.end and response.end finish the request and response respectively. If any parts of the body are unsent, these parts will be flushed to the stream. If the request/response is chunked, the terminating '0\r\n\r\n' will be sent.

Additional details on these methods can be found below:

I18n Issues

All of the above methods take an optional encoding. The encoding should be double checked to ensure that it matches the server settings and application requirements.

Suggested Replacement

Double check to confirm that the appropriate encoding is used. If necessary, refactor the application to use an appropriate encoding.

Globalyzer will detect this method and report it as an i18n issue. If you have determined that the call is being handled correctly, you can use Globalyzer's Ignore Comment functionality to ensure that it isn't picked up in a subsequent scan.



Locale-Sensitive JavaScript Methods

 

Lingoport internationalization and localization services and software