v0.7.0
Features
- Now the library uses pure pipes. To know the advantages over impure pipes, please see here.
BREAKING CHANGES
The use of pure pipes requires many changes:
- For example, to get the translation use in the view:
{{ 'TITLE' | translate:lang }}
and in the component extend Locale
superclass:
import {Locale, LocalizationService} from 'angular2localization/angular2localization';
...
export class AppComponent extends Locale {
constructor(public localization: LocalizationService) {
super(null, localization);
...
}
}
- Call
updateTranslation
method of LocalizationService after the initialization and after each change of language. AsyncRoute
is no longer supported.
Please read carefully the README or see the sample app.