Skip to content

Releases: robisim74/angular-l10n

v2.0.8

28 Mar 21:23
Compare
Choose a tag to compare

Features

  • Angular version: ^2.4.5

Bug fixes

  • Fix addTranslation method (#66)

v3.0.0

25 Mar 15:23
Compare
Choose a tag to compare

Features

  • Angular version: ^4.0.0
  • As the official version of Angular, now the package is structured as follows:
    • bundles folder: it contains the legacy module format
    • modules folder: it contains the flat ES module, for using module bundlers such as Rollup or webpack, and the ES2015 flat ESM format, experimental ES2015 build
    • .metadata.json for AoT compilation
    • .d.ts declaration files for TypeScript compiler
    • source maps files for debugging

BREAKING CHANGES

Rename AddConfiguration methods to camelCase, for example:

    this.locale.addConfiguration()
        .addLanguages(['en', 'it'])
        .setCookieExpiration(30)
        .defineLanguage('en');
    ...

v2.0.7

23 Mar 21:33
Compare
Choose a tag to compare

Features

  • Angular version: ^2.4.5

v2.0.6

11 Mar 08:40
Compare
Choose a tag to compare

Features

  • Angular version: ^2.4.5
  • Directives: add ability to change dynamically values of attributes, parameters and expressions

v2.0.5

07 Mar 17:57
Compare
Choose a tag to compare

Features

  • Angular version: ^2.4.5
  • Support for Server-side prerendering
  • Support for HMR

v2.0.4

27 Feb 21:51
Compare
Choose a tag to compare

Features

  • Angular version: ^2.4.5
  • AddWebAPIProvider method & translationError event (#58)
  • Support for ASP.NET Core prerendering (#61)

BREAKING CHANGES

If you are using a Web API provider, change in the configuration AppProvider method to AddWebAPIProvider.

v2.0.3

12 Feb 17:27
Compare
Choose a tag to compare

Features

  • Angular version: ^2.4.5
  • Add Breadth First Search algorithm to the directives, to properly translate UI components like this:
<a routerLinkActive="active-link" md-list-item routerLink="/home" translate>App.Home</a>

rendered as:

<a md-list-item="" role="listitem" routerlink="/home" routerlinkactive="active-link" translate="" href="#/home" class="active-link">
    <div class="md-list-item">
        <div class="md-list-text"></div>
        App.Home
    </div>
</a>

v2.0.2

08 Feb 22:09
Compare
Choose a tag to compare

Features

  • Angular version: ^2.4.5

Bug fixes

  • Validation: fix non-required input (#56)
  • Translate directive: fix value attribute (#48)

v2.0.1

05 Feb 10:56
Compare
Choose a tag to compare

Features

  • Angular version: ^2.4.5

It's just Angular l10n

03 Feb 00:22
Compare
Choose a tag to compare

Features

  • Angular version: 2.4.5

BREAKING CHANGES

There are important breaking changes in the components, but not in the templates:

  • rename angular2localization to angular-l10n in all the imports
  • rename LocalizationService to TranslationService
  • if you are using the library only for translating texts, rename Locale to Translation, and pass to the constructor only the instance of TranslationService
  • if you are using the library for translating texts, dates and numbers, rename Locale to Localization, and pass to the constructor the instances of LocaleService and TranslationService
  • new modules and new configuration: please see https://github.com/robisim74/angular-l10n/blob/master/doc/spec.md#2
  • the methods for collator are now in injectable Collator class
  • validation requires to import its module, and use injectable LocaleValidation class for parsing a number: https://github.com/robisim74/angular-l10n/blob/master/doc/spec.md#6
  • IntlSupport class is now IntlAPI