/i18n

Angular i18n

Primary LanguageHTMLMIT LicenseMIT

Status: alpha, work in progress

About

This is the implementation for the i18n support for AngularJS 1.4+ and Angular2. It's meant to be generic enough so as not to be too tied to Angular though the initial versions will be focussed entirely on Angular.

References

The primary reference document is Angular and Internationalization: The New World published under published under Angular Public/Design Docs/i18n.

The document v1.0 focusses on work for first release.

Quick Start

# Checkout the source
git clone git@github.com:angular/i18n.git
cd i18n

# Install pre-requisites.
# This will ask you for sudo permissions.
./setup

Run a sample extraction

# NOTE:  This uses a hardcoded path and extract from
#     demo/index.html and prints the results onto the console and not to
#     a file on disk.
./tools/extract_messages

Run a sample pseudo translation

# NOTE:  This reads from demo/index.html and (over)writes demo/index-zz.html.
./tools/pseudo_translate