@anglr/translate-extensions
Version:
Angular module - external translation loader for ngx-translate
24 lines • 1.14 kB
TypeScript
import { StringLocalization } from '@anglr/common';
import { TranslateService } from '@ngx-translate/core';
import { Observable } from 'rxjs';
import * as i0 from "@angular/core";
/**
* Implementation of StringLocalization, which uses ngxTranslate as localization engine
*/
export declare class NgxTranslateStringLocalizationService implements StringLocalization {
private _translateSvc;
/**
* Occurs when indication that locale has changed and strings should be obtained again, because they have changed
*/
get textsChange(): Observable<void>;
constructor(_translateSvc: TranslateService);
/**
* Gets localized string for specified key, interpolation might be used
* @param key - Key to be localizaed
* @param interpolateParams - Optional object storing interpolation parameters
*/
get(key: string, interpolateParams?: object): string;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxTranslateStringLocalizationService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NgxTranslateStringLocalizationService>;
}
//# sourceMappingURL=ngxTranslateStringLocalization.service.d.ts.map