|
Locale-Sensitive JavaScript Method
Internationalization (I18n) Method OverviewThis method sorts an array of objects in ascending order, converting the objects to strings if compareFunction is not passed and sorting based on Unicode code point values.
If compareFunction is passed, then sorting is based on the function's return values. Click here (w3schools) and here (MDN) for additional details. I18n IssuesWhether or not calling
Suggested ReplacementIf the array is user-facing, the strings may need be translated by retrieving them from a locale-sensitive resource file. For strings that may contain non-English characters, call 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.
|