@igo2/core
Version:
20 lines (19 loc) • 1.17 kB
TypeScript
import { EnvironmentProviders, Provider } from '@angular/core';
import { TranslateModuleConfig } from '@ngx-translate/core';
import { LanguageOptions } from './language.interface';
export interface TranslationFeature<KindT extends TranslationFeatureKind> {
kind: KindT;
providers: (Provider | EnvironmentProviders)[];
}
export declare enum TranslationFeatureKind {
Translation = 0
}
/**
* Make sure you only call this method in the root module of your application, most of the time called AppModule.
*/
export declare function provideTranslation(featureConfig: TranslationFeature<TranslationFeatureKind.Translation>): EnvironmentProviders;
export declare function withStaticConfig(options: LanguageOptions, defaultLanguage?: string | undefined): TranslationFeature<TranslationFeatureKind.Translation>;
export declare function withAsyncConfig(defaultLanguage?: string | undefined): TranslationFeature<TranslationFeatureKind.Translation>;
export declare const setTranslationConfig: (loader?: Provider, defaultLanguage?: string) => TranslateModuleConfig;
export declare const LANGUAGE_LOADER: Provider;
export declare const DEFAULT_LANGUAGE_LOADER: Provider;