tfabrica
Version:
library for TFabrica - TechSol
24 lines (23 loc) • 832 B
TypeScript
import 'rxjs/Rx';
import { Observable } from "rxjs";
import { Subscription } from 'rxjs/Subscription';
import { Http } from "@angular/http";
import { TfabricaSharedService } from '../main/tfabrica.shared.service';
export declare class TfabricaTranslateService {
private _translations;
private http;
private _shared;
private _currentLang;
dictionary: any;
supportedLanguages: any[];
subscription: Subscription;
readonly currentLang: string;
constructor(_translations: any, http: Http, _shared: TfabricaSharedService);
InitTranslateData(): void;
use(lang: string): void;
private translate(key);
instant(key: string): string;
setLangDictionary(lang: string): Observable<{}>;
setDictionaryFromApi(): void;
getSupportedLanguages(): Observable<{}>;
}