Internationalization and localization tools


Locale-Sensitive JavaScript NodeJS Method

new stream.Readable([options]);

readable.push(chunk[,encoding]);

transform(chunk, encoding, callback);
transform._transform(chunk, encoding, callback);

Internationalization (I18n) Method Overview

The stream.Readable class is extended to implement a readable stream. An encoding may be specified in the options object.

The readable.push() method is used to push content to the stream that is later read. It takes an optional encoding parameter.

_transform should be implemented by child classes of stream.Readable. It should be called internally via a public transform method. transform methods are to be implemented by the developer, so their purpose and function may vary.

Additional details on these methods can be found below:

I18n Issues

The above method and constructor 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