UNPKG

ngx-i18nsupport-lib

Version:

A Typescript library to work with Angular generated i18n files (xliff, xmb)

32 lines (31 loc) 1.24 kB
export declare class TagMapping { getStartTagPlaceholderName(tag: string, id: number): string; getCloseTagPlaceholderName(tag: string): string; getEmptyTagPlaceholderName(tag: string, id: number): string; getCtypeForTag(tag: string): string; getTagnameFromStartTagPlaceholderName(placeholderName: string): string; getTagnameFromCloseTagPlaceholderName(placeholderName: string): string; /** * Test, wether placeholder name stands for empty html tag. * @param placeholderName can be TAG_<name> or just <name> */ isEmptyTagPlaceholderName(placeholderName: string): boolean; /** * tagname of empty tag placeholder. * @param placeholderName can be TAG_<name> or just <name> */ getTagnameFromEmptyTagPlaceholderName(placeholderName: string): string; /** * If placeholder ends with _[0-9]+, strip that number. * @param placeholderName * @return placeholderName without counter at end. */ private stripCounter(placeholderName); /** * String suffix for counter. * If counter is 0, it is empty, otherwise _<id>. * @param {number} id * @return {string} */ private counterString(id); }