W3cubDocs

/Angular 11

TRANSLATIONS_FORMAT

const

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

See more...

const TRANSLATIONS_FORMAT: InjectionToken<string>;

Description

See the i18n guide for more information.

Further information available in the Usage Notes...

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

© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/core/TRANSLATIONS_FORMAT