填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫Home

TRANSLATIONS_FORMAT

在載入程式中提供此令牌以設定 TRANSLATIONS的格式: xtbxlfxlf2

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

檢視"說明"...

      
      const TRANSLATIONS_FORMAT: InjectionToken<string>;
    

說明

有關更多資訊,請參見《i18n 指南》

See the i18n guide for more information.

Further information available in the 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' }]
});