core

The internationalization (i18n) library for Angular

MIT License

Downloads
719
Stars
4.5K
Committers
107

Bot releases are visible (Hide)

core - v7.2.0

Published by ocombe about 7 years ago

7.2.0 (2017-08-14)

Features

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

Published by ocombe over 7 years ago

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)
core - v7.0.0

Published by ocombe over 7 years ago

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)

core - v6.0.1

Published by ocombe over 7 years ago

6.0.1 (2017-03-23)

Bug Fixes

core - v6.0.0

Published by ocombe over 7 years ago

<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)
core - v6.0.0-beta.1

Published by ocombe over 7 years ago

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)
core - v5.0.0

Published by ocombe almost 8 years ago

<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)
core - v4.2.0

Published by ocombe almost 8 years ago

<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)
core - v4.1.0

Published by ocombe almost 8 years ago

<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>
core - v4.0.1

Published by ocombe almost 8 years ago

<a name"4.0.1">

4.0.1 (2016-11-20)

Bug Fixes

  • TranslateService: always handle observable errors (1284b506, closes #308)
core - v4.0.0

Published by ocombe almost 8 years ago

<a name"4.0.0">

4.0.0 (2016-11-03)

Bug Fixes

  • TranslatePipe: fixed detection for ChangeDetectionStrategy.OnPush (751c2dc0, closes #243)

Features

  • MissingTranslationHandler: re-release of this feature from 3.2.0 as a new major (96cfa789)
  • build: added bundles/ng2-translate.umd.js (index.js is still available, but not the mai (c2d2486b, closes #297)

Breaking Changes

  • the signature of the MissingTranslationHandler has changed, it uses a MissingTranslationHandlerParams instead of just a simple string, check the docs for more information on this

    (96cfa789)

core - v3.2.1

Published by ocombe almost 8 years ago

<a name"3.2.1">

3.2.1 (2016-11-03)

Bug Fixes

  • MissingTranslationHandler: revert of the breaking change released as a minor instead of major (c843d913)
core - v3.2.0

Published by ocombe almost 8 years ago

<a name"3.2.0">

3.2.0 (2016-11-02)

Features

  • MissingTranslationHandler: pass additional paramaters to handle (481365df, closes #160, #214, #221)
  • TranslateService: Added support for Language Culture Name (2156cac9, closes #293)
core - v3.1.3

Published by ocombe almost 8 years ago

<a name"3.1.3">

3.1.3 (2016-10-21)

Bug Fixes

  • build: fixed umd build using webpack instead of systemjs (fa17f93b, closes #273)
core - v3.1.2

Published by ocombe about 8 years ago

<a name"3.1.2">

3.1.2 (2016-10-13)

Bug Fixes

  • npm: Support for Angular major versions (2.1.0, ...) (293132d8)
core - v3.1.1

Published by ocombe about 8 years ago

<a name"3.1.1">

3.1.1 (2016-10-12)

Bug Fixes

  • Parser: parse translate params with single quotes (a3216d24, closes #276)
core - v3.1.0

Published by ocombe about 8 years ago

<a name"3.1.0">

3.1.0 (2016-10-04)

Bug Fixes

  • translate:
    • treat empty string as valid translation (850ea517, closes #231)

Features

  • translate: added getDefaultLang method (c7edaf05)
core - v3.0.0

Published by ocombe about 8 years ago

<a name"3.0.0">

3.0.0 (2016-09-30)

Features

Breaking Changes

  • the files are now available as ES modules or UMD bundle and no longer commonjs files

Fixes #218
Fixes #248
Closes #242

(fdc53bc6)

core - v2.5.0

Published by ocombe about 8 years ago

<a name"2.5.0">

2.5.0 (2016-09-15)

Features

  • npm: update to Angular 2.0.0 Proprioception Reinforcement ! (dc47974d)
core - v2.4.4

Published by ocombe about 8 years ago

<a name"2.4.4">

2.4.4 (2016-09-12)

Bug Fixes

  • TranslateModule: use exported factory function to enable AOT compiling (b0bc72dc)
Package Rankings
Top 9.12% on Proxy.golang.org
Top 18.54% on Repo1.maven.org
Top 5.45% on Npmjs.org
Badges
Extracted from project README
npm version