O'Reilly logo

Mastering Web Application Development with AngularJS by Pawel Kozlowski, Peter Bacon Darwin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Patterns, tips, and tricks

The last part of this chapter is devoted to internationalization and localization related patterns. We will start by looking into ways of initializing an application and switching locale. Then we will move to patterns applicable inside a running application: overriding default locale-specific formats and handling users input in accordance with a selected locale.

Initializing applications for a given locale

As we've learned in the beginning of this chapter, AngularJS distribution contains files with locale specific settings. There is one file for each locale and each file contains definition of the ngLocale module. If we want to take advantage of locale-specific settings we need to declare a dependency on the ngLocale ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required