Fix problems that can not display I18N messages in Javascript.