angular-l10n
Version:
An Angular library to translate messages, dates and numbers
17 lines (16 loc) • 532 B
TypeScript
import { Injector, InjectionToken } from '@angular/core';
import { TranslationService } from '../services/translation.service';
import { Type } from './types';
/**
* Allows to get the dependencies at the root level.
*/
export declare class InjectorRef {
private injector;
private static injector;
static get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T): T;
/**
* TranslationService instances.
*/
translations: TranslationService[];
constructor(injector: Injector);
}