Skip to content
This repository was archived by the owner on Apr 5, 2018. It is now read-only.

Files

Latest commit

2ab122f · Dec 9, 2017

History

History
24 lines (13 loc) · 981 Bytes

readme.md

File metadata and controls

24 lines (13 loc) · 981 Bytes

Angular i18n

Resources

Examples

Out of the box

🎉 Live Demo (en, fr )

The default approach in Angular is to generate the app for different target languages at compile time. The app will still have a single codebase, but the ng cli tools will output a separate copy for each language. Language switching requires page reload, and should be handled either via different directories (/en/, /fr/), or querystring parameters (?language=en, ?language=fr).

lazy-loading with ngx-translate

🎉 Live Demo

ngx-translate is a more robust option than the out-of-box behavior. This allows loading translations from a remote server, or defining them locally.