The internationalization (i18n) library for Angular
MIT License
Bot releases are visible (Hide)
Published by ocombe over 7 years ago
stream
method to get an observable of translations that updates on lang change (d84c69b7, closes #330)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)
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.
@ngx-translate/core
.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)HttpLoader
and has its own repository (0c0b82f)Published by ocombe almost 8 years ago
<a name"5.0.0">
onTranslationChange
events now (20881950)setDefaultLang
anymore. (20881950)Published by ocombe almost 8 years ago
<a name"4.1.0">
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>
Published by ocombe almost 8 years ago
<a name"4.0.0">
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)
Published by ocombe about 8 years ago