@o3r/localization
Version:
This module provides a runtime dynamic language/translation support and debug tools.
37 lines • 1.69 kB
TypeScript
import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
import { TranslateDirective, TranslateService } from '@ngx-translate/core';
import { LocalizationConfiguration } from '../core';
import { LocalizationService } from './localization.service';
import * as i0 from "@angular/core";
/**
* TranslateDirective class adding debug functionality
*/
export declare class LocalizationTranslateDirective extends TranslateDirective implements OnDestroy {
private readonly localizationService;
private readonly localizationConfig;
/**
* Internal subscription to the LocalizationService showKeys mode changes
*/
private readonly onShowKeysChange?;
/**
* Should we display keys instead of translations
*/
private showKeys;
/**
* Internal subscription to the LocalizationService key mapping
*/
private onKeyChange?;
/** @inheritdoc */
set translate(key: string);
constructor(localizationService: LocalizationService, translateService: TranslateService, element: ElementRef, _ref: ChangeDetectorRef, localizationConfig: LocalizationConfiguration);
/**
* Overriding parent's setContent to plug debugging feature
* @param node
* @param content
*/
setContent(node: any, content: string): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationTranslateDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizationTranslateDirective, "[translate],[ngx-translate]", never, { "translate": { "alias": "translate"; "required": false; }; }, {}, never, never, false, never>;
}
//# sourceMappingURL=localization-translate.directive.d.ts.map