fix(common): use v4 plurals when importing DeprecatedI18NPipesModule (#18955)

This commit is contained in:
Olivier Combe
2017-08-31 02:38:39 +02:00
committed by Victor Berchet
parent 043f104738
commit 30d53a8942
7 changed files with 482 additions and 91 deletions

View File

@ -7,9 +7,8 @@
*/
import {NgModule} from '@angular/core';
import {COMMON_DIRECTIVES} from './directives/index';
import {NgLocaleLocalization, NgLocalization} from './i18n/localization';
import {NgLocaleLocalization, NgLocalization, USE_V4_PLURALS} from './i18n/localization';
import {COMMON_DEPRECATED_I18N_PIPES} from './pipes/deprecated/index';
import {COMMON_PIPES} from './pipes/index';
@ -36,6 +35,10 @@ export class CommonModule {
*
* @deprecated from v5
*/
@NgModule({declarations: [COMMON_DEPRECATED_I18N_PIPES], exports: [COMMON_DEPRECATED_I18N_PIPES]})
@NgModule({
declarations: [COMMON_DEPRECATED_I18N_PIPES],
exports: [COMMON_DEPRECATED_I18N_PIPES],
providers: [{provide: USE_V4_PLURALS, useValue: true}],
})
export class DeprecatedI18NPipesModule {
}