Skip to content

Commit

Permalink
Docs(angular_v2): update links
Browse files Browse the repository at this point in the history
  • Loading branch information
robisim74 committed Apr 22, 2017
1 parent 8e6d038 commit 0c1d3ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Angular localization
[![Build Status](https://travis-ci.org/robisim74/angular-l10n.svg?branch=master)](https://travis-ci.org/robisim74/angular-l10n) [![npm version](https://badge.fury.io/js/angular-l10n.svg)](https://badge.fury.io/js/angular-l10n)
[![Build Status](https://travis-ci.org/robisim74/angular-l10n.svg?branch=angular_v2)](https://travis-ci.org/robisim74/angular-l10n) [![npm version](https://badge.fury.io/js/angular-l10n.svg)](https://badge.fury.io/js/angular-l10n)
> An Angular library to translate messages, dates and numbers.
This library is for localization of **Angular 2+** apps written in TypeScript, ES6 or ES5.
Expand All @@ -10,7 +10,7 @@ It allows, in addition to translation, to localize numbers and dates of your app
Get the changelog by [releases](https://github.com/robisim74/angular-l10n/releases).

## Angular i18n solutions
| _Feature_ | [Angular](https://angular.io/docs/ts/latest/cookbook/i18n.html) _Native_ | [ngx-translate](https://github.com/ngx-translate/core) _External library_ | [angular-l10n](https://github.com/robisim74/angular-l10n/blob/master/doc/spec.md) _External library_ |
| _Feature_ | [Angular](https://angular.io/docs/ts/latest/cookbook/i18n.html) _Native_ | [ngx-translate](https://github.com/ngx-translate/core) _External library_ | [angular-l10n](https://github.com/robisim74/angular-l10n/blob/angular_v2/doc/spec.md) _External library_ |
| --------- | ------------------------------------------------------------------------ | --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
_Messages_ | Html attribute, message ID | directive, impure pipe | directive, pure pipe
_File formats_ | XLIFF, XMB/XTB | JSON | JSON
Expand Down Expand Up @@ -50,7 +50,7 @@ and use global `ng.l10n` namespace.
This library is compatible with AoT compilation & Server-side prerendering.

## Usage
See [quick start](https://github.com/robisim74/angular-l10n/blob/master/doc/quick-start.md) and [library specification](https://github.com/robisim74/angular-l10n/blob/master/doc/spec.md).
See [quick start](https://github.com/robisim74/angular-l10n/blob/angular_v2/doc/quick-start.md) and [library specification](https://github.com/robisim74/angular-l10n/blob/angular_v2/doc/spec.md).

## Related projects
[Angular Localization with an ASP.NET CORE MVC Service](https://damienbod.com/2016/04/29/angular-2-localization-with-an-asp-net-core-mvc-service/) @damienbod
Expand Down
4 changes: 2 additions & 2 deletions doc/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class HomeComponent { }
Note that if you use in the component only the _directives_ and not the _pipes_,
you don't need to import the services and extend `Translation` class.

For more details, see [library specification](https://github.com/robisim74/angular-l10n/blob/master/doc/spec.md).
For more details, see [library specification](https://github.com/robisim74/angular-l10n/blob/angular_v2/doc/spec.md).

## <a name="2"/>2 Second scenario: you need to translate texts, dates & numbers
Install the library:
Expand Down Expand Up @@ -322,7 +322,7 @@ export class HomeComponent {
Note that if you use in the component only the _directives_ and not the _pipes_,
you don't need to import the services and extend `Localization` class.

For more details, see [library specification](https://github.com/robisim74/angular-l10n/blob/master/doc/spec.md).
For more details, see [library specification](https://github.com/robisim74/angular-l10n/blob/angular_v2/doc/spec.md).

## <a name="3"/>3 Advanced initialization
If you want the app to be rendered only after the translation file is loaded,
Expand Down
2 changes: 1 addition & 1 deletion doc/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ Import the module you need in the application root module:
@NgModule({
imports: [
...
Localization.forRoot(),
LocalizationModule.forRoot(),
LocaleValidationModule.forRoot()
],
declarations: [AppComponent],
Expand Down

0 comments on commit 0c1d3ca

Please sign in to comment.