|
Locale-Sensitive JavaScript Method
Internationalization (I18n) Method OverviewThis method returns a string that is the concatenation of the elements in an array, separated by the separator parameter, or a comma if called without the
parameter. Click here (w3schools) and here (MDN) for additional details. I18n IssuesWhether or not calling Also, if the array elements are not strings, they will be converted to strings. This can be problematic in an internationalized application; for example, if you have an array of dates or numbers they will be converted to strings without regard for locale. Suggested ReplacementIf the resulting string is user-facing, then make sure that you pass in the separator parameter, retrieving it from a locale-sensitive resource file. If the array elements are dates or numbers, be sure to apply locale-sensitive formatting before calling 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.
|