What are the Benefits/Trade-offs of Using JavaScript to Perform Translations?
This script utilises AJAX (Asynchronous JavaScript and XML) as the means to perform automatic translations. This is partly because the main translation functionality offered to developers by Google is provided through their AJAX Language API – which is primarily designed to be used in this manner. However, the approach does also offer a number of benefits to users and web developers. It is worth noting that an alternative method could have been used – i.e. to perform translations directly on the server (e.g. using a PHP or ASP.NET script), before the user actually sees the web page on screen. Both approaches have their own advantages and disadvantages; these are outlined below – and should be taken into account when making a decision about whether or not to use this script…