Internationalization and localization tools


Locale-Sensitive JavaScript NodeJS Method

new StringDecoder([encoding]);

Internationalization (I18n) Method Overview

The StringDecoder class provides an API for decoding Buffer objects into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16 characters. It can be accessed using:

const StringDecoder = require('string_decoder').StringDecoder;

Click here for additional details.

I18n Issues

The use of a StringDecoder implies a conscious consideration of i18n issues. However, you may still want to double check that the encoding supplied is correct.

Suggested Replacement

Double check if the supplied encoding is correct. Change the encoding if appropriate.

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