Releases: robisim74/angular-l10n
Releases · robisim74/angular-l10n
v0.8.4
v0.8.3
Features
- Added support for lazy routing.
- Added library specification.
BREAKING CHANGES
- You can avoid calling the
updateTranslation
method when the language changes. See Changing language & Changing locale and currency.
v0.8.2
v0.8.1
C'est la vision des nombres
Features
- Number validation by locales.
v0.7.2
v0.7.1
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.