• Overview
@angular/core

TRANSLATIONS_FORMAT

constant

Provide this token at bootstrap to set the format of your TRANSLATIONS: xtb, xlf or xlf2.

Description

Provide this token at bootstrap to set the format of your TRANSLATIONS: xtb, xlf or xlf2.

See the i18n guide for more information.

Usage Notes

Example

          
import { TRANSLATIONS_FORMAT } from '@angular/core';import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';import { AppModule } from './app/app.module';platformBrowserDynamic().bootstrapModule(AppModule, {  providers: [{provide: TRANSLATIONS_FORMAT, useValue: 'xlf' }]});
Jump to details