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

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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.