Ng Xi18n - Angular 10 Documentation - TypeError
- Home
- Documentations
- Angular 10
- ng xi18n
Extracts i18n messages from source code.
ng xi18n <project> [options]
ng i18n-extract <project> [options]
Arguments
| Argument | Description |
|---|---|
| <project> | The name of the project to build. Can be an application or a library. |
Options
| Option | Description |
|---|---|
| --browserTarget=browserTarget | Target to extract from. |
| --configuration=configuration | A named build target, as specified in the "configurations" section of angular.json. Each named target is accompanied by a configuration of option defaults for that target. Setting this explicitly overrides the "--prod" flag Aliases: -c |
| --format= xmb|xlf|xlif|xliff|xlf2|xliff2 | Output format for the generated file. Default: xlf |
| --help= true|false|json|JSON | Shows a help message for this command in the console. Default: false |
| --i18nFormat= xmb|xlf|xlif|xliff|xlf2|xliff2 | Deprecated: Use 'format' option instead. Output format for the generated file. Default: xlf |
| --i18nLocale=i18nLocale | Deprecated: Use 'i18n' project level sub-option 'sourceLocale' instead. Specifies the source language of the application. |
| --ivy=true|false | Use Ivy compiler to extract translations. |
| --outFile=outFile | Name of the file to output. |
| --outputPath=outputPath | Path where output will be placed. |
| --prod=true|false | Shorthand for "--configuration=production". When true, sets the build configuration to the production target. By default, the production target is set up in the workspace configuration such that all builds make use of bundling, limited tree-shaking, and also limited dead code elimination. |
| --progress=true|false | Log progress to the console. Default: true |
© 2010–2020 Google, Inc.Licensed under the Creative Commons Attribution License 4.0. https://v10.angular.io/cli/xi18n
Guide @Input() and @Output() properties AOT metadata errors Accessibility in Angular Ahead-of-time (AOT) compilation Angular CLI builders Angular Components Overview Angular Ivy Angular Language Service Angular Roadmap Angular coding style guide Angular compiler options Angular documentation style guide Angular elements overview Angular service worker introduction Angular versioning and releases Angular workspace configuration AngularJS to Angular concepts: Quick reference Animations transitions and triggers App shell Attribute directives Attribute, class, and style bindings Authoring schematics Background processing using web workers Basics of testing components Binding syntax: an overview Browser support Building a template-driven form Building and serving Angular apps Building dynamic forms Built-in directives Cheat Sheet Communicating with backend services using HTTP Complex animation sequences Component interaction Component styles Component testing scenarios Creating libraries Debugging tests Dependency injection in Angular Dependency injection in action Dependency providers Deployment Deprecated APIs and features Dynamic component loader Entry components Event binding Feature modules Find out how much code you're testing Frequently-used modules Generating code using schematics Getting started with service workers Glossary Guidelines for creating NgModules Hierarchical injectors Hooking into the component lifecycle How event binding works In-app navigation: routing to views Interpolation and template expressions Introduction to Angular animations Introduction to Angular concepts Introduction to components and templates Introduction to forms in Angular Introduction to modules Introduction to services and dependency injection Ivy compatibility guide JavaScript modules vs. NgModules Keeping your Angular projects up-to-date Launching your app with a root module Lazy-loading feature modules Localizing your app Migration for missing @Injectable() decorators and incomplete provider definitions Missing @Directive()/@Component() decorator migration ModuleWithProviders Migration Navigate the component tree with DI Next steps: tools and techniques NgModule API NgModule FAQ NgModules Observables compared to other techniques Observables in Angular Optimizing client app size with lightweight injection tokens Overview of Angular libraries Practical observable usage Property binding Property binding best practices Providing dependencies in modules Reactive forms Reusable animations Route transition animations Router tutorial: tour of heroes SVG in templates Schematics for libraries Security Server-side rendering (SSR) with Angular Universal Service worker communication Service worker configuration Service worker in production Setting up the local environment and workspace Setup for upgrading from AngularJS Sharing modules Singleton services Strict mode Structural directives Template expression operators Template statements Template syntax Template type checking Template variables Testing Testing Attribute Directives Testing Pipes Testing Utility APIs Testing services The RxJS library Transforming Data Using Pipes Two-way binding [(...)] TypeScript configuration Update module and target compiler options migration Updating to Angular version 10 Upgrading for performance Upgrading from AngularJS to Angular Using Angular routes in a single-page application Using observables to pass values Using published libraries Validating form input View encapsulation Workspace and project file structure Workspace npm dependencies tslib direct dependency migration Tutorial 0. Create a new project 1. The hero editor 2. Display a selection list 3. Create a feature component 4. Add services 5. Add in-app navigation with routing 6. Get data from a server Tour of Heroes app and tutorial common $locationShim $locationShimProvider @angular/common @angular/common/http @angular/common/http/testing @angular/common/testing @angular/common/upgrade APP_BASE_HREF AngularJSUrlCodec AsyncPipe CommonModule CurrencyPipe DOCUMENT DatePipe DecimalPipe FormStyle FormatWidth HTTP_INTERCEPTORS HashLocationStrategy HttpBackend HttpClient HttpClientJsonpModule HttpClientModule HttpClientTestingModule HttpClientXsrfModule HttpDownloadProgressEvent HttpErrorResponse HttpEvent HttpEventType HttpHandler HttpHeaderResponse HttpHeaders HttpInterceptor HttpParameterCodec HttpParams HttpProgressEvent HttpRequest HttpResponse HttpResponseBase HttpSentEvent HttpTestingController HttpUploadProgressEvent HttpUrlEncodingCodec HttpUserEvent HttpXhrBackend HttpXsrfTokenExtractor I18nPluralPipe I18nSelectPipe JsonPipe JsonpClientBackend JsonpInterceptor KeyValue KeyValuePipe LOCATION_INITIALIZED LOCATION_UPGRADE_CONFIGURATION Location LocationChangeEvent LocationChangeListener LocationStrategy LocationUpgradeConfig LocationUpgradeModule LowerCasePipe MOCK_PLATFORM_LOCATION_CONFIG MockLocationStrategy MockPlatformLocation MockPlatformLocationConfig NgClass NgComponentOutlet NgForOf NgForOfContext NgIf NgIfContext NgLocaleLocalization NgLocalization NgPlural NgPluralCase NgStyle NgSwitch NgSwitchCase NgSwitchDefault NgTemplateOutlet NumberFormatStyle NumberSymbol PathLocationStrategy PercentPipe PlatformLocation Plural PopStateEvent RequestMatch SlicePipe SpyLocation TestRequest Time TitleCasePipe TranslationWidth UpperCasePipe UrlCodec ViewportScroller WeekDay XhrFactory formatCurrency formatDate formatNumber formatPercent getCurrencySymbol getLocaleCurrencyCode getLocaleCurrencyName getLocaleCurrencySymbol getLocaleDateFormat getLocaleDateTimeFormat getLocaleDayNames getLocaleDayPeriods getLocaleDirection getLocaleEraNames getLocaleExtraDayPeriodRules getLocaleExtraDayPeriods getLocaleFirstDayOfWeek getLocaleId getLocaleMonthNames getLocaleNumberFormat getLocaleNumberSymbol getLocalePluralCase getLocaleTimeFormat getLocaleWeekEndRange getNumberOfCurrencyDigits isPlatformBrowser isPlatformServer isPlatformWorkerApp isPlatformWorkerUi registerLocaleData animations @angular/animations @angular/animations/browser @angular/animations/browser/testing AUTO_STYLE AnimateChildOptions AnimateTimings AnimationAnimateChildMetadata AnimationAnimateMetadata AnimationAnimateRefMetadata AnimationBuilder AnimationDriver AnimationEvent AnimationFactory AnimationGroupMetadata AnimationKeyframesSequenceMetadata AnimationMetadata AnimationMetadataType AnimationOptions AnimationPlayer AnimationQueryMetadata AnimationQueryOptions AnimationReferenceMetadata AnimationSequenceMetadata AnimationStaggerMetadata AnimationStateMetadata AnimationStyleMetadata AnimationTransitionMetadata AnimationTriggerMetadata MockAnimationDriver MockAnimationPlayer NoopAnimationPlayer animate animateChild animation group keyframes query sequence stagger state style transition trigger useAnimation core @angular/core @angular/core/global @angular/core/testing ANALYZE_FOR_ENTRY_COMPONENTS APP_BOOTSTRAP_LISTENER APP_ID APP_INITIALIZER AbstractType AfterContentChecked AfterContentInit AfterViewChecked AfterViewInit ApplicationInitStatus ApplicationModule ApplicationRef Attribute COMPILER_OPTIONS CUSTOM_ELEMENTS_SCHEMA ChangeDetectionStrategy ChangeDetectorRef ClassProvider ClassSansProvider CollectionChangeRecord Compiler CompilerFactory CompilerOptions Component ComponentFactory ComponentFactoryResolver ComponentFixture ComponentFixtureAutoDetect ComponentFixtureNoNgZone ComponentRef ConstructorProvider ConstructorSansProvider ContentChild ContentChildren DEFAULT_CURRENCY_CODE DebugElement DebugEventListener DebugNode DefaultIterableDiffer Directive DoBootstrap DoCheck ElementRef EmbeddedViewRef ErrorHandler EventEmitter ExistingProvider ExistingSansProvider FactoryProvider FactorySansProvider ForwardRefFn GetTestability Host HostBinding HostListener INJECTOR Inject InjectFlags InjectSetupWrapper Injectable InjectableProvider InjectableType InjectionToken Injector InjectorType Input IterableChangeRecord IterableChanges IterableDiffer IterableDifferFactory IterableDiffers KeyValueChangeRecord KeyValueChanges KeyValueDiffer KeyValueDifferFactory KeyValueDiffers LOCALE_ID Listener MetadataOverride MissingTranslationStrategy ModuleWithComponentFactories ModuleWithProviders NO_ERRORS_SCHEMA NgIterable NgModule NgModuleFactory NgModuleFactoryLoader NgModuleRef NgProbeToken NgZone OnChanges OnDestroy OnInit Optional Output PACKAGE_ROOT_URL PLATFORM_ID PLATFORM_INITIALIZER Pipe PipeTransform PlatformRef Predicate Provider Query QueryList ReflectiveInjector ReflectiveKey Renderer2 RendererFactory2 RendererStyleFlags2 RendererType2 ResolvedReflectiveFactory ResolvedReflectiveProvider Sanitizer SchemaMetadata SecurityContext Self SimpleChange SimpleChanges SkipSelf StaticClassProvider StaticClassSansProvider StaticProvider SystemJsNgModuleLoader SystemJsNgModuleLoaderConfig TRANSLATIONS TRANSLATIONS_FORMAT TemplateRef TestBed TestBedStatic TestComponentRenderer TestModuleMetadata Testability TestabilityRegistry TrackByFunction Type TypeDecorator TypeProvider ValueProvider ValueSansProvider Version ViewChild ViewChildren ViewContainerRef ViewEncapsulation ViewRef WrappedValue asNativeElements assertPlatform async createPlatform createPlatformFactory defineInjectable destroyPlatform discardPeriodicTasks enableProdMode fakeAsync flush flushMicrotasks forwardRef getDebugNode getModuleFactory getPlatform getTestBed inject inject isDevMode ng.applyChanges ng.getComponent ng.getContext ng.getDirectives ng.getHostElement ng.getInjector ng.getListeners ng.getOwningComponent ng.getRootComponents platformCore resetFakeAsyncZone resolveForwardRef setTestabilityGetter tick waitForAsync withModule elements @angular/elements NgElement NgElementConfig NgElementConstructor NgElementStrategy NgElementStrategyEvent NgElementStrategyFactory WithProperties createCustomElement forms @angular/forms AbstractControl AbstractControlDirective AbstractControlOptions AbstractFormGroupDirective AsyncValidator AsyncValidatorFn COMPOSITION_BUFFER_MODE CheckboxControlValueAccessor CheckboxRequiredValidator ControlContainer ControlValueAccessor DefaultValueAccessor EmailValidator Form FormArray FormArrayName FormBuilder FormControl FormControlDirective FormControlName FormGroup FormGroupDirective FormGroupName FormsModule MaxLengthValidator MinLengthValidator NG_ASYNC_VALIDATORS NG_VALIDATORS NG_VALUE_ACCESSOR NgControl NgControlStatus NgControlStatusGroup NgForm NgModel NgModelGroup NgSelectOption NumberValueAccessor PatternValidator RadioControlValueAccessor RangeValueAccessor ReactiveFormsModule RequiredValidator SelectControlValueAccessor SelectMultipleControlValueAccessor ValidationErrors Validator ValidatorFn Validators platform-browser @angular/platform-browser @angular/platform-browser/animations @angular/platform-browser/testing ANIMATION_MODULE_TYPE BrowserAnimationsModule BrowserModule BrowserTestingModule BrowserTransferStateModule By DomSanitizer EVENT_MANAGER_PLUGINS EventManager HAMMER_GESTURE_CONFIG HAMMER_LOADER HammerGestureConfig HammerLoader HammerModule Meta MetaDefinition NoopAnimationsModule SafeHtml SafeResourceUrl SafeScript SafeStyle SafeUrl SafeValue StateKey Title TransferState disableDebugTools enableDebugTools makeStateKey platformBrowser platformBrowserTesting platform-browser-dynamic @angular/platform-browser-dynamic @angular/platform-browser-dynamic/testing BrowserDynamicTestingModule JitCompilerFactory RESOURCE_CACHE_PROVIDER platformBrowserDynamic platformBrowserDynamicTesting platform-server @angular/platform-server @angular/platform-server/testing BEFORE_APP_SERIALIZED INITIAL_CONFIG PlatformConfig PlatformState ServerModule ServerTestingModule ServerTransferStateModule platformDynamicServer platformServer platformServerTesting renderModule renderModuleFactory platform-webworker @angular/platform-webworker ClientMessageBroker ClientMessageBrokerFactory FnArg MessageBus MessageBusSink MessageBusSource ReceivedMessage SerializerTypes ServiceMessageBroker ServiceMessageBrokerFactory UiArguments WORKER_APP_LOCATION_PROVIDERS WORKER_UI_LOCATION_PROVIDERS WorkerAppModule bootstrapWorkerUi platformWorkerApp platformWorkerUi platform-webworker-dynamic @angular/platform-webworker-dynamic platformWorkerAppDynamic router @angular/router @angular/router/testing @angular/router/upgrade ActivatedRoute ActivatedRouteSnapshot ActivationEnd ActivationStart BaseRouteReuseStrategy CanActivate CanActivateChild CanDeactivate CanLoad ChildActivationEnd ChildActivationStart ChildrenOutletContexts Data DefaultUrlSerializer DeprecatedLoadChildren DetachedRouteHandle Event ExtraOptions GuardsCheckEnd GuardsCheckStart InitialNavigation LoadChildren LoadChildrenCallback Navigation NavigationCancel NavigationEnd NavigationError NavigationExtras NavigationStart NoPreloading OutletContext PRIMARY_OUTLET ParamMap Params PreloadAllModules PreloadingStrategy QueryParamsHandling ROUTER_CONFIGURATION ROUTER_INITIALIZER ROUTES Resolve ResolveData ResolveEnd ResolveStart Route RouteConfigLoadEnd RouteConfigLoadStart RouteReuseStrategy Router RouterEvent RouterLink RouterLinkActive RouterLinkWithHref RouterModule RouterOutlet RouterPreloader RouterState RouterStateSnapshot RouterTestingModule RouterUpgradeInitializer Routes RoutesRecognized RunGuardsAndResolvers Scroll SpyNgModuleFactoryLoader UrlHandlingStrategy UrlMatchResult UrlMatcher UrlSegment UrlSegmentGroup UrlSerializer UrlTree convertToParamMap provideRoutes setUpLocationSync setupTestingRouter service-worker @angular/service-worker ServiceWorkerModule SwPush SwRegistrationOptions SwUpdate UpdateActivatedEvent UpdateAvailableEvent upgrade @angular/upgrade @angular/upgrade/static @angular/upgrade/static/testing UpgradeAdapter UpgradeAdapterRef UpgradeComponent UpgradeModule createAngularJSTestingModule createAngularTestingModule downgradeComponent downgradeInjectable downgradeModule getAngularJSGlobal getAngularLib setAngularJSGlobal setAngularLib Miscellaneous Adding navigation CLI Overview and Command Reference Deploying an application Gathering and Viewing Usage Analytics Getting started with a basic Angular app Managing data Using forms for user input ng add ng analytics ng build ng config ng deploy ng doc ng e2e ng generate ng help ng lint ng new ng run ng serve ng test ng update ng version ng xi18nTừ khóa » Ng Xi18n Json
-
Ng Xi18n - Angular
-
Ng Extract-i18n - Angular
-
Angular CLI - Ng Xi18n Command - Tutorialspoint
-
Ng Xi18n - Angular 10 - W3cubDocs
-
Problems With Ng Xi18n When Adding New Tags - Stack Overflow
-
[i18n]: Add Support For Json Translation File · Issue #11714 - GitHub
-
Ng Xi18n Not Working For Library · Issue #17140 - GitHub
-
How To Use Internationalization (i18n) In Angular | DigitalOcean
-
Ng Extract-i18n - Angular
-
@ngx-i18nsupport/tooling - Npm
-
What's New In Angular CLI 11.0? - Blog | Ninja Squad
-
Internationalization Support In Angular - C# Corner
-
@ngx-i18nsupport/ngx-i18nsupport - Npm Package | Snyk
-
Angular I18n: Performing Translations With Built-in Module - Lokalise