This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

TRANSLATIONS_FORMAT

npm Package @angular/core
Module import { TRANSLATIONS_FORMAT } from '@angular/core';
Source core/src/i18n/tokens.ts
      
      const TRANSLATIONS_FORMAT: any;
    

Description

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

See the i18n guide for more information.

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' }]
});