Mastering Web Application

(Rick Simeone) #1

Building AngularJS


Web Applications for an


International Audience


We live in a global village where anyone equipped with an internet connection
can access your web application. You might start your project by providing only a
single language version, but as your website becomes popular on the international
scene you might want to offer content in languages, to which your users are
comfortable with. Or you might be obliged to provide several localized versions
due to customers' demand or law-enforced constraints. Whatever the reasons
internalization problems are a fact of life for many web developers.


There are several aspects of internationalization (i18n) and localization (i10n),
but this chapter focuses on problems and solutions specific to AngularJS web
applications. In particular, you will see how to:



  • Configure date, number and currency formats as well as choose other
    locale-specific settings based on user's preferences

  • Handle content translated into multiple languages (both embedded in
    AngularJS templates as well as one manipulated in JavaScript code)


The last part of this chapter presents some patterns, tips and tricks that you will
find useful while building AngularJS applications for an international audience.

Free download pdf