
Plural ICU expressions depend on the locale (different languages have different plural forms). Until now the locale was hard coded as `en-US`. For compatibility reasons, if you use ivy with AOT and bootstrap your app with `bootstrapModule` then the `LOCALE_ID` token will be set automatically for ivy, which is then used to get the correct plural form. If you use JIT, you need to define the `LOCALE_ID` provider on the module that you bootstrap. For `TestBed` you can use either `configureTestingModule` or `overrideProvider` to define that provider. If you don't use the compat mode and start your app with `renderComponent` you need to call `ɵsetLocaleId` manually to define the `LOCALE_ID` before bootstrap. We expect this to change once we start adding the new i18n APIs, so don't rely on this function (there's a reason why it's a private export). PR Close #29249
228 lines
5.0 KiB
TypeScript
228 lines
5.0 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import {LifecycleHooksFeature, renderComponent, whenRendered} from './component';
|
|
import {ɵɵdefineBase, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵsetComponentScope, ɵɵsetNgModuleScope} from './definition';
|
|
import {ɵɵInheritDefinitionFeature} from './features/inherit_definition_feature';
|
|
import {ɵɵNgOnChangesFeature} from './features/ng_onchanges_feature';
|
|
import {ɵɵProvidersFeature} from './features/providers_feature';
|
|
import {ComponentDef, ComponentTemplate, ComponentType, DirectiveDef, DirectiveDefFlags, DirectiveType, PipeDef, ɵɵBaseDef, ɵɵComponentDefWithMeta, ɵɵDirectiveDefWithMeta, ɵɵPipeDefWithMeta} from './interfaces/definition';
|
|
import {getComponent, getDirectives, getHostElement, getRenderedText} from './util/discovery_utils';
|
|
|
|
export {ComponentFactory, ComponentFactoryResolver, ComponentRef, injectComponentFactoryResolver} from './component_ref';
|
|
export {ɵɵgetFactoryOf, ɵɵgetInheritedFactory} from './di';
|
|
// clang-format off
|
|
export {
|
|
detectChanges,
|
|
markDirty,
|
|
store,
|
|
tick,
|
|
|
|
ɵɵallocHostVars,
|
|
|
|
ɵɵattribute,
|
|
ɵɵattributeInterpolate1,
|
|
ɵɵattributeInterpolate2,
|
|
ɵɵattributeInterpolate3,
|
|
ɵɵattributeInterpolate4,
|
|
ɵɵattributeInterpolate5,
|
|
ɵɵattributeInterpolate6,
|
|
ɵɵattributeInterpolate7,
|
|
ɵɵattributeInterpolate8,
|
|
ɵɵattributeInterpolateV,
|
|
|
|
ɵɵbind,
|
|
ɵɵclassMap,
|
|
ɵɵclassProp,
|
|
ɵɵcomponentHostSyntheticListener,
|
|
ɵɵcomponentHostSyntheticProperty,
|
|
|
|
ɵɵcontainer,
|
|
ɵɵcontainerRefreshEnd,
|
|
ɵɵcontainerRefreshStart,
|
|
|
|
ɵɵdirectiveInject,
|
|
|
|
ɵɵelement,
|
|
ɵɵelementAttribute,
|
|
ɵɵelementContainerEnd,
|
|
|
|
ɵɵelementContainerStart,
|
|
ɵɵelementEnd,
|
|
|
|
ɵɵelementHostAttrs,
|
|
ɵɵelementProperty,
|
|
ɵɵelementStart,
|
|
ɵɵembeddedViewEnd,
|
|
|
|
ɵɵembeddedViewStart,
|
|
|
|
ɵɵgetCurrentView,
|
|
ɵɵinjectAttribute,
|
|
|
|
ɵɵinterpolation1,
|
|
ɵɵinterpolation2,
|
|
ɵɵinterpolation3,
|
|
ɵɵinterpolation4,
|
|
ɵɵinterpolation5,
|
|
ɵɵinterpolation6,
|
|
ɵɵinterpolation7,
|
|
ɵɵinterpolation8,
|
|
ɵɵinterpolationV,
|
|
|
|
ɵɵlistener,
|
|
ɵɵload,
|
|
|
|
ɵɵnamespaceHTML,
|
|
ɵɵnamespaceMathML,
|
|
ɵɵnamespaceSVG,
|
|
|
|
ɵɵnextContext,
|
|
|
|
ɵɵprojection,
|
|
ɵɵprojectionDef,
|
|
ɵɵproperty,
|
|
ɵɵpropertyInterpolate,
|
|
ɵɵpropertyInterpolate1,
|
|
ɵɵpropertyInterpolate2,
|
|
ɵɵpropertyInterpolate3,
|
|
ɵɵpropertyInterpolate4,
|
|
ɵɵpropertyInterpolate5,
|
|
ɵɵpropertyInterpolate6,
|
|
ɵɵpropertyInterpolate7,
|
|
ɵɵpropertyInterpolate8,
|
|
ɵɵpropertyInterpolateV,
|
|
|
|
ɵɵreference,
|
|
|
|
ɵɵselect,
|
|
ɵɵstyleMap,
|
|
ɵɵstyleProp,
|
|
ɵɵstyleSanitizer,
|
|
ɵɵstyling,
|
|
ɵɵstylingApply,
|
|
ɵɵtemplate,
|
|
|
|
ɵɵtext,
|
|
ɵɵtextBinding,
|
|
ɵɵtextInterpolate,
|
|
ɵɵtextInterpolate1,
|
|
ɵɵtextInterpolate2,
|
|
ɵɵtextInterpolate3,
|
|
ɵɵtextInterpolate4,
|
|
ɵɵtextInterpolate5,
|
|
ɵɵtextInterpolate6,
|
|
ɵɵtextInterpolate7,
|
|
ɵɵtextInterpolate8,
|
|
ɵɵtextInterpolateV,
|
|
} from './instructions/all';
|
|
export {RenderFlags} from './interfaces/definition';
|
|
export {CssSelectorList} from './interfaces/projection';
|
|
|
|
export {
|
|
ɵɵrestoreView,
|
|
|
|
ɵɵenableBindings,
|
|
ɵɵdisableBindings,
|
|
} from './state';
|
|
|
|
export {
|
|
DEFAULT_LOCALE_ID,
|
|
ɵɵi18n,
|
|
ɵɵi18nAttributes,
|
|
ɵɵi18nExp,
|
|
ɵɵi18nStart,
|
|
ɵɵi18nEnd,
|
|
ɵɵi18nApply,
|
|
ɵɵi18nPostprocess,
|
|
i18nConfigureLocalize,
|
|
ɵɵi18nLocalize,
|
|
getLocaleId,
|
|
setLocaleId,
|
|
} from './i18n';
|
|
|
|
export {NgModuleFactory, NgModuleRef, NgModuleType} from './ng_module_ref';
|
|
|
|
export {
|
|
AttributeMarker
|
|
} from './interfaces/node';
|
|
|
|
export {
|
|
setClassMetadata,
|
|
} from './metadata';
|
|
|
|
export {
|
|
ɵɵpipe,
|
|
ɵɵpipeBind1,
|
|
ɵɵpipeBind2,
|
|
ɵɵpipeBind3,
|
|
ɵɵpipeBind4,
|
|
ɵɵpipeBindV,
|
|
} from './pipe';
|
|
|
|
export {
|
|
ɵɵqueryRefresh,
|
|
ɵɵviewQuery,
|
|
ɵɵstaticViewQuery,
|
|
ɵɵloadViewQuery,
|
|
ɵɵcontentQuery,
|
|
ɵɵloadContentQuery,
|
|
ɵɵstaticContentQuery
|
|
} from './query';
|
|
|
|
export {
|
|
ɵɵpureFunction0,
|
|
ɵɵpureFunction1,
|
|
ɵɵpureFunction2,
|
|
ɵɵpureFunction3,
|
|
ɵɵpureFunction4,
|
|
ɵɵpureFunction5,
|
|
ɵɵpureFunction6,
|
|
ɵɵpureFunction7,
|
|
ɵɵpureFunction8,
|
|
ɵɵpureFunctionV,
|
|
} from './pure_function';
|
|
|
|
export {ɵɵtemplateRefExtractor} from './view_engine_compatibility_prebound';
|
|
|
|
export {ɵɵresolveWindow, ɵɵresolveDocument, ɵɵresolveBody} from './util/misc_utils';
|
|
|
|
// clang-format on
|
|
|
|
export {
|
|
ɵɵBaseDef,
|
|
ComponentDef,
|
|
ɵɵComponentDefWithMeta,
|
|
ComponentTemplate,
|
|
ComponentType,
|
|
DirectiveDef,
|
|
DirectiveDefFlags,
|
|
ɵɵDirectiveDefWithMeta,
|
|
DirectiveType,
|
|
ɵɵNgOnChangesFeature,
|
|
ɵɵInheritDefinitionFeature,
|
|
ɵɵProvidersFeature,
|
|
PipeDef,
|
|
ɵɵPipeDefWithMeta,
|
|
LifecycleHooksFeature,
|
|
ɵɵdefineComponent,
|
|
ɵɵdefineDirective,
|
|
ɵɵdefineNgModule,
|
|
ɵɵdefineBase,
|
|
ɵɵdefinePipe,
|
|
getHostElement,
|
|
getComponent,
|
|
getDirectives,
|
|
getRenderedText,
|
|
renderComponent,
|
|
ɵɵsetComponentScope,
|
|
ɵɵsetNgModuleScope,
|
|
whenRendered,
|
|
};
|
|
|
|
export {NO_CHANGE} from './tokens';
|