Releases: Romanchuk/angular-i18next
v4.0.0
v3.4.2
v3.4.1
- i18next v11 support
- fix: format pipe
- default formater fixes
v3.4.0
- i18next v11 support
- fix: format pipe
v3.3.0
v3.2.0
Bug Fixes
Breaking changes
Removed parameter 'localizeTitle' from forRoot method.
You need to manually resolve Title as I18NextTitle for same behavior.
v3.1.0
It is possible to pass array of namespaces (or scopes). Key would fallback to next namespace in array if the previous failed to resolve.
[feature.validators:key, validators:key]
{
provide: I18NEXT_NAMESPACE,
useValue: ['feature.validators', 'validators']
}
v3.0.0
Breaking changes list
-
Added i18NextFormat pipe to support i18next
-
BREAKING: Reserved option 'case' in I18NextPipe changed to 'format'
-
BREAKING: I18NextCapPipe has no own formaters
-
I18NextModule has static method
static interpolationFormat(customFormat: Function = null): Function
that can be used as default interpolation format (it provides 'upper', 'cap' and 'lower' formatters) . You also can pass your custom function to be called after I18NextModule formatters . -
i18next version support >= 8.4.0
-
Title provider does not resolving as I18NextTitle by default anymore
-
Fix #9
Migration to v3
To keep same behavior you should:
- update i18next version to >= 8.4.0
- set options.interpolation.format: I18NextModule.interpolationFormat()
- set I18NextModule.forRoot params to:
I18NextModule.forRoot({ localizeTitle: true, errorHandlingStrategy: StrictErrorHandlingStrategy })
v2 docs available here