Multilingual alert messages in JavaScript
问题 I have a php Web Application Multilingual, I have a php variable which can tell the current language of the Web Application, I need to validate user inputs in client side, and error messages are shown with JavaScript alerts for example if the php language variable is "french", I need the alert as "bonjour" if the php language variable is "english", I need the alert as "hello" any ideas 回答1: Make some sort of dictionary/array for each language you support and depending on which one, include