@sixbell-telco/sdk
Version:
A collection of reusable components designed for use in Sixbell Telco Angular projects
27 lines (26 loc) • 1.04 kB
TypeScript
import { RendererFactory2 } from '@angular/core';
import * as i0 from "@angular/core";
/**
* Service responsible for DOM manipulation related to language/localization
* Decouples DOM operations from business logic
*/
export declare class TranslationDomService {
private readonly rendererFactory;
private readonly document;
private readonly renderer;
constructor(rendererFactory: RendererFactory2, document: Document);
/**
* Sets the language on the document element
* Updates the HTML lang attribute for accessibility and SEO
* @param language - Language code (e.g., 'en', 'es', 'pt')
*/
setDocumentLanguage(language: string): void;
/**
* Gets the current language from the document element
* Reads the HTML lang attribute
* @returns Current language code or empty string if not set
*/
getDocumentLanguage(): string;
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationDomService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationDomService>;
}