UNPKG

1.71 kBTypeScriptView Raw
1import { ModuleWithProviders, Provider, EnvironmentProviders } from "@angular/core";
2import * as i0 from "@angular/core";
3import * as i1 from "./lib/translate.pipe";
4import * as i2 from "./lib/translate.directive";
5export * from "./lib/translate.loader";
6export * from "./lib/translate.service";
7export * from "./lib/missing-translation-handler";
8export * from "./lib/translate.parser";
9export * from "./lib/translate.compiler";
10export * from "./lib/translate.directive";
11export * from "./lib/translate.pipe";
12export * from "./lib/translate.store";
13export * from "./lib/extraction-marker";
14export * from "./lib/util";
15export interface TranslateModuleConfig {
16 loader?: Provider;
17 compiler?: Provider;
18 parser?: Provider;
19 missingTranslationHandler?: Provider;
20 isolate?: boolean;
21 extend?: boolean;
22 useDefaultLang?: boolean;
23 defaultLanguage?: string;
24}
25export declare const provideTranslateService: (config?: TranslateModuleConfig) => EnvironmentProviders;
26export declare class TranslateModule {
27 /**
28 * Use this method in your root module to provide the TranslateService
29 */
30 static forRoot(config?: TranslateModuleConfig): ModuleWithProviders<TranslateModule>;
31 /**
32 * Use this method in your other (non root) modules to import the directive/pipe
33 */
34 static forChild(config?: TranslateModuleConfig): ModuleWithProviders<TranslateModule>;
35 static ɵfac: i0.ɵɵFactoryDeclaration<TranslateModule, never>;
36 static ɵmod: i0.ɵɵNgModuleDeclaration<TranslateModule, never, [typeof i1.TranslatePipe, typeof i2.TranslateDirective], [typeof i1.TranslatePipe, typeof i2.TranslateDirective]>;
37 static ɵinj: i0.ɵɵInjectorDeclaration<TranslateModule>;
38}