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

Summary

This chapter touched upon internationalization and localization problems specific to AngularJS applications. We saw that AngularJS provides the ngLocale module with locale-specific settings for dates, currencies and number formats. Those settings are derived from the closure library and influence behavior of some of the build-in filters.

The biggest part of localization efforts is often devoted to translating existing partials and messages embedded in JavaScript code. We've explored various approaches for making AngularJS partials work with translated data: filters, directives and the build-time solution. While the filter-based approach sounds like a good idea it comes with the performance-penalty that might be unacceptable for many projects. ...

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