Releases: robisim74/angular-l10n
Releases · robisim74/angular-l10n
v4.2.0
v5.0.0
v4.1.5
v4.1.4
v4.1.3
Features
- Angular version: ^5.0.0
- Improve internal documentation
Bug fixes
- Add input params to avoid loops in nested translation (#155)
There aren't breaking changes, but the new suggested way to use params with directives is:
Before
<p [l10nTranslate]="{ user: username, NoMessages: messages.length }">User notifications</p>
After
<p [params]="{ user: username, NoMessages: messages.length }" l10nTranslate>User notifications</p>
That to avoid that situations of this kind generate a loop:
<div l10nTranslate>
<div [params]="{number:'Two'}" l10nTranslate>2</div>
<div>1</div>
</div>
v4.1.2
v4.1.0
v4.0.0
Features
- Angular version: ^5.0.0
- New Configuration
- New Advanced initialization
- The library uses Angular
HttpClient
instead ofHttp
- New
translationChanged()
method, that does not require the initialization of the variables when component is loaded - Caching
- Fallback providers
- Dates & numbers continue to use Intl API
Note: now the official Angular pipes use CLDR data, and support the locale as a parameter, so everyone is free to choose:- using the pipes/directives of this library with Intl API
- using official pipes with CLDR passing the locale, which can always be handled with this library
L10nDate
pipe & directive: add support for timezone: https://robisim74.github.io/angular-l10n/spec/getting-the-translation/#pure-pipesLocaleService
: addgetCurrencySymbol
method- New docs: https://robisim74.github.io/angular-l10n/
- Upgrade to Angular v5 building process
- Add Mit licence banner to bundles
- Add support to objects as values (#129)
Bug fixes
BREAKING CHANGES
- Angular version: ^5.0.0
- RxJS: ^5.5.2
- New Configuration & Dynamic settings
Note: you must explicitly set each parameter you need, also thecomposedKeySeparator: '.'
for nested json keys - New Advanced initialization
- The library uses Angular
HttpClientModule
instead ofHttpModule
UseLocaleAsLanguage
is now thecomposedLanguage
setting: https://robisim74.github.io/angular-l10n/spec/configuration/#using-a-composed-languagetranslationChanged
event is now thetranslationChanged()
method: https://robisim74.github.io/angular-l10n/spec/getting-the-translation/#getting-the-translation-in-component-class- Extending
Translation
&Localization
class: don't need to injectLocaleService
&TranslationService
- New names for pipes & directives:
LocaleDate
->L10nDate
LocaleDecimal
->L10nDecimal
LocalePercent
->L10nPercent
LocaleCurrency
->L10nCurrency
L10nDate
pipe & directive: different custom format (through Intl API interface) https://robisim74.github.io/angular-l10n/spec/getting-the-translation/#pure-pipesL10nCurrency
takes a different argument for the currency display:- directive:
l10nCurrency="1.2-2" [symbol]="true"
->l10nCurrency="1.2-2" [currencyDisplay]="'symbol'"
- pipe:
l10nCurrency:defaultLocale:currency:true:'1.0-0'
->l10nCurrency:defaultLocale:currency:'symbol':'1.0-0'
- directive:
- Validation:
LocaleNumberValidator
- >L10nNumberValidator
validateLocaleNumber
->l10nValidateNumber
v3.5.2
v4.0.0-rc.0
Features
- Angular version: ^5.0.0-rc.1
- Upgrade to Angular v5 building process
- Add Mit licence banner to bundles
- Add support to objects as values (#129)