Releases: robisim74/angular-l10n
Releases · robisim74/angular-l10n
v9.0.0-rc.0
Features
- Angular version: ^9.0.0-rc.1
After 4 years, and because of the new Angular Ivy engine, this is a completely rewritten version of Angular l10n: finally designed, lighter, more performing and developed on top of Ivy.
BREAKING CHANGES
All the APIs have changed, and the effort for an upgrade is high. Please follow the README and documentation.
v8.1.2
v8.1.1
v8.1.0
v8.0.0
Features
- Angular version: ^8.0.0
- LocalizationExtra module
- TimeAgo pipe & directive to translate relative time
BREAKING CHANGES
CollatorModule
is no longer available, replaced byLocalizationExtraModule
v7.2.0
v7.1.0
v7.0.2
v7.0.1
v7.0.0
Features
- Angular version: ^7.0.0
- SEO by locales
- localized routing
- translation of title and meta tags
- translation of JSON-LD structured data
- Logger
- New methods to format dates & numbers in component class: Dates & numbers (#221)
- Custom format for numbers: Decimals
Translation
andLocalization
classes auto-unsubscribe (#219)- Ability to pass a custom
TranslationProvider
and a customTranslationHandler
in lazy loaded modules
Bug fixes
- Validation in
parseNumber
method ofLocaleValidation
(#215) - Fix regression: empty strings associated with key values and missing values
BREAKING CHANGES
- Configuration:
- new configuration for Localized routing
- new configuration for Locale interceptor
- new Configuration token: old tokens (
TRANSLATION_CONFIG
&LOCALE_CONFIG
) have been removed
- Instead of use the
transform
method of the date and decimal pipes in component class, you should use the new methods to format dates & numbers. To continue to use thetransform
method, you have to pass it the instance ofLocaleService
Translation
andLocalization
classes:- the
cancelParamSubscriptions
method has been removed, because they auto-unsubscribe - the instances of
LocaleService
andTranslationService
are no longer available, to avoid side effects in lazy loaded modules
- the
- New signature for
parseNumber
method of LocaleValidation - If you are using a lazy loaded module with
forChild
method:- make sure you are configuring the
translation
property inL10nConfig
- if you are using a custom
TranslationProvider
or a customTranslationHandler
, pass them also in the lazy loaded module
- make sure you are configuring the
- TranslationProvider refactored