angular-l10n
Version:
An Angular library to translate messages, dates and numbers
24 lines (23 loc) • 804 B
TypeScript
import { Title, Meta } from "@angular/platform-browser";
import { TranslationService } from "./translation.service";
import { L10nConfigRef } from "../models/l10n-config";
export interface ISearchService {
updateHead(page: string): void;
}
/**
* Manages the translation of page 'title' and meta tags.
*/
export declare class SearchService implements ISearchService {
private configuration;
private translation;
private title;
private meta;
constructor(configuration: L10nConfigRef, translation: TranslationService, title: Title, meta: Meta);
/**
* Translates the 'title' of the page and the provided meta tags.
* @param page The key path of the page
*/
updateHead(page: string): void;
private setTitle;
private updateTag;
}