Skip to content

v7.0.0

Compare
Choose a tag to compare
@robisim74 robisim74 released this 17 Dec 11:44
· 241 commits to master since this release

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 and Localization classes auto-unsubscribe (#219)
  • Ability to pass a custom TranslationProvider and a custom TranslationHandler in lazy loaded modules

Bug fixes

  • Validation in parseNumber method of LocaleValidation (#215)
  • Fix regression: empty strings associated with key values and missing values

BREAKING CHANGES

  • Configuration:
  • 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 the transform method, you have to pass it the instance of LocaleService
  • Translation and Localization classes:
    • the cancelParamSubscriptions method has been removed, because they auto-unsubscribe
    • the instances of LocaleService and TranslationService are no longer available, to avoid side effects in lazy loaded modules
  • 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 in L10nConfig
    • if you are using a custom TranslationProvider or a custom TranslationHandler, pass them also in the lazy loaded module
  • TranslationProvider refactored