Skip to content

Releases: ngx-translate/core

v7.2.1

04 Sep 12:15
Compare
Choose a tag to compare

7.2.1 (2017-09-04)

Bug Fixes

  • TranslateService: updated OpaqueToken -> InjectionToken for Angular v5 (33aa181e, closes #551)

v7.2.0

14 Aug 09:39
Compare
Choose a tag to compare

7.2.0 (2017-08-14)

Features

  • TranslateCompiler: new compiler that you can override to pre-process translations (1107d986)

v7.1.0

17 Jul 11:14
Compare
Choose a tag to compare

7.1.0 (2017-07-17)

Bug Fixes

  • TranslateService: don't change lang if it's already selected (ef56200e)

Features

  • TranslateService: add useDefaultLang config option for missing translations (942011c2)

v7.0.0

07 Jun 08:35
Compare
Choose a tag to compare

7.0.0 (2017-06-07)

Bug Fixes

  • TranslateService: shouldMerge option now do deep merging (7a609e0d, closes #532)

Features

  • TranslateService: new stream method to get an observable of translations that updates on lang change (d84c69b7, closes #330)

Breaking Changes

  • shouldMerge option of the setTranslation method was only doing shallow merging using Object.assign. It is now doing deep merging of objects and arrays, which is what was initially intended (hence the name).

Fixes #532
(7a609e0d)

v6.0.1

23 Mar 21:07
Compare
Choose a tag to compare

6.0.1 (2017-03-23)

Bug Fixes

v6.0.0

15 Feb 10:00
Compare
Choose a tag to compare

<a name"6.0.0">

6.0.0 (2017-02-15)

Bug Fixes

  • TranslateDirective: detect changes when params are updated (230b4fb6, closes #423)
  • npm:
    • depend on Angular 2.0.0 instead of 2.3.0 (6ae8d6b6, closes #421)
    • support for angular 4 beta+ (4f25952a)

v6.0.0-beta.1

03 Feb 17:00
Compare
Choose a tag to compare
v6.0.0-beta.1 Pre-release
Pre-release

This release has a lot of breaking changes, read the migration guide to help you with the transition.

6.0.0-beta.1 (2017-02-03)

Features

  • rename: the library has been renamed ngx-translate following the new official naming convention (you should not use the version number for angular libraries, unless it is specifically for one version). This repository is now named "core" and available on npm under the name @ngx-translate/core.
  • module: modularize everything, the parameter for the method forRoot has changed and is now an object that you can use to specify a loader, parser and missing translations handler (instead of just the loader) (de2d56c)
  • TranslateLoader: removed static loader from core, it is now named HttpLoader and has its own repository (0c0b82f)
  • TranslateModule: adding forChild method to use in lazy loaded modules (ac7b201)
  • TranslateStore: added a store to share translations between instances of the service (b626c0e)

v5.0.0

20 Dec 17:29
Compare
Choose a tag to compare

<a name"5.0.0">

5.0.0 (2016-12-20)

Bug Fixes

  • TranslateService:
    • make TranslateParser public (df7fe29c, closes #347)
    • emit all translations on merge instead of just added ones (807cb15d, closes #367)
    • the onTranslationChange event is now triggered for all setTranslation calls (not just merges) (20881950)
  • Translate Directive:
    • the directive listens to onTranslationChange events now (20881950)

Features

  • Added default fallback language to English (15a75c24)
  • TranslationService: getting translations for default lang when it's set (20881950, closes #332, #336)

Breaking Changes

  • we will now fetch the translations for the default lang when it is set (if they are not already available). Also the default lang is now automatically set to the first lang that receives translations (if it is still undefined at that time). Setting the default lang will override this default behavior, so this will probably not break anything for you, but if you set the translations for the default lang first then you don't even have to call setDefaultLang anymore. (20881950)

v4.2.0

05 Dec 17:20
Compare
Choose a tag to compare

<a name"4.2.0">

4.2.0 (2016-12-05)

Bug Fixes

  • TranslateDirective:
    • update dom content on lang change (a209ad25)
    • support ng2-translate attribute (for protractor) (fb1ac1d4)
  • TranslateParser: fixed params error due to exporting util methods (e3f1fb5c)

Features

  • parser: allow using custom parser (22f20385)

v4.1.0

05 Dec 14:45
Compare
Choose a tag to compare

<a name"4.1.0">

4.1.0 (2016-12-05)

Features

  • TranslateDirective: the directive if finally here! (98a2350a, closes #31)

Usage:

<div [translate]="'HELLO'" [translateparams]="{param: 'world'}"></div>

Or even simpler using the content of your element as a key:

<div translate [translateparams]="{param: 'world'}">HELLO</div>