UNPKG

@omnia/tooling-composers

Version:

Provide tooling to work with manifest things.

34 lines (33 loc) 1.54 kB
import { ILocalizationNamespaceComposer, LocalizationOptions } from './models'; import { ILocalizationComposer } from './models/LocalizationComposer'; import { ClientManifest } from '../../fx-models'; export declare function getLocalizations(): object; export declare function getLocalizationPath<T>(exp: (localize: T) => string, ns?: string): string; export declare class Localization implements ILocalizationComposer { private manifestId; private localizationOptions; private localizeFileNameFormat; private localizationNamespaceComposer; private static localizationRegistrations; constructor(localizationOptions: LocalizationOptions, manifestId: string); namespace: (name: string) => { add: <T>(localizeObject: T) => ILocalizationNamespaceComposer; }; static getRegistrations: () => Array<string>; static clearRegistrations: () => void; static getClientManifests: (currentServiceId: string) => Array<ClientManifest>; static clearState: () => void; private static Subscription; } export declare class LocalizationNamespaceComposer implements ILocalizationNamespaceComposer { private manifestId; private currentNamespace; private rootNamespaceObject; constructor(root: object, manifestId: string); add: <T>(localizeObject: T) => ILocalizationNamespaceComposer; namespace: (name: string) => { add: <T>(localize: T) => ILocalizationNamespaceComposer; }; setCurrentNamespace: (name: string) => void; private getCurrentNamespaceObject; }