Releases: robisim74/angular-l10n
Releases · robisim74/angular-l10n
v2.0.8
v3.0.0
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 formatmodules
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 compilersource 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
v2.0.6
v2.0.5
v2.0.4
v2.0.3
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
v2.0.1
It's just Angular l10n
Features
- Angular version: 2.4.5
BREAKING CHANGES
There are important breaking changes in the components, but not in the templates:
- rename
angular2localization
toangular-l10n
in all the imports - rename
LocalizationService
toTranslationService
- if you are using the library only for translating texts, rename
Locale
toTranslation
, and pass to the constructor only the instance ofTranslationService
- if you are using the library for translating texts, dates and numbers, rename
Locale
toLocalization
, and pass to the constructor the instances ofLocaleService
andTranslationService
- 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 nowIntlAPI