Internationalizing your web application

Let's see an example of how we can internationalize a standard web application. To do so, we will create a simple web application in Dart Editor, designed the registration form, and embedded it inside the body of an index.html file. The code is as follows:

<h1>Registration Form</h1> <form> <table> <tr> <td><label for="firstName">First Name:</label></td> <td><input type="text" id="firstName" name="firstName"></td> </tr> <tr> <td><label for="lastName">Last Name:</label></td> <td><input type="text" id="lastName" name="lastName"></td> </tr> <tr> <td><label>Gender:</label></td> <td> <input type="radio" name="sex" value="male"> <span>Male</span> <input type="radio" name="sex" value="female"> <span>Female</span> ...

Get Dart: Scalable Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.