@itwin/presentation-common
Version:
Common pieces for iModel.js presentation packages
37 lines • 1.67 kB
TypeScript
/** @packageDocumentation
* @module Core
*/
import { Content } from "./content/Content.js";
import { Descriptor } from "./content/Descriptor.js";
import { Item } from "./content/Item.js";
import { DisplayValueGroup } from "./content/Value.js";
import { ElementProperties } from "./ElementProperties.js";
import { Node } from "./hierarchy/Node.js";
import { NodePathElement } from "./hierarchy/NodePathElement.js";
import { LabelDefinition } from "./LabelDefinition.js";
interface LocalizationHelperProps {
getLocalizedString: (key: string) => string;
}
/** @internal */
export declare class LocalizationHelper {
private _getLocalizedString;
constructor(props: LocalizationHelperProps);
getLocalizedString(text: string): string;
getLocalizedNodes(nodes: Node[]): Node[];
getLocalizedNode(node: Node): Node;
getLocalizedNodePathElement(npe: NodePathElement): NodePathElement;
getLocalizedDisplayValueGroup(group: DisplayValueGroup): DisplayValueGroup;
getLocalizedLabelDefinition(labelDefinition: LabelDefinition): LabelDefinition;
getLocalizedLabelDefinitions(labelDefinitions: LabelDefinition[]): LabelDefinition[];
getLocalizedContentDescriptor(descriptor: Descriptor): Descriptor;
getLocalizedContentItems(items: Item[]): Item[];
getLocalizedContent(content: Content): Content;
getLocalizedElementProperties(elem: ElementProperties): ElementProperties;
private getLocalizedContentItem;
private getLocalizedRawValue;
private getLocalizedContentField;
private getLocalizedCategoryDescription;
private getLocalizedDisplayValue;
}
export {};
//# sourceMappingURL=LocalizationHelper.d.ts.map