Fixing and finalizing CSJS Integration of I18N support.
Changing from dangerous "replaceAll" to replace